Skip to content

Instantly share code, notes, and snippets.

@asurak
Created March 17, 2016 13:23
Show Gist options
  • Save asurak/9e654aeb41a2edd67c08 to your computer and use it in GitHub Desktop.
Save asurak/9e654aeb41a2edd67c08 to your computer and use it in GitHub Desktop.
Delivered-To: adam+mctest@algolia.com
Received: by 10.107.32.205 with SMTP id g196csp438869iog;
Thu, 17 Mar 2016 06:12:42 -0700 (PDT)
X-Received: by 10.129.40.83 with SMTP id o80mr4407791ywo.45.1458220362553;
Thu, 17 Mar 2016 06:12:42 -0700 (PDT)
Return-Path: <bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com>
Received: from mail2.mcsignup.com (mail2.mcsignup.com. [205.201.139.32])
by mx.google.com with ESMTPS id i124si1952778yba.118.2016.03.17.06.12.42
for <adam+mctest@algolia.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 17 Mar 2016 06:12:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com designates 205.201.139.32 as permitted sender) client-ip=205.201.139.32;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com designates 205.201.139.32 as permitted sender) smtp.mailfrom=bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com;
dkim=pass header.i=@mail2.mcsignup.com;
dkim=pass header.i=@mandrillapp.com;
dmarc=fail (p=QUARANTINE dis=QUARANTINE) header.from=algolia.com
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=mail2.mcsignup.com;
h=From:Sender:Subject:To:Message-Id:Date:MIME-Version:Content-Type; i=hey@mail2.mcsignup.com;
bh=VkEmOb0hZgzyBkiMAeE8p5RGlaE=;
b=KVuP5dplzsO9vkZYr9VhUT/TWg2S3cYgQDr2aGge55GzKo2NDeUmS0n2goW43nWihQ/AQWS23la6
FZhyGRu0osctwc/1d92rGRNTfBrr9huA7PgJH686jFHunIK3+Dm4Uu06Hy2hAJZAPIgfJHMeyjsk
zlnljl1Goqq7sGfk8sg=
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=mail2.mcsignup.com;
b=NT6hcavOY9tUflLODoN+ioF65jTaNETSTq881djlTT4B170gnw8B8CUgxX1i1AlWcxhw9BwvG+JN
fDzF2A8QMgNyecOs9rdKFsP4TxNdyU7VSCfPt2QJs3q+pdJLlR1mSbEkLdQfY5xa2hzjOiWGUMkm
n9F5WSDcdskVZyNAUMM=;
Received: from pmta05.wdc01.mailchimp.com (127.0.0.1) by mail2.mcsignup.com id htamkk1jvjgu for <adam+mctest@algolia.com>; Thu, 17 Mar 2016 13:12:42 +0000 (envelope-from <bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com>)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com;
i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1458220360; h=From :
Sender : Subject : To : Message-Id : Date : MIME-Version : Content-Type
: From : Subject : Date : X-Mandrill-User : List-Unsubscribe;
bh=sOwr7b5EpdAYiJLHy+J48+B61sP0nBFkp2kXuBFRhG8=;
b=QR+uOUEMbmcIiJVIZY5QBgsGZOVmKmXmG64aLw/fnSjFcD0hl4+UB/IWhIK95Q3nrIx/i1
+f5iSXAQ/6Aal7+V59u4xw4rPs/1ZWjQFHor5q0zS8s12qdG3MNDHCB9wY8lPOHLojxCd9iZ
8R5a4nKrlPt+Hj9ldOZSYUURBUms8=
From: =?utf-8?Q?Friends=20from=20Algolia?= <hey@algolia.com>
Sender: =?utf-8?Q?Friends=20from=20Algolia?= <hey@mail2.mcsignup.com>
Subject: Algolia: Please Confirm Subscription
Return-Path: <bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com>
X-Accounttype: pd
X-Auto-Response-Suppress: OOF, AutoReply
Auto-Submitted: auto-generated
To: "=?utf-8?Q?adam+mctest=40algolia.com?=" <adam+mctest@algolia.com>
X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com
X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=9656357.9f13098b410d4344b9a0d22cd7507a89
X-Mandrill-User: md_9656357
Message-Id: <9656357.20160317131236.56eaad444a4671.46100027@mail2.mcsignup.com>
Date: Thu, 17 Mar 2016 13:12:36 +0000
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="_av-L1QbON2ShLEJYPJoNlTXZA"
--_av-L1QbON2ShLEJYPJoNlTXZA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
** Please Confirm Subscription
------------------------------------------------------------
Yes, subscribe me to this list. (http://algolia.us3.list-manage.com/subscribe/confirm?u=f7b8acc6ec97794a08484ca9b&id=285b80e148&e=41a9dcd4d8)
If you received this email by mistake, simply delete it. You won't be subscribed if you don't click the confirmation link above.
For questions about this list, please contact:
hey@algolia.com (mailto:hey@algolia.com)
--_av-L1QbON2ShLEJYPJoNlTXZA
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml" dir=3D"ltr">
<head>
<title>Algolia</title>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du=
tf-8">
<meta name=3D"viewport" content=3D"width=3Ddevice-width, initial-sc=
ale=3D1">
<meta name=3D"description" content=3D"Algolia Email Forms">
<meta name=3D"keywords" content=3D"Algolia">
<style type=3D"text/css">
=09=09body{
=09=09=09font:14px/20px 'Helvetica', Arial, sans-serif;
=09=09=09margin:0;
=09=09=09padding:75px 0 0 0;
=09=09=09text-align:center;
=09=09=09-webkit-text-size-adjust:none;
=09=09}
=09=09p{
=09=09=09padding:0 0 10px 0;
=09=09}
=09=09h1 img{
=09=09=09max-width:100%;
=09=09=09height:auto !important;
=09=09=09vertical-align:bottom;
=09=09}
=09=09h2{
=09=09=09font-size:22px;
=09=09=09line-height:28px;
=09=09=09margin:0 0 12px 0;
=09=09}
=09=09h3{
=09=09=09margin:0 0 12px 0;
=09=09}
=09=09.headerBar{
=09=09=09background:none;
=09=09=09padding:0;
=09=09=09border:none;
=09=09}
=09=09.wrapper{
=09=09=09width:600px;
=09=09=09margin:0 auto 10px auto;
=09=09=09text-align:left;
=09=09}
=09=09input.button{
=09=09=09border:none !important;
=09=09}
=09=09.button{
=09=09=09display:inline-block;
=09=09=09font-weight:500;
=09=09=09font-size:16px;
=09=09=09line-height:42px;
=09=09=09font-family:'Helvetica', Arial, sans-serif;
=09=09=09width:auto;
=09=09=09white-space:nowrap;
=09=09=09height:42px;
=09=09=09margin:12px 5px 12px 0;
=09=09=09padding:0 22px;
=09=09=09text-decoration:none;
=09=09=09text-align:center;
=09=09=09cursor:pointer;
=09=09=09border:0;
=09=09=09border-radius:3px;
=09=09=09vertical-align:top;
=09=09}
=09=09.button span{
=09=09=09display:inline;
=09=09=09font-family:'Helvetica', Arial, sans-serif;
=09=09=09text-decoration:none;
=09=09=09font-weight:500;
=09=09=09font-style:normal;
=09=09=09font-size:16px;
=09=09=09line-height:42px;
=09=09=09cursor:pointer;
=09=09=09border:none;
=09=09}
=09=09.rounded6{
=09=09=09border-radius:6px;
=09=09}
=09=09.poweredWrapper{
=09=09=09padding:20px 0;
=09=09=09width:560px;
=09=09=09margin:0 auto;
=09=09}
=09=09.poweredBy{
=09=09=09display:block;
=09=09}
=09=09span.or{
=09=09=09display:inline-block;
=09=09=09height:32px;
=09=09=09line-height:32px;
=09=09=09padding:0 5px;
=09=09=09margin:5px 5px 0 0;
=09=09}
=09=09.clear{
=09=09=09clear:both;
=09=09}
=09=09.profile-list{
=09=09=09display:block;
=09=09=09margin:15px 20px;
=09=09=09padding:0;
=09=09=09list-style:none;
=09=09=09border-top:1px solid #eee;
=09=09}
=09=09.profile-list li{
=09=09=09display:block;
=09=09=09margin:0;
=09=09=09padding:5px 0;
=09=09=09border-bottom:1px solid #eee;
=09=09}
=09=09html[dir=3Drtl] .wrapper,html[dir=3Drtl] .container,html[dir=3Drtl] l=
abel{
=09=09=09text-align:right !important;
=09=09}
=09=09html[dir=3Drtl] ul.interestgroup_field label{
=09=09=09padding:0;
=09=09}
=09=09html[dir=3Drtl] ul.interestgroup_field input{
=09=09=09margin-left:5px;
=09=09}
=09=09html[dir=3Drtl] .hidden-from-view{
=09=09=09right:-5000px;
=09=09=09left:auto;
=09=09}
=09=09body,#bodyTable{
=09=09=09background-color:#eeeeee;
=09=09}
=09=09h1{
=09=09=09font-size:28px;
=09=09=09line-height:110%;
=09=09=09margin-bottom:30px;
=09=09=09margin-top:0;
=09=09=09padding:0;
=09=09}
=09=09#templateContainer{
=09=09=09background-color:none;
=09=09}
=09=09#templateBody{
=09=09=09background-color:#ffffff;
=09=09}
=09=09.bodyContent{
=09=09=09line-height:150%;
=09=09=09font-family:Helvetica;
=09=09=09font-size:14px;
=09=09=09color:#333333;
=09=09=09padding:20px;
=09=09}
=09=09a:link,a:active,a:visited,a{
=09=09=09color:#336699;
=09=09}
=09=09.button:link,.button:active,.button:visited,.button,.button span{
=09=09=09background-color:#5d5d5d !important;
=09=09=09color:#ffffff !important;
=09=09}
=09=09.button:hover{
=09=09=09background-color:#444444 !important;
=09=09=09color:#ffffff !important;
=09=09}
=09=09label{
=09=09=09line-height:150%;
=09=09=09font-family:Helvetica;
=09=09=09font-size:16px;
=09=09=09color:#5d5d5d;
=09=09}
=09=09.field-group input,select,textarea,.dijitInputField{
=09=09=09font-family:Helvetica;
=09=09=09color:#5d5d5d !important;
=09=09}
=09=09.asterisk{
=09=09=09color:#cc6600;
=09=09=09font-size:20px;
=09=09}
=09=09label .asterisk{
=09=09=09visibility:hidden;
=09=09}
=09=09.indicates-required{
=09=09=09display:none;
=09=09}
=09=09.field-help{
=09=09=09color:#777;
=09=09}
=09=09.error,.errorText{
=09=09=09color:#e85c41;
=09=09=09font-weight:bold;
=09=09}
=09@media (max-width: 620px){
=09=09body{
=09=09=09width:100%;
=09=09=09-webkit-font-smoothing:antialiased;
=09=09=09padding:10px 0 0 0 !important;
=09=09=09min-width:300px !important;
=09=09}
}=09@media (max-width: 620px){
=09=09.wrapper,.poweredWrapper{
=09=09=09width:auto !important;
=09=09=09max-width:600px !important;
=09=09=09padding:0 10px;
=09=09}
}=09@media (max-width: 620px){
=09=09#templateContainer,#templateBody,#templateContainer table{
=09=09=09width:100% !important;
=09=09=09-moz-box-sizing:border-box;
=09=09=09-webkit-box-sizing:border-box;
=09=09=09box-sizing:border-box;
=09=09}
}=09@media (max-width: 620px){
=09=09.addressfield span{
=09=09=09width:auto;
=09=09=09float:none;
=09=09=09padding-right:0;
=09=09}
}=09@media (max-width: 620px){
=09=09.captcha{
=09=09=09width:auto;
=09=09=09float:none;
=09=09}
}</style></head>
<body leftmargin=3D"0" marginwidth=3D"0" topmargin=3D"0" marginheight=
=3D"0" offset=3D"0" style=3D"font: 14px/20px 'Helvetica', Arial, sans-serif=
;margin: 0;padding: 75px 0 0 0;text-align: center;-webkit-text-size-adjust:=
none;background-color: #eeeeee;">
=09<center>
=09<table border=3D"0" cellpadding=3D"20" cellspacing=3D"0" height=
=3D"100%" width=3D"100%" id=3D"bodyTable" style=3D"background-color: #eeeee=
e;">
=09<tr>
=09<td align=3D"center" valign=3D"top">
=09<!-- // BEGIN CONTAINER -->
<table border=3D"0" cellpadding=3D"0" cellspacing=
=3D"0" width=3D"600" id=3D"templateContainer" class=3D"rounded6" style=3D"b=
order-radius: 6px;background-color: none;">
=09<tr>
=09<td align=3D"center" valign=3D"top">
=09<!-- // BEGIN HEADER -->
<table border=3D"0" cellpadding=3D"0" c=
ellspacing=3D"0" width=3D"600">
=09<tr>
=09<td>
=09<h1 style=3D"font-size: 28px=
;line-height: 110%;margin-bottom: 30px;margin-top: 0;padding: 0;">Algolia</=
h1>
</td>
</tr>
</table>
=09<!-- END HEADER \\ -->
</td>
</tr>
=09<tr>
=09<td align=3D"center" valign=3D"top">
=09<!-- // BEGIN BODY -->
=09<table border=3D"0" cellpadding=3D"0" ce=
llspacing=3D"0" width=3D"600" id=3D"templateBody" class=3D"rounded6" style=
=3D"border-radius: 6px;background-color: #ffffff;">
=09<tr>
<td align=3D"left" valign=3D"to=
p" class=3D"bodyContent" style=3D"line-height: 150%;font-family: Helvetica;=
font-size: 14px;color: #333333;padding: 20px;">
<h2 style=3D"font-size: 22p=
x;line-height: 28px;margin: 0 0 12px 0;">Please Confirm Subscription
</h2>
<a class=3D"button" href=3D"http://algolia.us3.list-manage.com/subscribe/co=
nfirm?u=3Df7b8acc6ec97794a08484ca9b&id=3D285b80e148&e=3D41a9dcd4d8" style=
=3D"color: #ffffff !important;display: inline-block;font-weight: 500;font-s=
ize: 16px;line-height: 42px;font-family: 'Helvetica', Arial, sans-serif;wid=
th: auto;white-space: nowrap;height: 42px;margin: 12px 5px 12px 0;padding: =
0 22px;text-decoration: none;text-align: center;cursor: pointer;border: 0;b=
order-radius: 3px;vertical-align: top;background-color: #5d5d5d !important;=
"><span style=3D"display: inline;font-family: 'Helvetica', Arial, sans-seri=
f;text-decoration: none;font-weight: 500;font-style: normal;font-size: 16px=
;line-height: 42px;cursor: pointer;border: none;background-color: #5d5d5d !=
important;color: #ffffff !important;">Yes, subscribe me to this list.</span=
></a>
<br>
<div><p style=3D"padding: 0 0 10px 0;">If you received this email by mistak=
e, simply delete it. You won't be subscribed if you don't click the confirm=
ation link above.</p>
<p style=3D"padding: 0 0 10px 0;">For questions about this list, please con=
tact:
<br><a href=3D"mailto:hey@algolia.com" style=3D"color: #336699;">hey@algoli=
a.com</a></p>
</div>
<span itemscope itemtype=3D"http://schema.org/EmailMessage">
<span itemprop=3D"description" content=3D"We need to confirm your email a=
ddress."></span>
<span itemprop=3D"action" itemscope itemtype=3D"http://schema.org/Confirm=
Action">
<meta itemprop=3D"name" content=3D"Confirm Subscription">
<span itemprop=3D"handler" itemscope itemtype=3D"http://schema.org/Http=
ActionHandler">
<meta itemprop=3D"url" content=3D"https://algolia.us3.list-manage.com=
/subscribe/smartmail-confirm?u=3Df7b8acc6ec97794a08484ca9b&id=3D285b80e148&=
e=3D41a9dcd4d8&inline=3Dtrue">
<link itemprop=3D"method" href=3D"http://schema.org/HttpRequestMethod=
/POST">
</span>
</span>
</span>
</td>
</tr>
</table>
<!-- END BODY \\ -->
</td>
</tr>
=09<tr>
=09<td align=3D"center" valign=3D"top">
=09<!-- // BEGIN FOOTER -->
=09<table border=3D"0" cellpadding=3D"20" c=
ellspacing=3D"0" width=3D"600">
=09<tr>
=09<td align=3D"center" valign=3D"t=
op">
<div>
<span class=3D"poweredB=
y" style=3D"display: block;"><a href=3D"http://www.mailchimp.com/monkey-rew=
ards/?utm_source=3Dfreemium_newsletter&utm_medium=3Demail&utm_campaign=3Dmo=
nkey_rewards&aid=3Df7b8acc6ec97794a08484ca9b&afl=3D1" style=3D"color: #3366=
99;"><img src=3D"http://cdn-images.mailchimp.com/monkey_rewards/MC_MonkeyRe=
ward_15.png" border=3D"0" alt=3D"Email Marketing Powered by MailChimp" titl=
e=3D"MailChimp Email Marketing" width=3D"139" height=3D"54"></a></span>
</div>
</td>
</tr>
</table>
<!-- END FOOTER \\ -->
</td>
</tr>
</table>
<!-- END CONTAINER \\ -->
</td>
</tr>
</table>
</center>
</body>
</html>
--_av-L1QbON2ShLEJYPJoNlTXZA--
@vbrozik
Copy link

vbrozik commented Sep 24, 2018

The emails are failing the DMARC alignment check:
During this check the domain used in the From: header (algolia.com) is compared to domains in successful DKIM (mail2.mcsignup.com and mandrillapp.com) and SPF (mandrillapp.com). They do not match so DMARC fails. You probably want to use the domain mandrillapp.com in the From: address.

@winedog
Copy link

winedog commented May 15, 2019

Anyone ever come up with a solution to this issue? I've just started implementing DMARC and I'm getting SPF alignment fails for mcsignup.com as well.

@skaluv
Copy link

skaluv commented Nov 22, 2019

I am dealing with this issue right now and have come up with the following, the way Mailchimp does return path is not compatible with DMARC and will fail every time. The provided DKIM and SPF are valid but that is not the domain DMARC checks against.

I am investigating why this customers open rates have gotten so low and nothing has changed on DNS so I am left wondering if this is related or not. Regardless I see this as a problem.

I have other customers that use Mailgun and their DMARC comes back clean so I am probably going to test there with this client.

@rhuijts
Copy link

rhuijts commented Apr 15, 2020

MailChimp uses their own domain in the MAIL FROM address on the SMTP envelope (a.k.a. return-path) to handle bounces. So any client/server doing an SPF check will check their SPF DNS record (not yours) so the raw SPF check passes. But it will not be the same domain as your From header and therefore it will not pass the SPF alignment check that DMARC does. For DMARC to pass either your SPF domain or the DKIM domain must align with the From header. So if you have properly set-up DKIM, that will align and DMARC passes.

@ashvaan-sheik
Copy link

Hi All,

We had this issue, I was able to fixed it today. All you need to make sure is you have SPF, DKIM mailchimp updated in your DNS records and also domains are Authenticated in Mailchimp. Earlier our domains were just verified not authenticated, once we authenticated, emails started passing DMARC as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment