如何使用Mailgun避免Outlook/Hotmail中的垃圾邮件?

Cam*_*boy 12 java email outlook mailgun

我正在使用Mailgun发送交易电子邮件(活动门票),所有电子邮件都发送到Outlook/Hotmail垃圾邮件,我想避免这种情况.我添加了SPF和DKIM记录,没有任何作用.我该怎么做才能避免垃圾邮件过滤器(实际上,我不会发送垃圾邮件.用户在注册活动时会触发交易电子邮件)

Client client = Client.create ();
client.addFilter ( new HTTPBasicAuthFilter ( "api", "MI_API_KEY" ) );
WebResource webResource = client
        .resource ( "MAILGUN_URL" );

MultivaluedMapImpl formData = new MultivaluedMapImpl();

formData.add ( "from", "hola@peewah.co" );
formData.add ( "to", "csacanam@outlook.com" );
formData.add ( "subject", "Camilo, welcome to the event" );
formData.add ( "html", "<h1>Camilo thank you for your registration in the event</h1>") );
formData.add ( "text", "Camilo thank you for your registration in the event" );

ClientResponse clientResponse = webResource.type ( MediaType.APPLICATION_FORM_URLENCODED )
        .post ( ClientResponse.class, formData );

int status = clientResponse.getStatus ();

if ( status >= 400 )
{
    throw new BadRequestException ( "Your message couldn't be sent" );
}
Run Code Online (Sandbox Code Playgroud)

InT*_*eep 18

您的问题不是您的代码,而是使用MailGun的问题.如果您使用以下网站检查电子邮件标头:

https://testconnectivity.microsoft.com/?tabid=mha

您将看到类似于以下内容的内容:

Spam Confidence Level   5 (Spam Confidence Interpretation - Spam)

Bulk Complaint Level    6 (Bulk Complaint Level - The message is from a bulk sender that generates a mixed number of complaints.)
Run Code Online (Sandbox Code Playgroud)

问题是MS从共享MG IP中查看来自批量发件人的任何内容,这会影响SPL并将其提升到5或更高(垃圾邮件).

我怎么知道这个?我有完全相同的问题.我认为唯一的选择是寻求私有IP,但我们的发送量不够高,所以看起来我们浪费了大量的时间和精力在MG上!

有人知道另一个避免Hotmail垃圾邮件的批量发件人吗?


好的,这是对它的更新,以防万一它可以帮助任何人.我们终于设法从MailGun交付到Outlook,这是我们检查/更正等,希望它有所帮助:

  • 从地址需要是name@mg.yourdomain.com,而不是name@yourdomain.com(现在看来很明显,我们错过了这个
  • 添加啊:List-Unsubscribe标头并使用<%unsubscribe_url%>替换unsubscribe链接
  • 检查你的SPF.添加MailGun SPF时,我们的提供商会自动添加额外的无效SPF记录,显然每个子域只能有一个SPF
  • 确保您的内容中的链接指向您的域
  • 确保品牌标识相关并链接到您的域
  • 确保您有明确的取消订阅消息.我们最初只有一个文本链接说"取消订阅",我们将其更改为"如果您不再需要我们的电子邮件,请点击此处取消订阅"

使用https://testconnectivity.microsoft.com/?tabid=mha检查标题肯定是值得的. 这将使您在使MG切换出声誉不佳的IP时具有杠杆作用.

  • 看起来只是添加取消订阅链接为我们做了:`Mailgun控制面板>域>(您的域)>跟踪设置>取消订阅 (3认同)