SMTPステータスコードまとめ
WIP WIP WIP WIP
RFC
Simple Mail Transfer Protocol
https://tools.ietf.org/html/rfc2821 から改訂
https://tools.ietf.org/html/rfc821 から改訂
SMTP-AUTH
A Registry for SMTP Enhanced Mail System Status Codes
https://tools.ietf.org/html/rfc4954
SMTP Service Extension for Returning Enhanced Error Codes
https://tools.ietf.org/html/rfc2554
https://tools.ietf.org/html/rfc3463
ステータスコード
2xx: Positive Completion reply
211 : System status, or system help reply
214 : Help message (Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user)
220 : <domain> Service ready
221 : <domain> Service closing transmission channel
250 : Requested mail action okay, completed
251 : User not local; will forward to <forward-path> (See Section 3.4)
252 : Cannot VRFY user, but will accept message and attempt delivery
235
2.7.0 : Authentication Succeeded
3xx: Positive Intermediate reply
354 : Start mail input; end with <CRLF>.<CRLF>
4xx: Transient Negative Completion reply
421 : <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down)
432
4.7.12 : A password transition is needed
450 : Requested mail action not taken: mailbox unavailable (e.g., mailbox busy or temporarily blocked for policy reasons)
451 : Requested action aborted: error in processing
SendGrid で送信数の上限オーバー
451 Authentication failed: Maximum credits exceeded
452 : Requested action not taken: insufficient system storage
454
4.7.0 : Temporary authentication failure
455 : Server unable to accommodate parameters
5xx: Permanent Negative Completion reply
500 : Syntax error, command unrecognized (This may include errors such as command line too long)
5.5.6 : Authentication Exchange line is too long
501 : Syntax error in parameters or arguments
502 : Command not implemented
503 : Bad sequence of commands
504 : Command parameter not implemented
530
5.7.0 : Authentication required
534
5.7.9 : Authentication mechanism is too weak
535
5.7.8 : Authentication credentials invalid
538
5.7.11 : Encryption required for requested authentication mechanism
550 : Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons)
551 : User not local; please try <forward-path>
552 : Requested mail action aborted: exceeded storage allocation
553 : Requested action not taken: mailbox name not allowed (e.g., mailbox syntax incorrect)
554 : Transaction failed (Or, in the case of a connection-opening response, "No SMTP service here")
Outlook で送信数上限を超えると以下のエラーが返ってくる
554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message WASCL UserAction verdict is not None. Actual verdict is RefuseQuota, ShowTierUpgrade. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is RefuseQuota, ShowTierUpgrade. Hostname=BM1PR01MB0707.INDPRD01.PROD.OUTLOOK.COM
Amazon SES で検証されていないメアドに送ろうとした場合
554 Message rejected: Email address is not verified. The following identities failed the check in region XXX: yyy@zzz.com
Office365 の権限まわりの設定ミス?
554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. ... Hostname=xxx.yyy.com
555 : MAIL FROM/RCPT TO parameters not recognized or not implemented
Reply Code 502
Questions have been raised as to when reply code 502 (Command not implemented) SHOULD be returned in preference to other codes.
502 SHOULD be used when the command is actually recognized by the SMTP server, but not implemented.
If the command is not recognized, code 500 SHOULD be returned.
Extended SMTP systems MUST NOT list capabilities in response to EHLO for which they will return 502 (or 500) replies.
#SMTP #RFC