0

I have an application which is supposed to email error codes or confirmation emails to our support email.

Using google apps From: Support@mydomain.com to: Support@mydomain.com

This software is located on each clients server (and the software does not support smtp authentication).

I'm having issues setting up the spf record to allow these emails to come through.

This is what I have so far:

"v=spf1 include:mydomain.com -all"

Any help would be appreciated.

Bradleyo
  • 13
  • 4

1 Answers1

1

You will probably have to setup the software to send as someone else, as you're software doesn't support authentication. You could setup an intermediary server that only accepts incoming connections from these servers, then forwards those e-mails into Google's servers using authenticated SMTP submission.

In your case, I would simply setup the software to send e-mail as $servername@mydomain.com.local and whitelist the domain "mydomain.com.local" so the e-mails are sure to avoid the junk folder.

Edit 1:
You could also add every server to your SPF record (assuming you have less than 10 servers; there's a 10 record lookup limit on SPF). This method is quite limiting and assumes you're going to update SPF every time a server is added, changes IPs, is removed, etc.

Edit 2:
After moar caffeine I realized your SPF Record is slightly wrong. You probably meant for it to be v=spf1 mx -all (this is the "correct" record for 90%+ domains and simply says that the mail servers that receive e-mail for the domain are the servers that send e-mail for the domain too). If you wanted to add the servers as in Edit #1, it might look something like v=spf1 mx a:server01.example.com -all or v=spf1 mx ip:1.2.3.4 -all.

Chris S
  • 77,337
  • 11
  • 120
  • 212