我是前端开发人员,并且是第一次pipe理我自己的linux服务器。 我正在运行Ubuntu 12.04 LTS,并有一个SSL证书。 使用Google应用程序邮件作为我的邮件服务器,使用SendGrid从我的应用程序发送电子邮件。
要将SendGrid集成到后缀中,SendGrid文档声明将以下代码添加到/etc/postfix/main.cf并重新启动服务器:
smtp_sasl_auth_enable = yes smtp_sasl_password_maps = static:yourSendGridUsername:yourSendGridPassword smtp_sasl_security_options = noanonymous smtp_tls_security_level = may start_tls = yes header_size_limit = 4096000 relayhost = [smtp.sendgrid.net]:587
我做了这些更新。 一旦服务器重新启动,我收到下面的错误消息。 每个消息重复8-10次左右:
* Starting Postfix Mail Transport Agent postfix postconf: warning: /etc/postfix/main.cf: unused parameter: start_tls=yes postconf: warning: /etc/postfix/main.cf: unused parameter: start_tls=yes /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: start_tls=yes /usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: start_tls=yes
任何想法是什么导致这些消息,以及如何解决它们?
虽然你的问题不是它的重复,但似乎现有的问题RE:SendGrid设置包含解决scheme。 请参阅@ adaptr的评论。
configuration其他SMTP提供商的后缀
在链接的问题中发现, start_tls = yes是无效的。 用这个代替:
smtp_tls_security_level = encrypt