Sendmail: How does one blacklist annoying spammers?

Kevin J. Cummings cummings at kjchome.homeip.net
Sun Jun 27 19:31:06 UTC 2010


On 06/27/2010 03:27 PM, Kevin J. Cummings wrote:
> On 06/27/2010 12:45 PM, Daniel B. Thurman wrote:
> 
>> I wanted to mention that there are some in this posting that
>> are recommending greylisting...  but have not said anything
>> about how this is implemented into sendmail... so, what is
>> your take on this?
> 
> yum install milter-greylist
> 
> and possibly one of milter-greylist-sysvinit or milter-greylist-upstart
> (though mine doesn't seem to be configure with chkconfig)
> 
> As for my sendmail.mc changes:
> 
> Add
> 
>> dnl #
>> dnl # Greylist Milter Support
>> dnl #
>> INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/milter-greylist.sock', F=, T=C:5m;S:4m;R:4m;E:5m')dnl
>>
>> dnl define(`confMILTER_MACROS_CONNECT', confMILTER_MACROS_CONNECT`,{daemon_port}')dnl
>> dnl define(`confMILTER_MACROS_HELO',    confMILTER_MACROS_HELO`,{verify},{client_resolve}')dnl                                  
>> dnl define(`confMILTER_MACROS_ENVRCPT', confMILTER_MACROS_ENVRCPT`,{client_resolve}')dnl                               
>>
>> define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')dnl
>> define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl
>> define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')dnl
>> define(`confMILTER_MACROS_ENVRCPT', `{greylist}')dnl
> 
> to your /etc/mail/sendmail.mc file (in the section on sendmail milter
> support) and rebuild it with
> 
> /etc/mail/make

Oh, yeah, and then edit /etc/mail/milter-greylist.conf to suit your site...

-- 
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)


More information about the users mailing list