GoDaddy経由でメールを送信するために、私のsendmailサーバーがスマートホストとして機能するようにしたいと思います。ポート3535でsmtpout.secureserver.netにTelnetでき、対応するSMTP応答が正しいことを確認しました。しかし、私のsendmailサービスはメールを送信できません。理由がわからない。 sendmailのスマートホスト部分を次のように構成しました。
define(`SMART_HOST', `smtpout.secureserver.net')dnl
define(`RELAY_MAILER',`esmtp')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 3535')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /data/smtp/client-info')dnl
メールログには以下が表示されます(ログレベル99)。
Feb 26 12:03:56 myhost sendmail[4694]: v1QH3uXi004692: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:57 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120448, relay=smtpout.secureserver.net. [173.201.192.229], dsn=5.0.0, stat=Service unavailable
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: dropenvelope, e_flags=0x4605862, OpMode=q, pid=4694
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: alias <[email protected]> => [email protected]
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: assigned id
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: v1QH3vXi004694: DSN: Service unavailable
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: queueup ./qfv1QH3vXi004694
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: sendenvelope, flags=0x604082
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:58 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: [email protected], delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=31662, relay=smtpout.secureserver.net. [173.201.193.101], dsn=5.0.0, stat=Service unavailable
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: dropenvelope, e_flags=0x46050a2, OpMode=q, pid=4694
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias MAILER-DAEMON => postmaster
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias postmaster => root
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias root => [email protected]
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias postmaster => root
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias root => [email protected]
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: assigned id
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: v1QH3vXj004694: return to sender: Service unavailable
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: queueup ./qfv1QH3vXj004694
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: sendenvelope, flags=0x604082
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:59 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: [email protected], delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=32686, relay=smtpout.secureserver.net. [173.201.193.101], dsn=5.0.0, stat=Service unavailable
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: dropenvelope, e_flags=0x46050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias MAILER-DAEMON => postmaster
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias postmaster => root
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias root => [email protected]
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./dfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./qfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: done; delay=00:00:01, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./xfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: ./xfv1QH3vXj004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x4050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: Losing ./qfv1QH3vXi004694: savemail panic
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: SYSERR(root): savemail: cannot save rejected email anywhere
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlink ./qfv1QH3vXi004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: ./qfv1QH3vXi004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: done; delay=00:00:03, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlink ./xfv1QH3vXi004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: ./xfv1QH3vXi004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x4050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./dfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./qfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: done; delay=00:00:04, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./xfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: ./xfv1QH3uXi004692: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x407062, OpMode=q, pid=4694
私考えるログに他のエラーは表示されないため、これは接続に関連しています。資格情報に関連する場合は、より多くの情報を公開できます。
誰かがこれが失敗する理由を説明できますか?
答え1
sendmailは受信側に問題があるときに何の手がかりも残さないようです。以前は、Telnetを使用してSMTP接続をテストしていましたが、認証が必要なため(Telnet経由で)電子メール全体を送信できないようです。私が見つけたこのリンクauth コマンドをビルドし、電子メールをテストする方法を示します。
FROM行にドメイン名のDNSエントリがないため、受信SMTPサーバーがメッセージを拒否したことがわかりました。問題を解決した後、メールはTelnet経由で送信され、その後sendmail経由で送信されました。