首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Exim4:“连接超时”--不管转发的smtp服务器是什么

Exim4:“连接超时”--不管转发的smtp服务器是什么
EN

Server Fault用户
提问于 2018-10-27 18:34:28
回答 1查看 3.4K关注 0票数 1

Exim是在公共云提供商提供的新提供的VM上配置的公共IP (scaleway.net)。

用途:

能够从CLI (或脚本)发送邮件给公共目的地收件人(gmail,yahoo,.)

结果:

Exim4日志文件/var/ log /exim4 4/mainlog显示与所有测试服务器(gmail、free.fr、online.net)的“连接超时”。

配置详细信息:

代码语言:javascript
复制
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:   xenial
  • 服务器上没有配置防火墙,也没有云提供商的规则。
  • 解析的smtp服务器IP地址(来自exim日志文件)是可单击的。

使用不同的smtp服务器进行测试:(gmail、free.fr、online.net)

/etc/exim4/update-exim4.conf.conf

猫# /etc/exim4/update-exim4.conf.conf # # Edit this file and /etc/mailname by hand and execute update-exim4.conf # yourself or use 'dpkg-reconfigure exim4-config' # # Please note that this is _not_ a dpkg-conffile and that automatic changes # to this file might happen. The code handling this will honor your local # changes, so this is usually fine, but will break local schemes that mess # around with multiple versions of the file. # # update-exim4.conf uses this file to determine variable values to generate # exim configuration macros for the configuration file. # # Most settings found in here do have corresponding questions in the # Debconf configuration, but not all of them. # # This is a Debian specific file dc_eximconfig_configtype='smarthost' dc_other_hostnames='' dc_local_interfaces='127.0.0.1 ; ::1' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='smtp.online.net::587' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='false' dc_mailname_in_oh='true' dc_localdelivery='mail_spool 对smtp服务器上的每个测试正确配置帐户和密码:

cat /etc/etc 4/passwd.client

代码语言:javascript
复制
#gmail-smtp.1.google.com:destination@gmail.com:pass1
#smtp.online.net:destination@online.net:pass2
smtp.free.fr:destination@free.fr:pass2

root@scw-5c50c6:~# -f /var/log/exim4/mainlog

代码语言:javascript
复制
root@scw-5c50c6:~# tail -f /var/log/exim4/mainlog
2018-10-27 17:32:47 1gGSDM-0002ib-5Y == destination1@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSKT-0002sr-C6 == destination1@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSF6-0002ij-UA == destination1@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSJs-0002no-EM == destination1@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSHC-0002is-0H == destination1@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 End queue run: pid=12074
2018-10-27 17:32:53 1gGSQA-00038q-A1 H=smtpauth-dc2.online.net [62.210.16.40] Connection timed out
2018-10-27 17:32:53 1gGSQA-00038q-A1 == destination1@gmail.com R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out

2018-10-27 17:47:12 1gGSg4-00039P-CW <= root@localhost U=root P=local S=369
2018-10-27 17:47:12 1gGSg4-00039P-CW == destination2@yahoo.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host


2018-10-27 18:02:34 1gGSst-0003JZ-5k H=smtp.free.fr [212.27.48.4] Connection timed out
2018-10-27 18:02:34 1gGSst-0003JZ-5k == destination2@yahoo.com R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out
2018-10-27 18:03:09 1gGSvV-0003KT-9k <= root@localhost U=root P=local S=369
2018-10-27 18:03:09 1gGSvV-0003KT-9k == destination2@yahoo.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host

我是不是漏掉了什么东西?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2018-10-28 01:41:13

Scaleway默认情况下阻止传出SMTP。你需要将其从控制面板中解除。。访问此选项需要经过验证的帐户;如果无法启用该帐户,请打开带有Scaleway的票证以获得进一步的说明。

票数 5
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/937526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档