Hi, I have some "purple haze" regarding SPF record.
I am using google MX, and have two servers which are sending mails besides using standard webmail for office usage.
One server is webserver and other is monitoring which is behind firewall located at our office and is monitoring several linux machines.
Here is SPF record that is giving headache
Quote:
v=spf1 a mx ip4:my_domain.com_ip ip4:my_office_ip include:_spf.google.com ip4:178.221.103.89 ~all
|
Problem I have is "strange":
- Using gmail web panel I can send mail to 99.99% domains, but to some I get message
Google aparently tries to connect to smtp.my_domain.com which resolves to my_office_ip and it cannot because there is no mailserver there (I have logged attemps and it is google IP), after that I get my email bounced back.
Now what is strange here is that I dont have any smtp.my_domain.com record, although I have wildcard record *.my_domain.com but that shouldnt be the problem.
I have solved the problem by removing my_office_ip form SPF record and now it looks like this
Quote:
v=spf1 a mx ip4:my_domain.com_ip include:_spf.google.com ip4:178.221.103.89 ~all
|
so if there is no my_office_ip google doesnt check it and mails pass, but I need my_office_ip as permitted sender also because of some reports.
What seems to be the problem here?
I forgot to add, gmail tries to connect to my office_ip just in case whem I am sending mails to those domains where I get mails bounced back, also those domains are using google MX.