To: <users@xxxxxxxxxxxxxxxxxxxxxxx>; <fedora-list@xxxxxxxxxx>
Sent: Saturday, December 18, 2004 11:16 AM
Subject: Spamassassin, greylist, and sendmail
I'm trying greylisting as a way of reducing spam.
By themselves, both milter-greylist and spamass-milter work OK. When I combine them, spamass-milter dies with the error "cmd read returned 0 expecting 5"
It seems that the problem is with the milter macros required by milter-greylist. If they defines following the greylist milter are uncommented, then I have the problem with spamass-milter. I'musing spamass-milter 0.2.0.
Suggestions? (Yes, I know, use MimeDefang or Amavis. But right now, I want
to see if I can solve this problem.)
dnl # dnl #### greylist milter ########################### dnl # dnl #INPUT_MAIL_FILTER(`greylist', `S=local:/var/milter-greylist/milter-greylist.sock')dnl dnl #define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')dnl dnl #define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl dnl #define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')dnl dnl # dnl #### CLAM ###################################### dnl # INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clamav-milter.sock,F=, T=S:4m;R:4m')dnl dnl # dnl #### SPAMASSASSIN ############################# dnl # INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock, F=,T=C:15m;S:4m;R:4m;E:10m')dnl dnl # define(`confMILTER_LOG_LEVEL', 8)dnl
-- Steve
Here is what I have in mine (each line separated by a newline for clarity):
dnl Milter-Greylist INPUT_MAIL_FILTER(`greylist',`S=local:/var/milter-greylist/milter-greylist.sock')dnl define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')dnl
dnl Clam AntiVirus milter
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, T=S:4m;R:4m')dnl
dnl Spam Assassin milter
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
It seems to work perfectly.
Thomas