Super User is a question and answer site for computer enthusiasts and power users. 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

Where I can create/insert the SPF rules to allow a external server to authenticate and send e-mails using the domain name of my server running Ubuntu?

I need to insert this rule:

v=spf1 ip4:  ip4: a mx ~all

Thanks :)

share|improve this question
serverfault would have been a better location for this question. – Zoredache Mar 26 '10 at 20:23
up vote 1 down vote accepted

SPF is a method of identifying the server(s) approved for sending email for a domain. You publish it as a TXT record in the DNS of the domain in question (and note that there's a mailing list for help, which the record you supply needs ;>).

As Teddy said, SPF isn't perfect and it has problems if you implement it without knowing what you're doing. That doesn't (in my book) make it stupid, it just means that it's easy to shoot yourself in the foot if you rush at it. Personally I've been using, and checking, SPF for a couple of years now with no problems.

It also only addresses half the problem, you'll probably want to look at DKIM (not Domain-Keys) too.

share|improve this answer
Sorry, but SPF is stupid. This is because it doesn't solve anything, but only pretends to do so, at the cost of breaking a lot of useful things. See the links in my answer for details. – Teddy Mar 31 '10 at 10:55

It is my understanding that SPF is inserted into a TXT (or SPF) record in the DNS zone, and not in a setting in the mail server.

(Note: SPF is stupid and I seriously discourage its use.)

share|improve this answer
It can't be anymore stupid than inserting a link to a page full of ads with no technical content (…). – jww Oct 12 '13 at 1:27
@noloader Link moved; fixed. – Teddy Oct 26 '13 at 12:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .