I'm tryng to use external mail service offered by Gmail setting how MX the 5 mail server of Gmail.
i have a problem making this....
I have setting on my domain the option "external mail server" on the host www.mysite.com
and host mysite.com
When setting up the host "mail.mysite.com" in dns manager i have added IP address of my machine, and have hadded 5 mail server of Gmail in the MX section of DNS manager.
Quering host mail.mysite.com:
Getting MX record for mail.mysite.com (from local DNS server, may be cached)... Got it!
Host Preference IP(s) [Country]
alt1.aspmx.l.google.com. 10 126.96.36.199 [US]
alt2.aspmx.l.google.com. 20 188.8.131.52 [US]184.108.40.206 [US]
This test see correctly the MX address of Gmail server....
when send an email to firstname.lastname@example.org
form email address hosted on the same server, it return this error postfix message:
The Postfix program
<email@example.com>: mail for mysite.com loops back to
Postfix tryng to send this mail at host mail.mysite.com with my ip...
But host mail.mysite.com have different external Gmail mail server.
I can not add to host mail.mysite.com an IP...because Gmail mail server not offer a static ip to associate to my host mail.mysite.com
He is obvious that host mail.mysite.com try to send mail at ip address associated to host mail.mysite.com
How can solve this Issue!?!?!
I can not use Gmail external mail service?!