[EMAIL PROTECTED] wrote: > Hello Baltasar > Thx 4 Answer > Hmm now im little bit confused i did make a look into sendmail.cf and just > see a entry like > (it is standart install no custom local mailer m4 entrys) > this means procmail or?
Yes this means you are using procmail as a local mailer. > so in fact its not possible procmail (nice filtering) + imap correct? But it *is* possible to use procmail to deliver to the imapserver. What you need to do is put all the filtering and spamassassin stuff before a final catch-all that does the delivery. Here's one way to do it: ########################## ## GLOBAL procmail recipes VERBOSE=on LOGFILE=/var/tmp/procmail.global.log ################################### ## Which rc files should we include #INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER-lists.rc" #INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER.rc" #INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER-default.rc" ########################### ## Set Cyrus IMAP Variables DELIVER=/usr/local/cyrus/bin/deliver SPAMASS=/usr/local/spamfilter/bin/spamc :0fw |${SPAMASS} -u cyrus :0 |${DELIVER} -e -a $CYRUSUSER -m user.$CYRUSUSER > i know there spamassassin etc too...and i use them but combined its a good > way to filter messages with are "wantet" > > #### $Id: local_procmail.m4,v 8.22 2002/11/17 04:24:19 ca Exp $ ##### > Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, > S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, > A=procmail -Y -a $h -d $u IMO it's better to kick out deliver altogether, configure sendmail to use cyrus as your local mailer, deliver through lmtp and talk to SA through a milter, but that's a different chapter. HTH -- Henk Roose - [EMAIL PROTECTED] CWI - Centrum voor Wiskunde en Informatica Centre for Mathematics and Computer Science Amsterdam (NL) --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html