Preventing Denial of Service Attacks in Sun Java System Messaging ServerOctober 2006This article describes some of the ways you can prevent Denial of Service (DoS) attacks and similar Spam abuses on Sun Java System Messaging Server. Use this article to learn more about:
Note: Keep in mind that when it comes to "stopping" Spam, often a "soft" technique can be more effective than a "hard" technique. Consider a jujitsu analogy: rather than attempting to directly stand in the way of the Spam, one sticks one's foot out and lets the Spam trip over it (and crash to the floor due to its own momentum). For Spam, that might translate to letting Spam in but sidelining it (.HELDing it), "tar-pitting" suspected Spam transactions (intentionally responding very slowly during the SMTP dialogue), and using other similar "soft" techniques. About DoS AttacksA DoS attack happens when an organization has trouble accessing the network resources it normally uses. Typically, that network service is email, which has become unavailable or has lost connectivity. Usually done intentionally and maliciously, DoS attacks can also happen accidentally, though this is rare. A common form of a DoS attack is to send more traffic to a network address than the system buffers can handle. The effect of this attack is to make it difficult for legitimate requests for a session to get established. Common Techniques to UseLimiting Specified IP Address Connections to the MTA A particular IP address can be limited to how often it connects to
the Messaging Server MTA by using the shared library, See Chapter 17, Mail Filtering and Access Control, in the Sun Java System Messaging Server 2005Q4 Administration Guide for more information. Using the holdlimit Channel KeywordExtraordinarily large lists of recipient addresses are often a
characteristic of unsolicited bulk email. The See Chapter 12, Configuring Channel Definitions, in the Sun Java System Messaging Server 2005Q4 Administration Guide for more information. Using conn_throttle from a FROM_ACCESS Mapping Use Another approach is to start delaying and/or .HELDing at a "starting to get suspicious" threshold level, and then go ahead and reject at a higher "fairly certain it's abuse" threshold level. See Chapter 17, Mail Filtering and Access Control, in the Sun Java System Messaging Server 2005Q4 Administration Guide for more information. Using the alternatechannel and alternaterecipientlimit Channel Keywords The MTA provides the ability to retarget messages that exceed a
specified limit on the number of recipients, message size, or message
lines to an alternate destination channel. This is implemented as a set
of the following channel keywords, Use the See the section titled "Limits on Messages, Quotas, Recipients, and Authentication Attempts," in Chapter 12, Configuring Channel Definitions, in the Sun Java System Messaging Server 2005Q4 Administration Guide for more information. Enforcing Use of SMTP Authentication SMTP Authentication, or SMTP Auth (RFC 2554) is the preferred method
of providing SMTP relay server security. Enforce use of SMTP Auth to
submit messages, log the authenticated submitter ( See Chapter 19, Configuring Security and Access Control, in the Sun Java System Messaging Server 2005Q4 Administration Guide, and Chapter 13, Planning Messaging Server Security, in the Sun Java System Communications Services 2005Q4 Deployment Planning Guide for more information. Configuring Per-channel Recipient Limits Configure per-channel recipient limits by using Recipient limits can also be set on a sender or sender's domain.
This is done by specifying a user or domain LDAP attribute with the
appropriate MTA option: This technique can be counterproductive unless you're also going to impose transaction limits and/or some other form of limiting. Otherwise, just limiting the number of recipients submitted per transaction may merely get rid of one of the easier-to-detect clues that a message is Spam. Note: These keywords were introduced in Messaging Server 6, and so do not exist for Messaging Server 5 installations. See the section titled "Limits on Messages, Quotas, Recipients, and Authentication Attempts," in Chapter 12, Configuring Channel Definitions, in the Sun Java System Messaging Server 2005Q4 Administration Guide for more information. Checking "Email Bombers" for Proper Host Name Check if email "bombers" are presenting a proper host name on their initial HELO/EHLO line and if not, "tar-pit" (or .HELD or reject). Note: This feature was
introduced in Messaging Server 6, so that the Configuring Spam Filter Packages Add a third-party Spam filter package to your Messaging Server
deployment. For example, SpamAssassin is freeware, however, other
choices exist. See Chapter 14, Integrating Spam and Virus Filtering Programs Into Messaging Server, in the Sun Java System Messaging Server 2005Q4 Administration Guide for more information. Finding and Deleting Spam on the System Use the Upcoming Enhancements in the Next Messaging Server ReleaseA new MeterMaid facility is planned in the upcoming Messaging
Server release, which provides a similar functionality
as Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics |