![Sendmail:DSN:服务不可用](https://linux22.com/image/633200/Sendmail%EF%BC%9ADSN%EF%BC%9A%E6%9C%8D%E5%8A%A1%E4%B8%8D%E5%8F%AF%E7%94%A8.png)
我一直无法让服务器发送电子邮件,我怎么也想不出解决办法。如果有人能给我一些简单的建议,我将不胜感激!
May 19 15:36:03 ubuntu-12 sm-mta[2484]: s4JFa3jp002484: from=<[email protected] production>, size=412, class=0, nrcpts=1, msgid=<[email protected] production>, proto=ESMTP, daemon=MTA-v4, relay=ip6-localhost [127.0.0.1]
May 19 15:36:03 ubuntu-12 sendmail[2483]: s4JFZw4c002483: [email protected], ctladdr=www-data (33/33), delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=30123, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (s4JFa3jp002484 Message accepted for delivery)
May 19 15:36:03 ubuntu-12 sm-mta[2487]: s4JFa3jp002484: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120412, relay=mailserver.mycompany.com. [213.171.216.115], dsn=5.0.0, stat=Service unavaila$
May 19 15:36:03 ubuntu-12 sm-mta[2487]: s4JFa3jp002484: s4JFa3jp002487: DSN: Service unavailable
May 19 15:36:03 ubuntu-12 sm-mta[2487]: s4JFa3jp002487: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
答案1
该输出的第三行告诉我,发送服务器工作正常,但接收服务器“mailserver.mycompany.com”未监听传入邮件。服务已关闭或未监听外部地址。