[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

procmail->cyrus [was: executing spamassassin from sieve on some of the messages]



Thanks everybody for help.  I finaly got it working.  Here is info:

First you need to change some permitions:

chgrp mail /usr/sbin/cyrdeliver

chmod 2755 /usr/sbin/cyrdeliver


and then .procmailrc file can be as:

#------------procmailrc---------------------------------
SHELL=/bin/sh               #Use the Bourne shell (check your path!)
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
LOGFILE=$HOME/procmail/procmail.log # You'd better make sure it exists
VERBOSE=no
LOG="--- Logging ${LOGFILE} for ${LOGNAME} "
DELIVERTO="/usr/sbin/cyrdeliver"
DEFAULT="$DELIVERTO -a ${LOGNAME} -m user.${LOGNAME}"

#exim4 adds From line which doesn't work right with cyrus, so remove it
:0 fw
| /usr/bin/formail -I 'From ' -b

#uncoment next lines in order to enable spamassassin
#:0fw: spamassassin.lock
#* < 256000
#| spamc

#move spam in to junk
:0
* ^X-Spam-Flag: YES
|${DEFAULT}.Junk

# Accept all the rest to your default mailbox
:0
|${DEFAULT}




Reply to: