We're serving mail for a group of customers, and (only) one of them is seeing (some of) their mails rejected.
The situation is:
- Our server: ourdomain.com -> Gets forward and reverse DNS lookup correctly resolved
- Served domain: clientdomain.com
Dig over clientdomain.com:
clientdomain.com. 2742 IN MX 5 mail.clientdomain.com.
mail.clientdomain.com. 2742 IN A ip.of.ourdomain.com
Error to mail clients:
Recipient address rejected:
SPF-Result=ourdomain.com: 'SERVFAIL' error on DNS 'SPF' lookup of 'ourdomain.com' (in reply to RCPT TO command)
My main question is...
Would it be better something like
clientdomain.com. 2742 IN MX 5 mail.clientdomain.com
mail.clientdomain.com. 2742 IN CNAME ourserver.com
?
Secondary question... if above answer is NO, what can I do? add an SPF record in favour of ourserver.com? Why aren't other clients noticing this?
Thanks for reading
For simplicity you could use the below set up. Also I thoroughly recommend you set an SPF record for both domains. SPF aren't fool proof by any stretch of the imagination, but many people force the requirement of them, so it's worth setting up since it's just a DNS entry;
SERVFAIL
is not the same asNXDOMAIN
. The error message means that they were unable to even contact a name server at all when looking up the SPF records.It could be their name server or yours that was unable to respond.
If this is your mail server, you should find out what the SPF lookup was and why it failed.