Hello
i try to setup google apps gmail for my server, everything is setup just like instructed.
I’ve change the MX records, change the cname, edit the TXT record. but it seems postfix cannot find the google MX address because my domain name stuck behind it.
this is the error returned when im sending email :
Host or domain name not found. Name service error for name=aspmx4.googlemail.com.MYDOMAIN.COM type=A: Host not found
how do i remove MYDOMAIN.COM? i suspect its the cause of the problem…
Pref Hostname IP Address TTL
1 ASPMX.L.GOOGLE.COM.MYDOMAIN.com 0.0.0.0 11 hrs SMTP Test Blacklist Check
5 ALT1.ASPMX.L.GOOGLE.COM.MYDOMAIN.com 0.0.0.0 11 hrs SMTP Test Blacklist Check
5 ALT2.ASPMX.L.GOOGLE.COM.MYDOMAIN.com 0.0.0.0 11 hrs SMTP Test Blacklist Check
10 ASPMX2.GOOGLEMAIL.COM.MYDOMAIN.com 0.0.0.0 11 hrs SMTP Test Blacklist Check
10 ASPMX3.GOOGLEMAIL.COM.MYDOMAIN.com 0.0.0.0 11 hrs SMTP Test Blacklist Check
i use Bind to manage my dns records, i input google apps MX records without MYDOMAIN.com.
my bind settings are:
$ttl 38400
@ IN SOA server.myhost.net. root.server.myhost.net. (
1268389339
10800
3600
604800
38400 )
MYDOMAIN.com. IN A 202.59.xxx.xxx
www.MYDOMAIN.com. IN A 202.59.xxx.xxx
localhost.MYDOMAIN.com. IN A 127.0.0.1
webmail.MYDOMAIN.com. IN A 202.59.xxx.xxx
admin.MYDOMAIN.com. IN A 202.59.xxx.xxx
MYDOMAIN.com. IN TXT “v=spf1 include:aspmx.googlemail.com ~all”
MYDOMAIN.com. IN MX 1 ASPMX.L.GOOGLE.COM
MYDOMAIN.com. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM
MYDOMAIN.com. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM
MYDOMAIN.com. IN MX 10 ASPMX2.GOOGLEMAIL.COM
MYDOMAIN.com. IN MX 10 ASPMX3.GOOGLEMAIL.COM
mail.MYDOMAIN.com. IN CNAME ghs.google.com
anything.MYDOMAIN.com. IN CNAME ghs.google.com
ns1.MYDOMAIN.com. IN NS ns1.myhost.net
ns2.MYDOMAIN.com. IN NS ns2.myhost.net