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
遇到了同样的问题,在CSDN看到了,希望阿里云团队能够给出正确、标准的答案~请查看
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。