/etc/exim4/更新-exim4.conf.conf
dc_eximconfig_configtype='smarthost' # was local
dc_other_hostnames='' # was mini31
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost='mini31'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='send.one.com:465' # Yes, two colons.
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
密码客户端
target:send.one.com:[email protected]:MyTopSecretPassword
/etc/电子邮件地址
localusername:[email protected]
/var/log/exim4/mainlog
2022-07-10 23:03:49 1oAf1p-0004w0-GD <= [email protected] U=rwb P=local S=355
2022-07-10 23:03:49 1oAf1p-0004w0-GD H=send.one.com [2a02:2350:5:20e::2] Network is unreachable
2022-07-10 23:03:49 1oAf1p-0004w0-GD H=send.one.com [2a02:2350:5:20e::1] Network is unreachable
或者有时
mini31 # tail /var/log/exim4/mainlog
2022-07-10 23:05:28 1oAf1p-0004w0-GD Spool file is locked (another process is handling this message)
2022-07-10 23:05:28 End queue run: pid=19276
2022-07-10 23:08:49 1oAf1p-0004w0-GD H=send.one.com [46.30.211.141]: SMTP timeout after initial connection: Connection timed out
2022-07-10 23:08:49 1oAf1p-0004w0-GD == [email protected] R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out H=send.one.com [46.30.211.141]: SMTP timeout after initial connection
2022-07-10 23:10:58 exim 4.92 daemon started: pid=19694, -q30m, listening for SMTP on [127.0.0.1]:25 [::1]:25
2022-07-10 23:10:58 Start queue run: pid=19695
2022-07-10 23:10:58 1oAf1p-0004w0-GD == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'rwb.me.uk'
2022-07-10 23:10:58 End queue run: pid=19695
2022-07-10 23:11:26 1oAf9C-00057u-P5 <= root@mini31 U=root P=local S=330
2022-07-10 23:11:26 1oAf9C-00057u-P5 == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'rwb.me.uk'
** 邮件投递失败:将消息返回给发件人**
...
[email protected]
host send.one.com [46.30.211.141]
SMTP error from remote mail server after pipelined end of data:
530 5.7.0 Authentication required
...
mini31 # mailq
12m 355 1oAf1p-0004w0-GD <[email protected]> (rwb)
[email protected]
4m 330 1oAf9C-00057u-P5 <root@mini31>
[email protected]
问题
到底发生了什么?为什么它不起作用?
One.com 似乎显示端口 465 和 SSL/TLS。我需要输入SSL/TLS以某种方式进入exim4
?我很确定他们需要发件人地址[电子邮件保护]——我需要在某处设置它吗?
我需要从中删除垃圾吗mail1q
?
答案1
不在。target:
passwd.client
使用satellite
而不是smarthost
因为不需要本地邮件——所有邮件都应该发送到真实地址。
改dc_other_hostnames
回mini31
和dc_readhost
。omething.com
不知道为什么;不清楚这些是做什么的。