【发布时间】:2012-04-05 05:04:16
【问题描述】:
我在配置 Postfix 以通过中继向 Sendgrid 传递电子邮件时遇到问题。
我收到以下错误:“不允许未经身份验证的发件人”
【问题讨论】:
-
我的问题解决了请在这里查看答案serverfault.com/a/987960/491178
标签: postfix-mta sendgrid sasl
我在配置 Postfix 以通过中继向 Sendgrid 传递电子邮件时遇到问题。
我收到以下错误:“不允许未经身份验证的发件人”
【问题讨论】:
标签: postfix-mta sendgrid sasl
看起来像是 Postfix 中的 SASL 配置向 Sendgrid 进行身份验证。我们能够使用以下内容:
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
mailbox_size_limit = 256000000
# Sendgrid Settings
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:SENDGRID_ACCOUNT_EMAIL_HERE:PASSWORD_HERE
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587
【讨论】: