Saturday, July 7, 2018

Email redirected to Gmail contains failed SPF



I have an email account on my domain, e.g adrian@mysite.com
And on my dedicated server mysite.com I redirect messages from adrian@mysite.com to adrian@gmail.com




Now, if an external user like john@example.com sends me an email to adrian@mysite.com, it properly lands in Gmail but in spam and Gmail headers says that SPF failed, because example.com doesn't designate mysite.com as a permitted sender.



Is there something I can do about this? It doesn't sound right, mysite.com should not claim that is sending email for john@example.com, it should just be labeled somehow as a redirect (from adrian@mysite.com to adrian@gmail.com).


Answer



The behaviour you describe (passing envelope sender through unchanged) is traditionally how mail forwarding has behaved. After all if there's a problem with delivery that's where errors need to go.



To avoid SPF issues forwarding services can use SRS1 to construct a new (local) envelope sender address which routes to the original.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...