使用STARTTLS – TLS的Postfix中继是必需的,但不是由主机提供

我需要通过exetrnal SMTP发送邮件,是使用STARTTLS,我的postconf -n是:

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost mynetworks = 0.0.0.0/0 newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES relayhost = xx.xx.xx.xx:2525 sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_tls_note_starttls_offer = yes smtp_tls_policy_maps = hash:/etc/postfix/tls_policy smtp_tls_security_level = may smtp_use_tls = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination unknown_local_recipient_reject_code = 550 

/等/后缀/ sasl_passwd

 xx.xx.xx.xx:2525 user:password 

/等/后缀/ tls_policy

 xx.xx.xx.xx:2525 encrypt 

我有这个错误:

 Jul 6 17:49:11 ip-10-1-4-140 postfix/smtp[25156]: 95F826276D: to=<[email protected]>, relay=xx.xx.xx.xx[xx.xx.xx.xx]:2525, delay=0.43, delays=0.23/0.01/0.19/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host xx.xx.xx.xx[xx.xx.xx.xx]) 

任何想法?

这是当你有smtp_use_tls = yes时可能发生的事情。

smtp_use_tls (默认: no

机会主义模式:当远程SMTP服务器宣布支持STARTTLS时使用TLS,否则以明文方式发送邮件。 请注意:即使未configuration,某些SMTP服务器也会提供STARTTLS。 对于Postfix <2.3,如果TLS握手失败,并且没有其他服务器可用,则递送递送并且邮件停留在队列中。 如果这是您的担忧,请改用smtp_tls_per_sitefunction。