Difference between revisions of "Lat-procmail"

From SME Server
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
       tem-wide, but can also be used for other purposes.
 
       tem-wide, but can also be used for other purposes.
  
       {{note box|It requires the smeserver-userpanel ans the smeserver-mailsorting from http://contribs.org}}
+
       {{note box|It requires the '''smeserver-userpanel''' ans the '''smeserver-mailsorting''' from http://contribs.org}}
  
 
       See /usr/doc/lazy-admin-tools/example.procmail for the format of the
 
       See /usr/doc/lazy-admin-tools/example.procmail for the format of the
Line 14: Line 14:
 
===Smecontribs repository for SME Server===
 
===Smecontribs repository for SME Server===
  
  yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel
+
  yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel smeserver-mailsorting
 
  signal-event post-upgrade; signal-event reboot
 
  signal-event post-upgrade; signal-event reboot
  
Line 52: Line 52:
  
 
===EXAMPLES===
 
===EXAMPLES===
  lat-procmail -a -c "harry | enabled | yes | lots | geek"
+
  lat-procmail -c "harry | enabled | yes | lots | geek"
 
       Activates procmail for user 'harry', deletes duplicate mails with
 
       Activates procmail for user 'harry', deletes duplicate mails with
 
       extensive logging and activates geek-mode.
 
       extensive logging and activates geek-mode.
  
  lat-procmail -a -i /root/procmail.list
+
  lat-procmail -i /root/procmail.list
 
       Activates procmail for the users defined in /root/procmail.list.  Refer
 
       Activates procmail for the users defined in /root/procmail.list.  Refer
 
       to /usr/doc/lazy-admin-tools/example.users for an example of an input
 
       to /usr/doc/lazy-admin-tools/example.users for an example of an input
 
       file.
 
       file.
 +
 
=== Bugs ===
 
=== Bugs ===
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
and select the e-smith-lazy_admin_tools component or use {{BugzillaFileBug|product=SME%20Contribs|component=e-smith-lazy_admin_tools|title=this link}}.  
 
and select the e-smith-lazy_admin_tools component or use {{BugzillaFileBug|product=SME%20Contribs|component=e-smith-lazy_admin_tools|title=this link}}.  
 
[[Category:Howto]] [[Category:Administration]]
 
[[Category:Howto]] [[Category:Administration]]

Latest revision as of 20:35, 26 June 2013

lat-procmail

The lazy administrator's tool to (de)activate procmail for individual users

DESCRIPTION

      Activates or deactivates procmail for individual users on Mitel's SME
      servers.  This tool is primarily intended to activate SpamAssassin sys-
      tem-wide, but can also be used for other purposes.


Important.png Note:
It requires the smeserver-userpanel ans the smeserver-mailsorting from http://contribs.org


      See /usr/doc/lazy-admin-tools/example.procmail for the format of the
      input file.

Smecontribs repository for SME Server

yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel smeserver-mailsorting
signal-event post-upgrade; signal-event reboot

SYNOPSIS

      lat-procmail -c "user| status| deldups| loglevel| mode"
      lat-procmail -i /path/to/users.list

OPTIONS

      The following options are supported:
      -c ""Arguments"", --command-line=""Arguments""
          Take arguments from the command line.  See the 'Arguments' section
          below for the various arguments that are accepted.
      -h, --help
          Extended help for this tool
      -i FILE, --input-file=FILE
          Use the information from FILE to (de)activate procmail for individ-
          ual users.  See /usr/doc/lazy-admin-tools for an example of an
          input file.
      Arguments:
         user*      : Must be an existing account on the server.
                      Wildcards (* and ?) are accepted.
         status     : Either 'enabled' or 'disabled'.
                      Default is 'disabled'.
         deldups    : Delete duplicates. Use 'yes' or 'no'.
                      Default is 'no'.
         loglevel   : Amount of log info. Use 'none', 'some' or 'lots'.
                      Default is 'some'.
         mode       : Set 'normal' or 'geek' mode. Default is 'normal'.
         * mandatory field

EXAMPLES

lat-procmail  -c "harry | enabled | yes | lots | geek"
      Activates procmail for user 'harry', deletes duplicate mails with
      extensive logging and activates geek-mode.
lat-procmail -i /root/procmail.list
      Activates procmail for the users defined in /root/procmail.list.  Refer
      to /usr/doc/lazy-admin-tools/example.users for an example of an input
      file.

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the e-smith-lazy_admin_tools component or use this link .