Imap+Procmail

Andrzej Adam Filip anfi at priv.onet.pl
Thu Jan 6 11:49:42 EST 2005


sc2 at gmx.at 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?
> so in fact its not possible procmail (nice filtering) + imap correct?
> 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

You can integrate sendmail with spamassassin using milter
(e.g. http://www.mimedefang.org ).

AFAIK standard recomendation is to:

1) make milter reject messages with spam-index above 10 (more than 
standard 5.0) in reply to "the final dot" in SMTP session [spam "for 
sure"].  Such message will be rejected before cyrus has any chance to 
see them.

It makes the sending host responsible for generating bounces.

2) making milter add headers to remaning message and use sieve script to 
deliver "most likely spam" to separate folder e.g. INBOX/SPAM-FOLDER

e.g. use for fetchmail retrieved message:

if header :contains "X-Spam-Flag" "YES" {
   fileinto "INBOX/SPAM-FOLDER" ;
   stop ;
}

P.S. Use spamassassin with "bulk detectors" (dcc/razor)

-- 
Andrzej [en:Andrew] Adam Filip anfi at priv.onet.pl anfi at xl.wp.pl
Home Page http://anfi.homeunix.net/
---
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




More information about the Info-cyrus mailing list