On Saturday 06 January 2007 01:01, Matthew R. Dempsky wrote:
> On Sat, Jan 06, 2007 at 12:22:25AM -0500, Joshua Megerman wrote:
> > Here's a 1-line patch to your program that spits out a 554 response code
> > before exiting if strict checking is enabled - this is required to
> > maintain RFC2821 compliance. Since you are accepting the connection, you
> > must give a response, even if it's just "go away"...
>
> I had considered this and have had others suggest the same. The only
> thing I don't like about it, however, is my understanding is that most
> SMTP clients (vanilla qmail-remote is an exception that comes to mind)
> treat a 554 error at connection as a permanent rejection, and there
> aren't any 4xx codes that RFC 2821 allows at connection.
>
Well, technically you can issue a 421 response _anytime_ (as well as a 500 or
501 - see RFC2821 section 4.3.2 and don't just look at the sequence table),
but I agree with John's assessment - it's highly unlikely that a client is
going to change its behavior pattern of whether it waits to speak or not.
And after looking at John's message, I like his response better - it's enough
that a real person might be able to ask their support person for help, but a
dumbspammer might not ever figure it out... :)
I'm going to change my code to use that message and see how it works...
Josh
--
Joshua Megerman
SJGames MIB #5273 - OGRE AI Testing Division
You can't win; You can't break even; You can't even quit the game.
- Layman's translation of the Laws of Thermodynamics
qmail@honorablemenschen.com
|