Spamassassin, greylist, and sendmail

Thomas Cameron thomas.cameron at camerontech.com
Sat Dec 18 19:27:23 UTC 2004


----- Original Message ----- 
From: "Steven Stern" <subscribed-lists at sterndata.com>
To: <users at spamassassin.apache.org>; <fedora-list at redhat.com>
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

Wanted to follow up with you.

My sendmail.mc looks like this:

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

INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, 
T=S:4m;R:4m')dnl

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


The reason I have mine set up in this order is because I believe (someone 
please correct me if I'm wrong) that it uses the least resources.  First 
comes the greylist delay.  It's a tiny little answer to the sending mail 
server and doesn't require any heavy lifting on my mail server.  Only those 
messages which come from legit (hopefully) mail servers make it to the next 
steps which require real processing overhead (anti-virus and spam scanning).

Cheers,
Thomas 




More information about the fedora-list mailing list