Viktor Dukhovni: > Most likely it is easier to just write a Perl or Python script, or > Haskell or Go program that is an ESMTP server that emits detailed error > messages. Choose a language in which it is easy to write a parser that > emits detailed error diagnostics.
I would suggest using a stateful proxy between the client and Postfix. The proxy implements the help functionality, and looks at the conversation between the client and Postfix, so that it knows the history of an SMTP session. Wietse