2

I have a forwarding domain (forwardingdomain.org > actual-website.org) for which I have email forwarders set up. To reduce spamming/spoofing of my email forwarders, I would like to set up a correct SPF TXT record in the domain’s DNS.

I have an SPF TXT record set up in the DNS, however, recently I’ve received scam/ransomware/spam emails that appear to be coming from email forwarders of the forwarding domain. So, that SPF record may not be working. I’ve successfully set up SPF TXT record for domains that have a website associated with them (i.e., I can use a server IP in the SPF record). For this domain, however, since it’s forwarding, it’s not clear what IP I should use.

Here’s the current SPF record (I don’t remember adding this myself; it may have gotten generated by itself):

Type: TXT
Host: @
Value: v=spf1 a mx include:sendgrid.net ~all

Expected result: No more scam/spam/ransomware emails should be coming in that appear as if they were sent from my email forwarders.

Actual result: Scam/spam/ransomware emails are coming in, appearing to be sent from my email forwarders.

1 Answers1

1

Firstly I would recommend adding an include mechanism to pull in IPs from your forwarding domain.

Next, you have a ~all default mechanism, which means that forged messages will not be rejected, just marked as non-compliant (softfail). This is the correct setting if you are still testing your configuration or you are using DMARC.

With DMARC, the softfail can be turned into a full rejection, and this is generally considered better than using -all because it retains DMARC’s other semantics.

Synchro
  • 35,538
  • 15
  • 81
  • 104
  • Thank you for your response, @synchro. I’m really very unfamiliar with how SPF TXT records are supposed to work. How do I add an `include` mechanism to pull in IPs from my forwarding domain? I'm not using DMARC right now. Should I set that up? If so, how would I do that? – Nicolas Texier Apr 26 '19 at 01:53
  • Set up a list of permitted IPs in your forwarded domain’s SPF, the add an `include` for it in this one, like you’ve done for sendgrid. DMARC is too big a Q for comments, but there are plenty of docs and articles on it. It may involve setting up DKIM, which is probably more difficult. – Synchro Apr 26 '19 at 06:21