outbound email not working on google cloud

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hi everyone,

i have this problem with mail on a cloud server on google cloud

- emails sent to myself: ok
- incoming email (from outside): ok
- OUTBOUND EMAIL: not ok ....

from log:

2022-02-01 16:57:24 1nEvX2-0007wl-Gw <= [email protected] H=localhost (server.hostname.com) [127.0.0.1] P=esmtpa A=login:[email protected] S=513 id=[email protected] T="test" from <[email protected]> for [email protected]
2022-02-01 16:59:35 1nEvX2-0007wl-Gw H=msn-com.olc.protection.outlook.com [104.47.57.33] Connection timed out
2022-02-01 17:01:46 1nEvX2-0007wl-Gw H=msn-com.olc.protection.outlook.com [104.47.51.33] Connection timed out
2022-02-01 17:01:46 1nEvX2-0007wl-Gw == [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out
2022-02-01 17:01:46 1nEvX2-0007wl-Gw ** [email protected]: retry timeout exceeded



I can't find anything in the firewall that is blocking. How can I do?

Thank You,

vito
 
H=localhost (server.hostname.com) [127.0.0.1]
Try fixing this. A server should say helo with a FQDN and a valid ip, not localhost and 127.0.0.1 when connecting to external servers.

You say you use Google cloud, so you setup MX correctly for use with Google on the MX page of Directadmin? Or did you add the DNS entry's yourself?
 
Hi Richard,

Thanks for the reply. I have a cloud server (with ubuntu) on google, i use directadmin and i don't want to use google mx for domains.

Probably 127.0.0.1 is because the mail was sent from roundcube
 
Ah sorry, my mistake. I confused myself, that is not a header but an piece of Exim log of your own server. If you send via Roundcube then it will show 127.0.0.1/localhost, that is correct.

I can't see a lot, but if you think it's the firewall, check your firewall and Google rules or datacenter or whatever is there (I never used Google cloud so I'm not familiar with that) if port 25 outgoing is open. Because all MTA to MTA traffic still goes over port 25.
Maybe port 25 outgoing traffic is not allowed by Google cloud servers.
 
P.s. easy to check. Go to mail-tester.com and see if you can send a mail outgoing from your server to the address mail-tester.com will give you.
It will also check if all settings are oke. You at least need 9/10 score.
 
Try this?


I may be able to help if this doesn't answer it for you. I've got it working myself.
 
Back
Top