[Esd-l] Sanitizing inbound mail using sendmail.mc on a gateway + local

Robert Wagner rwagner at eruces.com
Fri May 23 09:00:10 PDT 2003


I am confused on setting up the sendmail.mc (Redhat 9).  Everthing seems to
work fine for local mail, but mail being passed through does not get
checked.  There are several domains passing through.  Spamassassin has been
working fine.

---------------relevant stuff from sendmail.mc
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`confMILTER_LOG_LEVEL', `3')dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
MAILER(procmail)dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock,
F=, T=C:15m;S:4m;R:4m;E:10m')
----------------

I am not sure how to add the recommended information as it isn't in the same
format:
----------------------------------------
If you prefer to use sendmail .mc files, add this to your config.mc file: 
LOCAL_CONFIG 
CPprocmail 
LOCAL_RULE_0 
R$*<@$=w>$* $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail.>$3 
R$*<@$=w.>$* $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail.>$3 
R$*<@$*.procmail.>$* $1<@$2.>$3 
MAILER_DEFINITIONS 
Mprocmail, P=/usr/bin/procmail, F=DFMmShun, S=11/31, R=21/31,
T=DNS/RFC822/X-Unix, A=procmail -m $h $g $u 
------------------------------------------

Will the recommeded changes hurt spamassassin?

procmailrc looks like the sample except with :

----------------------------
DROPPRIVS=yes

:0fw
| spamc
---------------------------
added to the end.


Thanks in advance for your help.


More information about the esd-l mailing list