|
Sponsored by:
Exchange anti-spam - Dld free trial! Home About Spam Help for Users Help for Sysadmins Help for Marketers FAQS Join Us Link to Us Site Index About Us Editor's Blog |
Controlling e-mail spam
TCP Wrapper and SMAPYou block your SMTP port by turning off your mailersSMTP daemon mode
and run it out of inetd instead.
With PROCESS_OPTIONS defined, rather than simply rejecting calls at the TCP
level, you may care to twist off a command which
reject the call at the SMTP level.
If you combine this with running smap from the TIS Firewall Toolkit, your
configurations look somewhat like this:
In smtp stream tcp nowait root /usr/local/etc/tcpd smapIn /etc/hosts.allow if PROCESS_OPTIONS is defined:
smap : badsite.com .badsite.com ppp.qqq.rrr.0 : DENYotherwise, in /etc/hosts.deny:
smap : badsite.com .badsite.com ppp.qqq.rrr.0In /usr/local/etc/netperm-table:
smap, smapd: userid 32 smap, smapd: directory /var/spool/smap smapd: executable /usr/local/libexec/smapd smapd: sendmail /usr/sbin/sendmailThis is a sample, your exact paths would vary. This combination is very powerful, and prevents badsite.com or anyone in the Internet range ppp.qqq.rrr.0 from accessing your SMTP server. Be aware, though, that this could load your mail server down. It will run a separate process for each incoming mail message. If your server is small relative to your load, you should investigate one of the other techniques listed here. Craig Hagan has contributed a method for blocking third-party relaying with smap. Spammers often use third-party relaying to distribute spam via an intermediary party's mailer. Using this routine, you can prevent your mailer from being misused that way. They are starting to do this because the other blocking techniques are making it harder for them to reach their targets. Blocking by MTAsA number of Mail Transfer Agents (MTA) provide techniques to reduce spam. They can block mail from known spammers and spam sites, stop your site being abused by them to act as a relay, etc. Here is a list of some of the techniques, sorted by MTA.
Scott Hazen Mueller / E-mail me |