main.cf配置
692 smtpd_use_tls = yes
693 smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt
694 smtpd_tls_key_file = /etc/pki/tls/certs/server.key
695 smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
696 smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
697 smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3
698 smtpd_tls_protocols=!SSLv2,!SSLv3
699 smtpd_tls_mandatory_ciphers = medium
700 tls_medium_cipherlist = AES128+EECDH:AES128+EDH
701 smtpd_tls_loglevel = 2
702 smtpd_tls_auth_only = yes
703 smtp_tls_security_level = may
master.cf配置
26 smtps inet n - n - - smtpd
27 -o syslog_name=postfix/smtps
28 -o smtpd_tls_wrappermode=yes
运行日志
Apr 29 10:44:16 ECS1 postfix/qmgr[15543]: 44BE1208C4: from=gxyy@gxyy96.cn, size=4890, nrcpt=1 (queue active)
Apr 29 10:44:22 ECS1 dovecot[15499]: imap-login: Disconnected (no auth attempts in 3 secs): user=<>, rip=196.52.43.131, lip=172.26.168.186, TLS handshaking: Disco
Apr 29 10:44:46 ECS1 postfix/smtp[16824]: connect to mx3.qq.com[58.251.110.111]:25: Connection timed out
Apr 29 10:45:17 ECS1 postfix/smtp[16824]: connect to mx2.qq.com[157.255.173.201]:25: Connection timed out
Apr 29 10:45:47 ECS1 postfix/smtp[16824]: connect to mx1.qq.com[113.96.208.206]:25: Connection timed out
Apr 29 10:45:47 ECS1 postfix/smtp[16824]: 44BE1208C4: to=1146205681@qq.com, relay=none, delay=3071, delays=2981/0.02/90/0, dsn=4.4.1, status=deferred (connect t