HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   External mail server with gmail MX service (http://www.howtoforge.com/forums/showthread.php?t=6763)

adrenalinic 10th September 2006 02:30

External mail server with gmail MX service
 
Hi.
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 72.14.205.27 [US]
alt2.aspmx.l.google.com. 20 64.233.167.114 [US]64.233.167.27 [US]

This test see correctly the MX address of Gmail server....

But.......
when send an email to test@mysite.com form email address hosted on the same server, it return this error postfix message:

The Postfix program

<test@mysite.com>: mail for mysite.com loops back to
myself

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?!
https://www.google.com/a/

adrenalinic 10th September 2006 03:01

My dns is autoritative for this domain and have waith for 48 hour..........

till 10th September 2006 14:23

What is the output of:

hostname -f

adrenalinic 10th September 2006 16:58

output is:
server3.myserver.org (my server...not my site)

adrenalinic 10th September 2006 17:55

Hi.
I have added mail server ASPMX.L.GOOGLE.COM
to /etc/postfix/local-host-names and restart postfix..

I will receive mail in next the 48 hours ??!!

Thanks.
Josef

adrenalinic 10th September 2006 18:34

after adding the gmail mail server to local host name i have the same error:
The Postfix program

<test@mysite.com>: mail for mysite.com loops back to
myself

:eek: :confused:

till 11th September 2006 09:48

Please post an excerpt of your mail.log

falko 11th September 2006 13:21

Quote:

Originally Posted by adrenalinic
after adding the gmail mail server to local host name i have the same error:
The Postfix program

<test@mysite.com>: mail for mysite.com loops back to
myself

:eek: :confused:

Add mysite.com to the end of /etc/postfix/local-host-names and restart Postifx.

adrenalinic 11th September 2006 14:19

Hi.
I have see a courious problems....i have tryed to send mail from webmail with squirrel mail from email hosted on the same server but is a different domain, to domain which point to google mail server.
When send this mail....is sended whit mail postmaster@example.com and not postmaster@mydomain.com!!!!!!
I have see in the virtual user table and not exist any instance whit example.com!!

:eek:

adrenalinic 11th September 2006 14:23

this is a truncated log info of mail.log:

Sep 10 22:41:16 server3 postfix/smtp[3898]: connect to example.com[192.0.34.166]: Connection timed out (port 25)
Sep 10 22:41:16 server3 postfix/smtp[3900]: connect to example.com[192.0.34.166]: Connection timed out (port 25)
Sep 10 22:41:16 server3 postfix/smtp[3898]: 16731EF8E440: to=<web26_giuseppe@example.com>, relay=none, delay=151109, status=deferred (connect to example.com[192.0.34.166]: Connection timed out)
Sep 10 22:41:16 server3 postfix/smtp[3901]: connect to example.com[192.0.34.166]: Connection timed out (port 25)
Sep 10 22:41:16 server3 postfix/smtp[3900]: 36135EF8E441: to=<web26_giuseppe@example.com>, relay=none, delay=151011, status=deferred (connect to example.com[192.0.34.166]: Connection timed out)
Sep 10 22:41:16 server3 postfix/smtp[3901]: 85942EF8E442: to=<web26_giuseppe@example.com>, relay=none, delay=111505, status=deferred (connect to example.com[192.0.34.166]: Connection timed out)


All times are GMT +2. The time now is 06:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.