You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2018/05/02 19:08:56 UTC

[Spamassassin Wiki] Update of "UsedViaProcmail" by MikeBrown

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The "UsedViaProcmail" page has been changed by MikeBrown:
https://wiki.apache.org/spamassassin/UsedViaProcmail?action=diff&rev1=47&rev2=48

Comment:
updated procmailrc code and links; added more procmailrc advice, encouraging consideration of whether to leave some mail unscanned

  "|/usr/bin/procmail || exit 75"
  }}}
  
- It's worth noting that a lot of MTAs already use procmail as the default MDA (mail delivery agent), so setting up a .forward file is likely not necessary.  For instance in postfix's main.cf:
+ It's worth noting that a lot of MTAs already use procmail as the default MDA (mail delivery agent), so setting up a .forward file is likely not necessary.  For instance, in postfix's main.cf:
  
  {{{
  mailbox_command = /usr/bin/procmail -a "$EXTENSION"
@@ -24, +24 @@

  
  = How do I use SpamAssassin with procmail? =
  
+ Now, edit or create a .procmailrc file in your home directory containing the following lines, which come from the [[https://svn.apache.org/repos/asf/spamassassin/trunk/procmailrc.example|procmailrc.example]].
- Now, edit or create a .procmailrc file in your home directory containing the
- below lines, which come from the [[http://spamassassin.apache.org/full/3.3.x/dist/procmailrc.example|procmailrc.example]].
  
  {{{
  # SpamAssassin sample procmailrc
- #
+ # ==============================
+ 
  # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
  # if you use the spamc/spamd combination)
  #
- # The condition line ensures that only messages smaller than 250 kB
+ # The condition line ensures that only messages smaller than 500 kB
- # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
+ # (500 * 1024 = 512000 bytes) are processed by SpamAssassin. Most spam
  # isn't bigger than a few k and working with big messages can bring
  # SpamAssassin to its knees.
  #
@@ -42, +42 @@

  # at 1 time, to keep the load down.
  #
  :0fw: spamassassin.lock
- * < 256000
+ * < 512000
  | spamassassin
  
  # Mails with a score of 15 or higher are almost certainly spam (with 0.05%
@@ -60, +60 @@

  
  # Work around procmail bug: any output on stderr will cause the "F" in "From"
  # to be dropped.  This will re-add it.
+ # NOTE: This is probably NOT needed in recent versions of procmail
  :0
  * ^^rom[ ]
  {
@@ -70, +71 @@

  }
  }}}
  
- If you already have a .procmailrc file, add the above lines to your .procmailrc file.  If you don't currently have a procmail file, you can import that one by entering
+ If you already have a .procmailrc file, add the above lines to it.
+ 
+ To minimize the chance of false positives, especially if you are using Bayes training, you may want to put these rules after any other rules which handle mail you don't want scanned, such as legitimate administrative and mailing list traffic. Alternatively, you may want to scan all mail but tweak your rules so that administrative and mailing list messages have to meet a higher threshold (X-Spam-Level) before they are treated as spam. There are pros and cons to each option.
+ 
+ If you don't currently have a .procmailrc file, you can use the procmailrc.example file from the Spamassassin docs directory, or import the current sample by entering, for example:
  
  {{{
- wget http://spamassassin.apache.org/full/3.0.x/dist/procmailrc.example
+ wget https://svn.apache.org/repos/asf/spamassassin/trunk/procmailrc.example
  mv procmailrc.example .procmailrc
  }}}
  
@@ -87, +92 @@

  
  Another common (but more complicated) use of procmail is to forward mail to another account, after processing with SpamAssassin.  This can also support mistake-based Bayes training.  See ProcmailToForwardMail.
  
- The [[http://spamassassin.apache.org/doc/spamc.html|spamc]] client program can be used instead of [[http://spamassassin.apache.org/doc/spamassassin.html|spamassassin]], if you intend
+ The [[http://spamassassin.apache.org/doc/spamc.html|spamc]] client program can be used instead of [[http://spamassassin.apache.org/doc/spamassassin.html|spamassassin]], if you intend to install and use the [[http://spamassassin.apache.org/doc/spamd.html|spamd]] server system-wide.
- to install and use the [[http://spamassassin.apache.org/doc/spamd.html|spamd]] server system-wide.
  
  Read [[http://mirrors.ccs.neu.edu/cgi-bin/unixhelp/man-cgi?procmailrc|'man procmailrc']] and [[http://mirrors.ccs.neu.edu/cgi-bin/unixhelp/man-cgi?procmailex|'man procmailex']] for further details and explanation.
  
  == Contributors ==
  
   * DanKohn
+  * MikeBrown