【问题标题】:How to avoid Spam in Outlook/Hotmail with Mailgun?如何使用 Mailgun 避免 Outlook/Hotmail 中的垃圾邮件?
【发布时间】:2017-09-02 00:32:33
【问题描述】:

我正在使用 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" );
}

【问题讨论】:

    标签: java email outlook mailgun


    【解决方案1】:

    您的问题不是您的代码,而是使用 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.)
    

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

    我怎么知道这个?我有完全相同的问题。我觉得唯一的选择就是私网IP了,但是我们的发送量还不够高,看来我们在MG上浪费了很多时间和精力!

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


    好的,对此进行更新以防万一它对任何人都有帮助。我们终于设法从 MailGun 传送到 Outlook,这是我们检查/更正的内容,希望对您有所帮助:

    • 发件人地址必须是 name@mg.yourdomain.com,而不是 name@yourdomain.com(现在似乎很明显,我们错过了这个
    • 添加 h:List-Unsubscribe 标头并使用 替换退订链接
    • 检查您的 SPF。添加 MailGun SPF 时,我们的提供商添加了一个 自动附加无效的 SPF 记录,显然你只能 每个子域有一个 SPF
    • 确保内容中的链接链接到您的域
    • 确保品牌相关并链接到您的域
    • 确保您有明确的退订消息。我们最初只是 一个文本链接说“取消订阅”,我们将其更改为“单击此处以 如果您不再需要我们的电子邮件,请取消订阅”

    使用https://testconnectivity.microsoft.com/?tabid=mha 检查标题绝对值得 这将为您在让 MG 切换一个声誉不佳的 IP 时提供优势。

    【讨论】:

    • 看起来只是添加取消订阅链接为我们做了:Mailgun Control Panel &gt; Domains &gt; (your domain) &gt; Tracking Settings &gt; Unsubscribes
    • 不确定事情是否发生了变化,或者它是否只是针对我的信息;但是,我在生成的报告中没有看到“垃圾邮件可信度”或“批量投诉级别”等术语。
    猜你喜欢
    • 2018-06-15
    • 1970-01-01
    • 1970-01-01
    • 2013-10-13
    • 1970-01-01
    • 1970-01-01
    • 2013-04-24
    • 2019-02-04
    • 2019-02-20
    相关资源
    最近更新 更多