いつもお世話になっています、ドウメイシと申します。
GoogleのG Suitアカウントで、smtp-relay.gmail.comサーバーに、メールをリレーしようとしているのですが、Invalid credentialというエラーが発生し、メールをリレーしてくれません。
英語版のStack over flow等を参考にしたのですが、エラーを回避できません。
ご存知の方がいらっしゃると願って、投稿致しました。
何でも良いので、お知恵を拝借できるでしょうか。
サーバーは自宅でDDNSで使用しています。smtpはpostfixを使用しており、メールのリレー設定は次の様になっています。
relayhost = [smtp-relay.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain cram-md5
smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
/etc/postfix/sasl_passwd
の内容は
[smtp-relay.gmail.com]:587 id_xxx:pw_xxx
となっています。このid_xxxとpw_xxxで、gmailにはログインできており、gmail上から
送受信できています。
G suitのSMTPの設定では
許可する送信者: ドメイン内の登録済み Apps ユーザーのみ
指定した IP アドレスからのみメールを受信する: はい
許可された IP アドレス: 田上氏のサーバー
SMTP 認証を求める: はい
TLS 暗号化を必須とする: はい
にしており、IPアドレスは、自宅に引いている光回線のグローバルIPアドレスを設定しています。
この状態で、自宅サーバーからメールを送信すると、
postfixのログに
relay=smtp-relay.gmail.com[2404:6800:40 08:c04::1c]:587, delay=59284, delays=59281/0.01/2.5/0.23, dsn=5.7.1, status =bounced (host smtp-relay.gmail.com[2404:6800:4008:c04::1c] said: 550-5.7.1 Invalid credentials for relay [240f:104:3607:1:1e1b:dff:feaa:2cb4]. 550-5. 7.1 The IP address you've registered in your G Suite SMTP Relay service 550 -5.7.1 doesn't match domain of the account this email is being sent from. I f 550-5.7.1 you are trying to relay mail from a domain that isn't registere d 550-5.7.1 under your G Suite account or has empty envelope-from, you must 550-5.7.1 configure your mail server either to use SMTP AUTH to identify t he 550-5.7.1 sending domain or to present one of your domain names in the H ELO or 550-5.7.1 EHLO command. For more information, please visit 550 5.7.1 https://support.google.com/a/answer/6140680#invalidcred z127sm4983682qkz. 4 - gsmtp (in reply to MAIL FROM command))
となります。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。