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

I config smtp server with postfix , and Debian 6.

I set 1 ip from 4 Ips of server for smtp server

mail.mydomain.com xxx.yyy.zzz.hhh

but when I send mail with smtp server , Destination server give back to me another ip of server.

Received-SPF: fail (google.com: domain of root@mail.mydomain.com does not designate xxx.yyy.zzz.jjj as permitted sender) client-ip=xxx.yyy.zzz.jjj; Authentication-Results: mx.google.com;

spf=hardfail (google.com: domain of root@mail.mydomain.com does not designate xxx.yyy.zzz.jjj as permitted sender) smtp.mail=root@mail.mydomain.com

In my Bind configuration and /etc/hosts config this subdomain passed to correct IP . for this IP changed my SPF check give me failed .

what happend when i send mail with smtp server ?

share|improve this question

You should add the four IPs to DNS record like

v=spf1 ip4:x.x.x.x ip4:x.x.x.x ip4:x.x.x.x ip4:x.x.x.x  -all    
share|improve this answer

You must log in to answer this question.

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