这全部假设您已将Sendgrid设置为接收domain.com的邮件。
我想我对电子邮件发生的事情感到有些困惑...
我有一个域domain.com
,我使用django和地址[email protected]
从sendgrid发送电子邮件。
现在,我还想使用相同的domain.com
电子邮件地址将邮件发送给某些用户,而这些电子邮件地址只是通过诸如gmail之类的提供者来别名的。
但是,我的理解是,一旦您设置了CNAME记录等,这实际上是incoming
邮件到我不需要的服务器。用户注册了此@domain.com
电子邮件,而我只希望他们通过sendgrid发送邮件后[domain.com
上的Django代码,以便将邮件从[email protected]
发送到别名为[email protected]
SETUP:
正在使用CloudFlare域名服务器的GoDaddy域,其中CNAME扁平化了domain.com
的根和www /顶点。现在,在sendgrid中,我设置了一个帐户/为Django提供了API密钥等,然后它为
不以@ domain.com结尾的电子邮件
发送了电子邮件。但是,所有以@ domain.com结尾的电子邮件都会出现I / O错误。我使用发送方身份验证通过sendgrid验证了域。这提供了以下其他CNAME值: `emXXX.domain.com`
`s1._domainkey.domain.com`
`s2._domainkey.domain.com`
所有人都指出了他们应该在CloudFlare DNS设置中代理的位置]。然后我在SENDGRID中设置链接品牌,而不是CloudFlare:
`mail.domain.com` points to `sendgrid.net`
在CloudFlare中,我的MX是:
`domain.com` pointing to `mail.domain.com`
CNAME of:
'mail.domain.com' pointing to 'sendgrid.net'
SPF和TXT的适当设置:
`v=spf1 a include:sendgrid.net ~all
我做错了什么?
[我认为我对电子邮件的处理方式有些困惑...我有一个域domain.com,我使用django从sendgrid发送电子邮件,地址为[email protected]。现在,我也想发送邮件到...
这全部假设您已将Sendgrid设置为接收domain.com的邮件。