What SMTP response code and message should be used for an unspecified system error in processing the request?
RFC 5321 §4.2 states:
An SMTP server SHOULD send only the reply codes listed in this document. An SMTP server SHOULD use the text shown in the examples whenever appropriate.
What should an SMTP server implementation do for an error that does not fit any of the listed codes and descriptions?
The HTTP specification has a response code 500
for a non-specific “Internal Server Error”. What is the appropriate SMTP equivalent that stays within the bounds of the above “SHOULD” admonitions?
The more correct return code for generic errors seems 451
From the RFC:
If you, for some reasons, feel that 451 is not adequate, you can use 430 or 440: