修复Sendgrid的Postfix身份验证? [英] Fix Postfix Authentication for Sendgrid?

查看:123
本文介绍了修复Sendgrid的Postfix身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法配置Postfix通过中继将电子邮件发送到Sendgrid.

I'm having trouble configuring Postfix to deliver e-mail via relay to Sendgrid.

我收到以下错误:不允许未经身份验证的发件人"

I get the following error: "Unauthenticated senders not allowed"

推荐答案

它看起来像是Postfix中的SASL配置,用于对Sendgrid进行身份验证.我们能够使用以下内容:

Looks like it was the SASL config within Postfix authenticating to Sendgrid. We were able to use the following:

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

这篇关于修复Sendgrid的Postfix身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆