From /var/log/exim4/main.log
:
2021-05-19 23:38:51 1ljOB8-0001Ha-A0 == ?@outlook.com
R=smarthost T=remote_smtp_smarthost defer (-37)
H=HKG-efz.ms-acdc.office.com [52.98.37.34]:
TLS session: (gnutls_handshake): An unexpected TLS packet was received.
From /etc/default/exim4
:
# /etc/default/exim4
EX4DEF_VERSION=''
# 'combined' - one daemon running queue and listening on SMTP port
# 'no' - no daemon running the queue
# 'separate' - two separate daemons
# 'ppp' - only run queue with /etc/ppp/ip-up.d/exim4.
# 'nodaemon' - no daemon is started at all.
# 'queueonly' - only a queue running daemon is started, no SMTP listener.
# setting this to 'no' will also disable queueruns from /etc/ppp/ip-up.d/exim4
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# Options for the SMTP listener daemon. By default, it is listening on
# port 25 only. To listen on more ports, it is recommended to use
# -oX 25:587:10025 -oP /run/exim4/exim.pid
SMTPLISTENEROPTIONS='-oX 465:25 -oP /run/exim4/exim.pid'
From etc/exim4/exim4.conf.localmacros
:
MAIN_TLS_ENABLE = 1
REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS = *
TLS_ON_CONNECT_PORTS = 465
REQUIRE_PROTOCOL = smtps
对于文件/etc/exim4/exim4.conf.template
,我在
ifdef REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS ... .endif
之后增加了
.ifdef REQUIRE_PROTOCO
protocol = REQUIRE_PROTOCOL
.endif
.ifdef MAIN_TLS_ENABLE
之后增加了
.ifdef TLS_ON_CONNECT_PORTS
tls_on_connect_ports = TLS_ON_CONNECT_PORTS
.endif
这是一个配置问题吗?