简体   繁体   English

Exim邮件传输代理无法传递邮件

[英]Exim Mail Transfer Agent can't deliver mail

I have problem with exim MTA, it can not send any mail. exim MTA出现问题,它无法发送任何邮件。

I have followed a simple and straight forward guide in how to setup the MTA : https://library.linode.com/email/exim/send-only-mta-ubuntu-12.04-precise-pangolin 我遵循了有关如何设置MTA的简单明了的指南: https : //library.linode.com/email/exim/send-only-mta-ubuntu-12.04-precise-pangolin

But when I test the configuration at the end it fails to send. 但是,当我最后测试配置时,它无法发送。

I don't get any error message when issuing the commands : 发出命令时我没有收到任何错误消息:

echo "This is test 1." | mail -s Testing_1 myemail@gmail.com

echo "This is test 2." | mail -s Testing_2 myemail@hotmail.com

But I can read in the log (/var/log/exim4/mainlog) that it was not successfully sent (and I don't receive any of the emails). 但是我可以在日志(/ var / log / exim4 / mainlog)中读取未成功发送的日志(并且我没有收到任何电子邮件)。

What should I do, I have no idea about what's wrong...?? 我该怎么办,我不知道怎么了...? My first thought was that the router (or firewall) was blocking my MTA, but the log shows that it has been in contact with the out side, so I don't think tht is the issue 我首先想到的是路由器(或防火墙)阻止了我的MTA,但是日志显示它已经与外部接触,所以我认为这不是问题所在

I appriciate all the help I can get. 我尽我所能获得的所有帮助。

Edit : I had to use ISPs mailhost by setting config : dc_smarthost='mailout.isp.com' and adding a rewrite rule for Exim, matching my email adress for the account with the ISP. 编辑:我必须通过设置config:dc_smarthost ='mailout.isp.com'并为Exim添加重写规则来使用ISP的mailhost,使该帐户的电子邮件地址与ISP匹配。

/John /约翰

exim4.conf-file (/etc/exim4/update-exim4.conf.conf): 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 Log: 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

Looks to me like your ISP has blocked connections outbound to tcp/25. 在我看来,您的ISP已阻止出站到tcp / 25的连接。 Why did you reject your initial supposition that it was the firewall? 您为什么拒绝最初的假定是防火墙? The logs you quoted indicate that your server can make DNS requests, but there are no successful attempts to connect to a mail server. 您引用的日志表明您的服务器可以发出DNS请求,但是没有成功尝试连接到邮件服务器。 It could still be a local firewall issue but these days its very common for ISPs to prevent their clients from sending email to tcp/25 unless you have explicitly requested the ability to do so (and sometimes not even then). 它仍然可能是本地防火墙问题,但如今,ISP阻止其客户端向tcp / 25发送电子邮件非常普遍,除非您明确要求能够这样做(有时甚至没有)。

Take exim out of the equation and run this from the command line of your mail server: 从公式中排除exim并从邮件服务器的命令行运行它:

telnet 65.54.188.94 25

if you can connect, it's a problem with your exim install. 如果可以连接,则说明您的exim安装有问题。 If you can't connect, it's a network issue, whether a local firewall, ISP firewall, etc. 如果无法连接,则是网络问题,无论是本地防火墙,ISP防火墙等。

Use should check to see that any firewall(iptables, csf...) is running on your server first. 使用者应先检查服务器上是否正在运行任何防火墙(iptables,csf ...)。 If yes, turn it off and try to test telnet to external mail server like : 如果是,请将其关闭,然后尝试将telnet测试到外部邮件服务器,例如:

telnet external_mail_server 25

If ok, you should check the exim configuration. 如果可以,则应检查exim配置。 If no , you should contact your hosting provider 如果否,则应联系您的托管服务提供商

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM