Spam Bounces Considered Harmful
As published in UKERNA News September 2005.
The expectation that
The Changing Environment
The traditional assumption on which the
standards[1]
were based
is that all mail is legitimate.
Notifications were included as as to make
It is now necessary to presume
that an
Mail servers are, of course, configured not to simply deliver such abuse. They may notice what it is and suppress or (particularly for virus messages) delay delivery, or the target address may be invalid or temporarily unavailable. In such situations, notifications on the traditional model are likely to be misdirected.
Reject, Don't Bounce
The standards provide for a mail server to "reject" a message by refusing its transfer, rather than accepting it and risking future problems.
The process for transferring a message between mail servers
(for instance, one out in the Internet and one in a
- a TCP/IP network connection
-
some preliminary negotiation, mainly of
e-mail addresses -
the transfer of the data constituting the
e-mail message.
Opportunities for Rejection
-
A destination server can apply a local policy at the connection stage using a list of forbidden IP addresses. They might be addresses belonging to known senders of UBE, consumer IP addresses likely to have viruses or zombies, or other insecure networks through which abuse may occur. The
JANET RBL+[2] lists such IP addresses in a form recognised by most mail server products, and there are a number of other DNSBLs(DNS Block Lists). -
The destination server may be able to reject a transfer on the basis of the originator
e-mail address alone, if it has anon-existent or wholly undesirable domain. Once the server has both the connecting IP address and the originator domain, there are a number of proposed schemes for comparing the two. SPF[3](Sender Policy Framework) would record in the DNS which sending servers are legitimate for the originator address domain. Some mail server products can use SPF information, but deployment is at present patchy.When the server has the local address for message delivery, it should be able to reject messages for invalid or otherwise undeliverable addresses. This is relatively easy for small organisations with a single server, but in most networks in this community the server that needs to make the decision is not the one that will attempt delivery to valid addresses. There are a number of ways in which the
outward-facing server can still test the validity of a destination address: it can send a dummy delivery request to the delivery servers; it can interrogate their user databases directly; or it can refer to a copy of the user database maintained as a file. It is harder to anticipate other problems such as"quota exceeded", server misconfiguration, or the generation ofout-of-office notifications at the whim of a user. -
The message contents passed in the data phase can be examined and a responsed delayed, so that if the message contains indicators of a virus or UBE, the server can still reject the transfer. Not all mail server products yet support this, and integration of
anti-virus products and UBE scanners with anoutward-facing mail server is not straightforward. Dedicated appliances are available, but they may make it difficult o validate local destination addresses as above. DKIM[4](DomainKeys Identified Mail) would include a cryptographic signature in individual messages which can be verified at this stage with a key published in the DNS for the originating domain.
The aim for the operation and management
of each organisation's
E-mail Users
If you are principally a user of
You should avoid doing anything with received messages
which may cause irritation to third parties.
Use of vacation or
Rodney Tillotson
[1] RFC2821:
[3] SPF:
[4] DKIM: