Postfix Eメールのトラブルシューティング

Postfix Eメールのトラブルシューティング

Postfix メールで使用するサーバーを変更する際には、いくつかの問題があります。

Linuxサーバー(CentOS 5)にpostfixをインストールし、次のように設定しました。

/etc/postfix/main.cf に設定を追加しました。

relayhost=imap.googlemail.com

smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

次に、次の内容で/etc/postfix/sasl_passwdファイルを作成しました。

imap.googlemail.com fake_usernm:fake_passwd

次のようにマッピングしてください。

postmap /etc/postfix/sasl_passwd

その後、すべてがうまくいきましたが、リレーホストをsmtpサーバーmail.example.co.za:26に変更しようとすると、電子メールが送信されないようです。メールログを確認してみると、次の内容が含まれています。

Sep  7 09:30:23 dev postfix/pickup[32641]: E8BF874E3D4: uid=0 from=<root>
Sep  7 09:30:23 dev postfix/cleanup[32691]: E8BF874E3D4: message-id=<[email protected]>
Sep  7 09:30:23 dev postfix/qmgr[32642]: E8BF874E3D4: from=<[email protected]>, size=333, nrcpt=1 (queue active)
Sep  7 09:30:26 dev postfix/smtp[32693]: certificate verification failed for mail.example.co.za: num=20:unable to get local issuer certificate
Sep  7 09:30:26 dev postfix/smtp[32693]: certificate verification failed for mail.example.co.za: num=27:certificate not trusted
Sep  7 09:30:28 dev postfix/smtp[32693]: E8BF874E3D4: to=<[email protected]>, relay=mail.example.co.za[198.57.162.234]:26, delay=4.4, delays=0.07/0.02/3.8/0.51, dsn=5.0.0, status=bounced (host mail.example.co.za[198.57.162.234] said: 550-Verification failed for <[email protected]> 550-The mail server could not deliver mail to [email protected].  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command))
Sep  7 09:30:28 dev postfix/cleanup[32691]: 9D7D374E3D6: message-id=<[email protected]>
Sep  7 09:30:28 dev postfix/qmgr[32642]: 9D7D374E3D6: from=<>, size=2642, nrcpt=1 (queue active)
Sep  7 09:30:28 dev postfix/bounce[32695]: E8BF874E3D4: sender non-delivery notification: 9D7D374E3D6
Sep  7 09:30:28 dev postfix/qmgr[32642]: E8BF874E3D4: removed
Sep  7 09:30:28 dev postfix/cleanup[32691]: A72DF74E3D1: message-id=<[email protected]>
Sep  7 09:30:28 dev postfix/qmgr[32642]: A72DF74E3D1: from=<>, size=2777, nrcpt=1 (queue active)
Sep  7 09:30:28 dev postfix/local[32696]: 9D7D374E3D6: to=<[email protected]>, relay=local, delay=0.06, delays=0.03/0.01/0/0.02, dsn=2.0.0, status=sent (forwarded as A72DF74E3D1)
Sep  7 09:30:28 dev postfix/qmgr[32642]: 9D7D374E3D6: removed
Sep  7 09:30:31 dev postfix/smtp[32693]: certificate verification failed for mail.example.co.za: num=20:unable to get local issuer certificate
Sep  7 09:30:31 dev postfix/smtp[32693]: certificate verification failed for mail.example.co.za: num=27:certificate not trusted

違いが何であるか、どのように解決するのかわかりません。

ベストアンサー1

私が経験しているエラーは、実際にはサーバーの/ etc / hostsファイルにあるバグが原因であるようです。

ホストファイルを再構成してテストできました。

# hostname

出力が正しい

dev.server.com

しかし、

# hostname -f

エラーを出力しますが、再構成後に出力されます。

dev.server.com

正確でリレーホストで発生した問題を解決しました。

おすすめ記事