I have a mail server, let's say mail.example.com The PTR records connect mail.example.com with my server's ips (ipv4,v6). The HELO/EHLO response is mail.example.com
Now I want to send letters like user@example.com. Let's say I set MX mail.example.com @ TXT v=spf1 mx ~all mail TXT v=spf1 a ~all
It's said I should have SPF's for subdomains to protect them from spoofing: www TXT v=spf1 -all
Let's say I don't want letters lile user@mail.example.com to be sent. But I can't have second record like: mail TXT v=spf1 -all And it would prevent HELO/EHLO validation.
Also I have CNAME's like autoconfig/autodiscover for mail. So they aren't protected too.
Is there way to allow HELO/EHLO validation but disallow sending emails from those subdomains?