Difference between revisions of "Lat-procmail"

From SME Server
Jump to navigationJump to search
Line 59: Line 59:
 
       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 ===
 +
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}}.
 
[[Category:Howto]] [[Category:Administration]]
 
[[Category:Howto]] [[Category:Administration]]

Revision as of 18:30, 24 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.
      It requires the user-panel 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
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 -a -c "harry | enabled | yes | lots | geek"
      Activates procmail for user 'harry', deletes duplicate mails with
      extensive logging and activates geek-mode.
lat-procmail -a -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 .