procmail revisited

Brandon High bhigh at epinions-inc.com
Mon Feb 10 13:28:59 EST 2003


On Sat, 2003-02-08 at 21:21, Louis LeBlanc wrote:
> Anyway, I have procmail being called from sendmail using the
> following:
> 
> define(`CYRUS_MAILER_FLAGS',`SA5@|:/w')
> define(`CYRUS_MAILER_PATH',`/usr/local/bin/procmail')
> define(`CYRUS_MAILER_USER',`cyrus:mail')
> 
> define(`CYRUS_MAILER_ARGS',`procmail -Y -m /etc/procmailrc $u $h')
> define(`CYRUS_MAILER_MAX',`eval(5*1024*1024)')

I'm using sendmail -> procmail -> SpamAssassin -> deliver as well... I
set up sendmail with the following:

define(`LOCAL_MAILER_FLAGS',`SPhnu9')
define(`LOCAL_MAILER_ARGS',`procmail -Y -m $h $f $u')
FEATURE(local_procmail,/usr/local/bin/procmail)

In other words, sendmail doesn't know a thing about Cyrus. It just uses
procmail for local delivery.

My /etc/procmailrc contains:
DROPPRIVS=1
COMSAT=no
PATH=/usr/local/bin:/tools/bin:$PATH
SHELL=/bin/bash
DELIVER="/usr/cyrus/bin/deliver -e -a $LOGNAME -m user.$LOGNAME"
DEFAULT="$DELIVER"

:0 fhw
| formail -I 'From '

:0fw: /tmp/${LOGNAME}spamassassin.lock
* < 256000
| spamc

:0w
| $DELIVER
 -B

-- 
Brandon High                                          bhigh at epinions.com
Epinions, Inc.                                 Unix System Administrator
Caffeine: It's not just a chemical, it's a way of life.





More information about the Info-cyrus mailing list