The default count_unrecognized_commands doesn't return with "DONE" so the dispatcher will cause an extra 500 response:
[EMAIL PROTECTED]:~$ telnet bogus 25 Trying 1.2.3.4... Connected to bogus. Escape character is '^]'. 220 Hello send us your mail, but not your spam. ESMTP RAR 500 Unrecognized command 500 Unrecognized command The patch below corrects this. Steve -- Try out tscreen - My fork of GNU Screen: http://www.steve.org.uk/Software/tscreen [EMAIL PROTECTED]:~/svn/qpsmtpd/plugins$ svn diff -x -w Index: count_unrecognized_commands =================================================================== --- count_unrecognized_commands (revision 955) +++ count_unrecognized_commands (working copy) @@ -49,6 +49,6 @@ return (DENY_DISCONNECT, "Closing connection. $badcmdcount unrecognized commands. Perhaps you should read RFC 2821?"); } - return DECLINED; + return DONE; }