Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I'm using a pre-configured virtual server for sending emails. Currently, I'm responsible for it running well. One recipient refused my email and I was pointed to a page explaining it. But to me it explains nothing at all:

abcde1234 rejected a message that claimed an envelope sender address of
abcde1234 received a message from that claimed an envelope sender address of
However, the domain has declared using SPF that it does not send mail through That is why the message was rejected.

In the above I replaced abcde1234 and for the real values.

So my server has declared... maybe it has, how do I find it out without knowing anything about the system? By running ps I've learned that there's qmail running. Why are there no config files in /etc? I've found them in /var/qmail/control, but there's nothing like the above there. Or is it?

share|improve this question
up vote 3 down vote accepted

Not an Ubuntu question, really, but...

SPF is the Sender Policy Framework. Using DNS, an "SPF record" (a TXT record) declares which SMTP servers are allowed to send mail from your domain. Therefore, you must modify the DNS records for to include an SPF record for the SMTP server, "pre-configured virtual server ."

>set q=any

The result:
    origin =
    mail addr = ivo\
    serial = 1262369762
    refresh = 10800
    retry = 3600
    expire = 604800
    minimum = 10800  nameserver =  nameserver =  text = "v=spf1 +a +mx -all"  mail exchanger = 10

You can see the SPF record, version one: 'v=spf1 [...]'

Also I have never seen a backslash in a domain name... see this in mail addr? Is that right? It does not look right to me.

share|improve this answer
Thanks... I've learned a lot. Concerning the email... there's a backslash and no at-sign, but who needs it except for spammers? There are multiple users sending emails from the server, so it makes no sense anyway. The server which refused the email points me to a page advicing me to enter some french server (like a: in my above example) there, which I've never ever heart about. Did you mean I should do something like "spf1 +a +mx -all"? – maaartinus Dec 14 '11 at 23:10
Oh! I see on the backslash. Duh! And thanks! And yes on specifying the mail server(s) in the SPF record. – user8290 Dec 14 '11 at 23:43
@maaartinus So do you accept this one? – user8290 Dec 16 '11 at 22:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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