如何通过我的服务器设置电子邮件发送身份验证?
我希望我的服务器可以验证服务器中的所有传出电子邮件。在域提供商,我记录了SPF记录,并且身份验证效果很好。但是,我还希望我的服务器甚至从Gmail电子邮件地址从出站邮件进行身份验证。我与phpmailer一起发送了邮件,然后尝试了一下,但是当我阅读邮件时,Gmail提示我可能没有发件人发送电子邮件。电子邮件标头未加密。对于其他电子邮件提供商,我看到他们自己的服务器即使使用Gmail电子邮件地址也可以进行身份验证。我需要做什么才能使我的服务器从我的服务器中验证邮件(包括使用Gmail电子邮件地址)。我想建立一个新闻通讯发送服务。当然,我不想从事欺诈和不道德的活动。客户先前激活该地址后只能使用特定的电子邮件地址。因此,电子邮件只能由电子邮件地址的合法所有者使用。我只是不知道如何在发送这些电子邮件
图片1时如何使我的服务器进行身份验证1显示,使用Gmail地址(服务器未经服务,Google将在邮件中发出警告)图2显示了Gmail地址也是由服务提供商的服务器(而非Gmail)使用和认证,因此Gmail接受了它,当然,标头指示哪个服务器是身份验证器。我还希望从自己的服务器发送的邮件通过自己的服务器进行身份验证。
I want my server to authenticate all outgoing emails from my server. At the domain provider, I record the SPF record and the authentication works perfectly. However, I also want my server to authenticate outbound mail from even a gmail email address. I sent the mail with PHPMailer and gave it a try, but when I read the mail, gmail prompts me that the email may not have been sent by the sender. The email header is not encrypted. For other email providers, I see that their own server authenticates even if they use gmail email addresses. What do I need to do to have my server authenticate outgoing mail from my server (including using a gmail email address). I want to build a newsletter sending service. Of course, I do not want to commit fraud and unethical activities. Customers can only use specific email addresses after they have previously activated it. So the email will only be used by the rightful owner of the email address. I just don’t know how to get my server to authenticate when sending these emails
Picture 1 shows that using the gmail address (not authenticated by the server, google will issue a warning in the mail) Picture 2 shows that a gmail address was also used and authenticated by a service provider's server (not gmail), so gmail accepted it and of course the header indicates which server was the authenticator. I also want mail sent from my own server to be authenticated by my own server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能。如果您想从Gmail地址发送,则必须通过Gmail服务器发送必须发送。 Gmail的SPF设置不允许其他电子邮件源。我希望看起来像从Gmail实际发送的其他地方发送的那个,但它仍然可以设置一个指向自己的SMTP信封发件人,并且也可以从该地址进行DKIM签名。
You can't. If you want to send from a gmail address, you must send through gmail servers. Gmail's SPF settings do not allow other email sources. I would expect that the one that looks like it was sending from somewhere else actually sent through gmail, but it can still set an SMTP envelope sender that points to itself, and can also do DKIM signing from that address.