我有 exim MTA 的问题,它不能发送任何邮件。
我在如何设置 MTA 方面遵循了一个简单直接的指南:https ://library.linode.com/email/exim/send-only-mta-ubuntu-12.04-precise-pangolin
但是当我最后测试配置时,它无法发送。
发出命令时我没有收到任何错误消息:
echo "This is test 1." | mail -s Testing_1 myemail@gmail.com
echo "This is test 2." | mail -s Testing_2 myemail@hotmail.com
但是我可以在日志(/var/log/exim4/mainlog)中读到它没有成功发送(而且我没有收到任何电子邮件)。
我该怎么办,我不知道出了什么问题......??我的第一个想法是路由器(或防火墙)阻止了我的 MTA,但日志显示它已与外部联系,所以我认为这不是问题
我感谢我能得到的所有帮助。
编辑:我必须通过设置 config 来使用 ISP 邮件主机:dc_smarthost='mailout.isp.com' 并为 Exim 添加重写规则,将我的电子邮件地址与 ISP 的帐户相匹配。
/约翰
exim4.conf 文件(/etc/exim4/update-exim4.conf.conf):
dc_eximconfig_configtype='internet'
dc_other_hostnames='PandaBoard; mydomain.net; meetup; localhost.localdomain; localhost'
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
Exim4 日志:
2013-09-13 00:13:35 exim 4.76 daemon started: pid=17823, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
2013-09-13 00:13:35 Start queue run: pid=17825
2013-09-13 00:13:35 End queue run: pid=17825
2013-09-13 00:23:11 exim 4.76 daemon started: pid=18570, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
2013-09-13 00:23:11 Start queue run: pid=18572
2013-09-13 00:23:11 End queue run: pid=18572
2013-09-13 00:24:17 1VKFJB-0004pm-Uf <= john@mydomain.net U=john P=local S=404
2013-09-13 00:24:18 1VKFJB-0004pm-Uf gmail-smtp-in.l.google.com [2a00:1450:4008:c01::1b] Network is unreachable
2013-09-13 00:25:22 1VKFJB-0004pm-Uf gmail-smtp-in.l.google.com [173.194.71.26] Connection timed out
2013-09-13 00:25:22 1VKFJB-0004pm-Uf alt1.gmail-smtp-in.l.google.com [2607:f8b0:4003:c02::1a] Network is unreachable
2013-09-13 00:26:26 1VKFJB-0004pm-Uf alt1.gmail-smtp-in.l.google.com [173.194.64.27] Connection timed out
2013-09-13 00:26:26 1VKFJB-0004pm-Uf == myemail@gmail.com R=dnslookup T=remote_smtp defer (101): Network is unreachable
2013-09-13 00:46:26 exim 4.76 daemon started: pid=19280, -q30m, listening for SMTP on [127.0.0.1]:25
2013-09-13 00:46:26 Start queue run: pid=19282
2013-09-13 01:03:55 1VKFvX-00052n-9V <= john@mydomain.net U=john P=local S=402
2013-09-13 01:05:00 1VKFvX-00052n-9V mx3.hotmail.com [65.54.188.94] Connection timed out
2013-09-13 01:06:04 1VKFvX-00052n-9V mx3.hotmail.com [65.54.188.72] Connection timed out
2013-09-13 01:07:08 1VKFvX-00052n-9V mx3.hotmail.com [65.55.37.72] Connection timed out
2013-09-13 01:08:13 1VKFvX-00052n-9V mx3.hotmail.com [65.55.92.136] Connection timed out
2013-09-13 01:09:18 1VKFvX-00052n-9V mx3.hotmail.com [65.55.92.168] Connection timed out
2013-09-13 01:09:18 1VKFvX-00052n-9V == myemail@hotmail.com R=dnslookup T=remote_smtp defer (110): Connection timed out
2013-09-13 01:16:26 Start queue run: pid=19436