Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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

Using google apps From: to:

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 -all"

Any help would be appreciated.

share|improve this question

marked as duplicate by MadHatter, Dave M, Rex, Jacob, Falcon Momot Jul 10 '13 at 4:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

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 $ and whitelist the domain "" 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 -all or v=spf1 mx ip: -all.

share|improve this answer
So basically I would not be able to send emails through google, even with spf, without authenticating on the servers? – Bradleyo Jul 9 '13 at 14:48
See edit for additional option – Chris S Jul 9 '13 at 15:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.