I've been using the open relay test tool at http://www.abuse.net/relay.html
to test my Mercury server.
If I rely on the Relaying control checkboxes on the Connection control tab
of the SMPT server configuration dialog, I get a response like this:
<<< 220 my_mercury_server ESMTP server ready.
>>> HELO www.abuse.net
<<< 250 my_mercury_server Hello, www.abuse.net.
Relay test 1
>>> RSET
<<< 250 Command processed OK.
>>> MAIL FROM:<spamtest@abuse.net>
<<< 250 Sender OK - send RCPTs.
>>> RCPT TO:<securitytest@abuse.net>
<<< 553 We do not relay without RFC2554 authentication.
Relay test 2
>>> RSET
<<< 250 Command processed OK.
>>> MAIL FROM:<spamtest>
<<< 250 Sender OK - send RCPTs.
>>> RCPT TO:<securitytest@abuse.net>
<<< 553 We do not relay without RFC2554 authentication.
and so on for several other variations.
Alternatively, if I define transaction level filtering rules
that allow mail to domains I host, but reject all else:
R, "*@mydomain.com*", X
R, "*@myotherdomain.net*", X
R, "*", R, "554 We do not relay non local mail"
then the response I get is quite different:
<<< 220 my_mercury_server ESMTP server ready.
>>> HELO www.abuse.net
<<< 250 my_mercury_server Hello, www.abuse.net.
Relay test 1
>>> RSET
<<< 250 Command processed OK.
>>> MAIL FROM:<spamtest@abuse.net>
<<< 250 Sender OK - send RCPTs.
>>> RCPT TO:<securitytest@abuse.net>
<<< 554 We do not relay non local mail
Relay test 2
>>> RSET
<<< 554 Outcast connection - only the QUIT command will be accepted.
Now, it's not that I'm concerned about being polite to spammers, but is
one response better than the other?
Regards,
Richard
I'd say a 553 message is better in this case since this is a defined message. 554 is a response you form yourself, and if a standard message exists - go with that.
[quote user="Richard"]... is one response better than the other?[/quote]
Makes no difference in my book.
The important thing is that you have given a 500-style response (which is a permanent failure), and ensured that you do not relay.
(Personally I would use the built-in relaying controls, as they are easier to maintain if you need to change domains etc.)
Peter & Paul, thank you for your help.
Do you know what it means by an 'Outcast connection' ?
I assume there is still a TCP connection, otherwise the sender wouldn't still have the option of sending a QUIT.
An "outcast" connection is one that has been marked as bad internally. The only command that Mercury will accept from a connection in the "outcast" state is "QUIT" - no mail delivery is possible. A connection can only become outcast through either a transaction filtering rule or a compliance failure.
In v4.5, the word "outcast" has changed to "shunned" to indicate more forcefully that we don't like the connection. [;)]
Cheers!
-- David --
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.