[KLUG Members] using sendmail to block spam

Bruce Smith members@kalamazoolinux.org
10 Jan 2003 13:50:31 -0500


> Can anybody comment on the following description:
> 
> http://www.sdsc.edu/~jeff/spam/Sendmail.html
> 
> Is the patch legit?  If so, how would it be applied?

It requires a patch to the sendmail source (C) code.  Yuck!!!

Not only do you have to create a new .cf, you have to recompile sendmail
and you have to recompile it EVERY TIME Redhat releases a new update!!!
(and fight getting the patch to install in the new releases)  YUCK!!!

> Then, there's that cryptic lines:
> 
> "Add these rules to the end of your .mc file, build a new .cf file with it,
> install, and restart sendmail to make all of the changes take effect."
> 
> Adding to the end of .mc sounds o.k., but how to build a new .cf file with it?

You use the command "m4", which reads sendmail.mc to create a new
sendmail.cf file.

Personally, I use this to eliminate almost all of our spam at work:

  http://spamcop.net/fom-serve/cache/294.html

Add one line to the .mc file, create a new .cf with m4 and restart
sendmail.  Nothing to it, and it's free (donations accepted).

Works great with stock Redhat 7.3 and the sendmail RPM that comes 
with it. (haven't tried other versions)

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------