Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have strange problem with my SPF records and gmail MX. I have this SPF setup

v=spf1 a mx ip4:IP1 ip4:IP2 include:_spf.google.com ~all

In this case, if I send an email to two specific domains, also using gmail MX, I got emails bounced back. With message:

Message will be retried for 1 more day(s)

Technical details of temporary failure: The recipient server did not accept our requests to connect. Learn more at http://support.google.com/mail/bin/answer.py?answer=7720 [(0) smtp.my_company.com. [IP2]:587: Connection refused]

This happens only if I send mail to two specific domains, like "theshelf.com" and "icloud.com". I have made firewall rule to log connections to 587 port and indeed google tries to connect every time I try to send email to these domains when IP2 is in SPF. Remedy for this is to remove IP2 from SPF record. But what use of remedy if I dont understand why it is happening :). Thing is I may not need IP2 in SPF at all, but that is not issue, issue is why google tries to connect to IPs that are in SPF record, and just for some domains.

Any clues

share|improve this question
    
Could you explain exactly what you mean by "Google tries to connect"? What are the source and destination of the packets you detected? –  Ladadadada Dec 30 '13 at 15:38
    
googles IP address is connecting on port 587 on domain that even doesnt exist (but I have wildcard on DNS). As it is written in quote. (0) smtp.my_company.com. [IP2]:587: Connection refused –  titus Dec 31 '13 at 10:42

1 Answer 1

It was an issue for me recently.

A good starting point is http://intodns.com/ to check if your configuration is ok.

My problem was, I have forgotten to change the name servers on parent.

share|improve this answer

Your Answer

 
discard

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.