Why my Postfix is trying to send emails over Google smtp?

Lucas Veiga asked:

Im trying to set to my postfix send e-mails from my server, not from Google SMTP and it keeps trying to send over Google’s SMTP:

Feb 20 22:04:14 elusive postfix/smtpd[9008]: connect from localhost[127.0.0.1]
Feb 20 22:04:59 elusive postfix/smtpd[9008]: 8CC4C62D3D: client=localhost[127.0.0.1]
Feb 20 22:05:28 elusive postfix/cleanup[9003]: 8CC4C62D3D: message-id=<20140221030459.8CC4C62D3D@localhost>
Feb 20 22:05:28 elusive postfix/qmgr[8963]: 8CC4C62D3D: from=<lucas@testserver.com.br>, size=325, nrcpt=1 (queue active)
Feb 20 22:05:28 elusive postfix/error[9018]: 8CC4C62D3D: to=<lucas@lucasveiga.com>, relay=none, delay=37, delays=37/0.01/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to ALT1.ASPMX.L.GOOGLE.com[173.194.66.27]:25: Connection timed out)

I dont want it to user Google’s SMTP.


I answered:

The email for your domain lucasveiga.com is handled by Google according to its MX records. Thus in order for it to be delivered, it has to be sent to Google!

If you don’t want to use Google for your domain email, then you will need to stop using Google Apps to host your domain email, and switch to another provider.

Of course, the real problem is that you did not follow the advice given for your first question, and you should do that now.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.