![]() |
|
|
|
![]() |
![]() ![]() |
"POP(IMAP)-before-SMTP" Anti-spam MeasureFeatured: February 1998
How to restrict relaying through your mail server to only local users, specifically those that have authenticated using POP (Post Office Protocol) or IMAP (Internet Message Access Protocol). Blue Reef has recently upgraded the email services on each Virtual Server to include a "POP(IMAP)-before-SMTP" anti-spam measure. With the demise of the big spamhaus operations like CyberPromo, the spamming community has resorted to "hit-and-run" spamming through open SMTP relays, the advantage being that a spammer can send a single copy of his or her spam from a throwaway dial-up account and have the fast and well-connected SMTP server "explode" the message out to 50 or more addresses per original send. Also, since there are many, many open SMTP relays around the world, spammers can easily circumvent spam blocking measures by bouncing their spams off an unsuspecting relay. When implemented correctly, a POP(IMAP)-before-SMTP policy should all
but eliminate this form of unauthorized SMTP relaying. POP(IMAP)-before-SMTP
relaying works like this: every time someone successfully enters a correct
username and password to the POP server or IMAP server, the server records
the IP address of remote client for later use by the SMTP server. This
IP address is stored in a .db file (etc/relayers.db)
with a timestamp of the login. This database will serve as a list of IP
addresses that are allowed to perform an SMTP relay and is used by sendmail
during an SMTP transaction. Placing a simple set of rules in the "check_rcpt"
section of the sendmail.cf
file will cause sendmail to refuse to relay except for IP addresses recorded
by either the POP daemon or the IMAP daemon. With the addition of the
"vsmtprelay" utility command
that is used to expire addresses from the database as their validity runs
out, the solution is complete. Database cleanup and address expiration
can be automated via a cron entry, making the solution self-maintaining
and requiring no manual intervention or maintenance.
|
|
![]() |
[ SERVERS | ECOMMERCE | SUPPORT | SPECIALS | SEARCH | SITE MAP | ORDER] [ HOME | CONTACT US | ABOUT US | PRIVACY | LEGAL | REFUND POLICY ] © Copyright 1998 - 2001 Blue Reef Consulting, Inc. All Rights Reserved. Comments or questions about this web site? Write to webmaster@bluereef.net. Phone: (305) 274-8393 |