Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Emails sent by mta from my server recognizes by spam filters as spam and there's message : Received-SPF: neutral ...

Actually, I am not spammer :)

So, I googled around these questions and found that I need setup two things

  1. SPF record
  2. DKIM

Now I am trying to correctly setup and tune on server SPF record.

So, I did already:

a. added spf record to domain hosted zone on amazon.

It's something like this :

"v=spf1 a mx ptr ip4:ip_adress_where_from_i_send_mail -all"

b. checked spf record through spf query lib and also through spf checker

spfquery --scope mfrom --id --ip ip_adress_where_from_i_send_mail

Result :

Received-SPF: pass

c. setup on server domainname, it was empty, maybe this is useless action, not sure

sudo domainname

but now i get in exim logs :

[4:11:23 PM] Sergey Glazyrin: 
2012-09-29 17:08:15 1THwmF-00086h-2Y <= U=www-data P=local S=847
2012-09-29 17:08:15 1THwmF-00086h-2Y [2a00:1450:4001:c02::1b] Network is unreachable
2012-09-29 17:08:16 1THwmF-00086h-2Y => R=dnslookup T=remote_smtp [] X=TLS1.0:RSA_ARCFOUR_SHA1:16 DN="C=US,ST=California,L=Mountain View,O=Google Inc,"
2012-09-29 17:08:16 1THwmF-00086h-2Y Completed

And I am not sure what to check/do now ?

share|improve this question

migrated from Sep 30 '12 at 2:56

This question came from our site for professional and enthusiast programmers.

I don't see what the problem is. It looks like everything's working. The logs say there's some outgoing email, it tries to connect to via IPv6, it fails so it tries to connect via and is successful, and the last line says it's finished.

share|improve this answer
but my emails still are in spam in google mailboxes. and there's message when I see original : Received SPF: neutral. And I think this is one of the reasons why my email in spam. It looks like exim don't want to check SPF domain record although I enabled needed flag CHECK_RCPT_SPF = yes btw, thx for your answer! this is a first answer to my question on stackoverflow :) – Sergey Glazyrin Sep 29 '12 at 18:53
@SergeyGlazyrin Received SPF: neutral is fine. If google blocked for a not-bad-not-good SPF response, 99% of all legit emails not from google would get blocked. SPF is checked by the receiving MTA, to check if the IP that the email is being received from is allowed to send for the envelope From address. Your Exim would be checking SPF for its incoming email. – Jon Lin Sep 29 '12 at 19:06

To add to Jon Lin's answer, you can get rid of the message. Disable ipv6 in your exim build or disable it at runtime by adding to the global options in your exim.conf:

disable_ipv6 = true
share|improve this answer

Your Answer


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