避免Gmail的“此消息可能未被发送”使用发件人标题 [英] Avoid Gmail's "This message may not have been sent by" using sender header

查看:110
本文介绍了避免Gmail的“此消息可能未被发送”使用发件人标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个朋友类型系统的电子邮件,我需要我们的邮件服务器将网站用户的电子邮件发送给他们的朋友,即从fred@gmail.com到tony@gmail.com。

I'm creating an email a friend type system where I need our mail server to send emails from the user of the site to their friend, i.e. from fred@gmail.com, to tony@gmail.com.

如果在这个例子中,用户是Gmail的一部分,那么朋友将收到一封电子邮件,并附上警告:该邮件可能未被发送:fred @ gmail.com。

If, as is the case in this example, the user's are both part of Gmail the friend would receive an email with the warning "This message may not have been sent by: fred@gmail.com.

我以为,然后在我们的电子邮件中添加一个发件人标头(例如us@company.com),这应该向Gmail说明我们是发件人,并有效地公开地欺骗发件人在他们的请求。这是真的,你可以绕过Gmail的警告使用'发件人'头?

I thought that by then adding a 'sender' header with our email (e.g. us@company.com) this should indicate to Gmail that we are the sender and are effectively openly spoofing the sender at their request. Is this true, can you get around Gmail's warning using the 'sender' header?

我意识到这是类似于以下问题,但我更感兴趣的是发送方头文件是否应该有效果:

I realise this is similar to the following question but I'm more interested in whether the sender header should have an effect: Email sent from web server causes gmail to treat as phishing. How to get rid of this?

更多信息:
我使用netmailbot从我们的邮件服务器发送电子邮件,使用'-customheader ''与'sender'和'x-sender'的参数例如'-customheader发件人:us@company.com x-sender:us@company.com'

More info: I'm using netmailbot to send emails from our mail server using the '-customheader' parameter with 'sender' and 'x-sender' e.g. '-customheader sender:us@company.com x-sender:us@company.com'

推荐答案

如果gmail不不幸的是,你无法压制这个警告。

Google可以控制这两个帐号,因此知道这个邮件不是通过fred使用他们的基础设施发送的。

使用了一些第三方基础架构(您的),这就是所有这些警告。
您可以将任意电子邮件地址设置为from,如果这是合法使用(如果fred真的写了该消息),Google不知道。任何人都可以写这个消息。通常,fred会使用Google的基础设施发送邮件,然后他们会知道他的身份。

If gmail doesn't fail miserably, you have no way to suppress this warning.
Google is in control of both accounts and therefore knows, that this mail wasn't send by fred using their infrastructure.
There was used some third party infrastructure (yours) and this is all this warning is about. You can set an arbitrary email address as "from" and Google has no knowledge if this is legitimate use (if fred really wrote the message). Anyone could have written that message. Normally fred would use Googles infrastructure to send mails and then they would know its him.

更清洁的解决方案是将您的电子邮件地址(noreply@company.com )从头(这是诚实的),并将fred@gmail.com设置为回复标题(所以他得到答复)。

A cleaner solution would be to put your email address ("noreply@company.com") as from header (that would be honest) and set fred@gmail.com as reply-to header (so he gets the replies).

这篇关于避免Gmail的“此消息可能未被发送”使用发件人标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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