后缀忽略relayhost

我已经在我的postfix服务器上设置了一个sendgrid relayhost主机。
当通过sendmail发送邮件时,这是完美的:

 May 24 16:21:13 ip-*-*-*-* postfix/smtp[17742]: 542D01CDF: to=<[email protected]>, relay=smtp.sendgrid.net[5.153.47.203]:587, delay=2, delays=0.04/0.02/1.5/0.47, dsn=2.0.0, status=sent (250 Delivery in progress) 

但是当我尝试通过端口587发送和authentication:

 May 24 16:34:03 ip-*-*-*-* postfix/error[18081]: 46A711CDE: to=<[email protected]>, relay=none, delay=0.61, delays=0.59/0/0/0.01, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 127.0.0.1[127.0.0.1]) 

相关configuration:

 postconf -n | grep relayhost relayhost = [smtp.sendgrid.net]:587 # master.cf port 587 submission inet n - - - - smtpd -o syslog_name=postfix/submission # -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING # http://flurdy.com/docs/postfix/#config-secure-crypt # if you do not want to restrict it encryption only, comment out next line -o smtpd_tls_auth_only=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination,reject -o smtpd_sasl_security_options=noanonymous,noplaintext -o smtpd_sasl_tls_security_options=noanonymous 

我没有transport文件覆盖任何东西,但发送到相同的“收件人”产生一个不同的relayhost取决于我使用sendmail或通过端口587 SASLauthentication。
一切正常,而连接到端口587,后缀的回复与“确定,发送”,但它只是使用不同的继电器。

我怎样才能确保每个邮件都不需要在本地交付?

本地主机上的通信是针对amavis,而不是一个中继。
这与另一个问题是相同的问题 ,解决scheme是相同的,添加以下连接到/从amavis连接

 amavis unix - - - - 2 smtp -o smtp_tls_security_level=none 127.0.0.1:10025 inet n - - - - smtpd -o smtp_tls_security_level=none