procmail
[Top] [All Lists]

Re: Qmail and SpamAssassin with Forwarding

2004-01-06 00:51:06
dplohry:
 /etc/procmailrc:

 DROPPRIVS=yes
 :0
 * < 256000
 {
   :0fw
   | spamc -f
   :0
   /dev/null
   EXITCODE=$?
 }
 :0
 /dev/null
 EXITCODE=$?

In general, you are dropping all mail in /dev/null 
and you use EXITCODE after delivery.


Test a simpler version first:

  DROPPRIVS = yes
  LOG = "$HOME/procmail.log"

  :0  # for user "spamtest" only
  * LOGNAME ?? ^^spamtest^^
  { VERBOSE = yes }

  :0fw
  * < 256000
  | /usr/bin/spamc


See also 
  http://www.osdigest.com/issue2/spamassassin.html

-- 
Affijn, Ruud

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>