[Esd-l] Sanitizing inbound mail using sendmail.mc on a gatew
ay + local
Robert Wagner
rwagner at eruces.com
Fri May 23 11:41:36 PDT 2003
Got the information in sendmail.mc, but it is still not looking at relayed
mail.
mailertable:
domain1.org SMTP:[192.168.ip.ip]
....
Added to sendmail.mc
########################################################################
LOCAL_CONFIG
# Avoid host map lookups if address has this pseudo-domain on it
CPprocmail
LOCAL_RULE_0
# Filter all mail through procmail
#
# Strip the pseudo-domain and continue (already gone through the filter)
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
########################################################################
-----Original Message-----
From: Robert Wagner [mailto:rwagner at eruces.com]
Sent: Friday, May 23, 2003 11:00 AM
To: 'esd-l at spconnect.com'
Subject: [Esd-l] Sanitizing inbound mail using sendmail.mc on a gateway
+ local
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.
_______________________________________________
Esd-l mailing list
Esd-l at spconnect.com
http://www.spconnect.com/mailman/listinfo/esd-l
More information about the esd-l
mailing list