I have the following DNS configuration:
$ dig +noall +answer -t txt example.com
example.com. 626 IN TXT "v=spf1 +a +mx include:sendgrid.net include:_spf.google.com -all"
$ dig +noall +answer -t txt google._domainkey.example.com
google._domainkey.example.com. 600 IN TXT "v=DKIM1; k=rsa; ......"
$ dig +noall +answer -t txt _dmarc.example.com
_dmarc.example.com. 300 IN TXT "v=DMARC1; p=none; pct=100; rua=mailto:report@email; aspf=s; adkim=r;"
$ dig +noall +answer -t txt em1234.example.com
em1234.example.com. 358 IN CNAME 1234.xyz.sendgrid.net.
1234.xyz.sendgrid.net. 358 IN TXT "v=spf1 ip4:149.72.253.162 -all"
When I send emails from example.com
everything is fine and DMARC are passing. Same goes for emails sent via SendGrid and the subdomain em1234.example.com
. However the reporting tool to which the reports are sent is claiming 100% SPF alignment failure which is odd, because Gmail and email headers state quite the opposite:
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass [email protected] header.s=s1 header.b=Rv669YsQ;
spf=pass (google.com: domain of bounces+4746099-3d38-recipient_email=recipient.com@em1234.example.com designates 149.72.253.162 as permitted sender) smtp.mailfrom="bounces+4746099-3d38-recipient_email=recipient.com@em1234.example.com";
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=example.com
So the question I'm having here is how to SPF align the subdomain that's used by SendGrid? Is the only way to fix this setting aspf
to relaxed
or is there another way?