Ticket #5769 enhancement closed duplicate
IMessage.eomReceived cannot determine the response code of the SMTP server
|Reported by:||itamar||Owned by:|
I would like to return a custom error response code from the SMTP server at the end of message processing (i.e. the final '.'). However, the SMTP server code (SMTP._messageHandled) does not look at the contents of response from eomReceived, it simply checks if there were any errors and if so returns a hard-coded 550 error. It would be nice if SMTPServerError errors returned from eomReceived would be transmitted back to the client (or at least, the first one).