So I have a small Linux webserver, it is running the Direct Admin control panel and everything is working fine. For each domain, SPF and DKIM records are present in the DNS and mail is (as far as I know) never flagged as spam, perfect.
Now I have a friend who wants to spoof his emails from his website. It is a small 'share this page' widget where people enter a to
and a from
email and they get sent.
The problem I am facing is that the mails in Gmail are delivered with the text someuser@gmail.com via my.server.fqdn
. The fact that Gmail shows the via
is not a problem per sé, I understand this is to prevent spoofing and unfortunately this is apparently needed to keep the internet 'save'. But can I change the server listed in the via
to my friends domain name?
Can I change Gmail's someuser@gmail.com via my.server.fqdn
to someuser@gmail.com via domain-on-same-server.com
? (I'd like to change this for this domain only, and obviously not alter my exim configuration to change the server names etc.)
TLDR;
In below screenshot from Google support I want to rewrite example.com to be mydomain.com