今回はGmailのエラーパターンについてご紹介致します。
仕様変更等によりパターンが変更となる場合がございますのであくまでも参考程度にご活用いただければ幸いです。
550-5.1.1
アカウントが存在しない
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 https://support.google.com/mail/?p=NoSuchUser
上記は配送先メールアカウントが存在しないまたは該当アカウントが退会済みの場合等に発生する不達エラーとなります。
550-5.2.1
アカウントが無効
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.2.1 The email account that you tried to reach is disabled. Learn more at 550 5.2.1 https://support.google.com/mail/?p=DisabledUser
上記は送信先のメールアカウントが無効となっている場合に発生するエラーとなります。
550-5.7.1
送信ドメインの評価が低い
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.7.1 [配送元サーバーIPアドレス] Our system has detected that this message is 550-5.7.1 likely suspicious due to the very low reputation of the sending 550-5.7.1 domain. To best protect our users from spam, the message has been 550-5.7.1 blocked. Please visit 550 5.7.1 https://support.google.com/mail/answer/188131 for more information.
上記は送信ドメインの評価が低い事によりスパム判定された場合に発生するエラーとなります。
有効なmessageIdヘッダーが無い
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.7.1 [配送元サーバーIPアドレス] Messages missing a valid messageId header are not 550 5.7.1 accepted.
上記は有効なmessageIdヘッダー情報が無い事により発生するエラーとなります。
複数のFROMメールアドレスがある
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.7.1 [配送元サーバーIPアドレス] Messages with multiple addresses in From: header are 550 5.7.1 not accepted.
上記はヘッダ情報に複数のFROMアドレスが設定されている事により発生するエラーとなります。
迷惑メール判定
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.7.1 [配送元サーバーIPアドレス] Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 https://support.google.com/mail/?p=UnsolicitedMessageError 550 5.7.1 for more information.
上記はgoogleにて迷惑メールと判定された際に発生するエラーとなります。
550-5.7.26
SPFレコード認証
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.7.26 This message does not pass authentication checks (SPF and DKIM both 550-5.7.26 do not pass). SPF check for [対象ドメイン] does not pass with ip: 550-5.7.26 [配送元サーバーIPアドレス].To best protect our users from spam, the message 550-5.7.26 has been blocked. Please visit 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more 550 5.7.26 information.
上記はSPF認証に弾かれた際に発生するエラーとなります。
DMARCポリシー違反
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 550-5.7.26 Unauthenticated email from 対象ドメイン is not accepted due to 550-5.7.26 domain's DMARC policy. Please contact the administrator of 550-5.7.26 対象ドメイン domain if this was a legitimate mail. Please visit 550-5.7.26 https://support.google.com/mail/answer/2451690 to learn about the 550 5.7.26 DMARC initiative.
上記はDMARCポリシー違反の際に発生するエラーとなります。
552-5.2.2
アカウント容量が上限に達している
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 552-5.2.2 The email account that you tried to reach is over quota and inactive. 552-5.2.2 Please direct the recipient to 552 5.2.2 https://support.google.com/mail/?p=OverQuotaPerm
上記は配送先メールアカウントの容量が上限に達し不達の際に発生するエラーとなります。
552-5.7.0
セキュリティポリシーブロック
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 552-5.7.0 This message was blocked because its content presents a potential 552-5.7.0 security issue. Please visit 552-5.7.0 https://support.google.com/mail/?p=BlockedMessage to review our 552 5.7.0 message content and attachment content guidelines.
上記はgoogleのセキュリティポリシーにブロックされた際に発生するエラーとなります。
553-5.1.7
RFC5321に準拠していないアドレス形式
status=bounced (host gmail-smtp-in.l.google.com[配送先IPアドレス] said: 553-5.1.7 The sender address 配送元メールアドレス is not a 553 5.1.7 valid RFC-5321 address.
上記はRFC5321に準拠していないアドレス形式にて送信した際に発生するエラーとなります。