Smarthost: Google.com

Hi,

Trying to setup smtp.google.com as smarthost, but it's not working, both with 465 or 587

Logs:

Code:
2024-04-10T22:16:28.940850+02:00 pmg1 postfix/smtp[9341]: connect to smtp.google.com[64.233.167.27]:465: Connection timed out
2024-04-10T22:16:28.943577+02:00 pmg1 postfix/smtp[9341]: connect to smtp.google.com[2a00:1450:400c:c04::1a]:465: Network is unreachable
2024-04-10T22:16:28.943694+02:00 pmg1 postfix/smtp[9341]: connect to smtp.google.com[2a00:1450:400c:c0a::1a]:465: Network is unreachable
2024-04-10T22:16:28.944185+02:00 pmg1 postfix/smtp[9343]: connect to smtp.google.com[64.233.167.26]:465: Connection timed out
2024-04-10T22:16:28.944945+02:00 pmg1 postfix/smtp[9342]: connect to smtp.google.com[74.125.206.26]:465: Connection timed out
2024-04-10T22:16:58.971162+02:00 pmg1 postfix/smtp[9341]: connect to smtp.google.com[74.125.206.27]:465: Connection timed out
2024-04-10T22:16:58.971721+02:00 pmg1 postfix/smtp[9343]: connect to smtp.google.com[74.125.206.27]:465: Connection timed out
2024-04-10T22:16:58.971806+02:00 pmg1 postfix/smtp[9343]: connect to smtp.google.com[2a00:1450:400c:c04::1a]:465: Network is unreachable
2024-04-10T22:16:58.971861+02:00 pmg1 postfix/smtp[9343]: connect to smtp.google.com[2a00:1450:400c:c0a::1a]:465: Network is unreachable
2024-04-10T22:16:58.972182+02:00 pmg1 postfix/smtp[9342]: connect to smtp.google.com[74.125.206.27]:465: Connection timed out
2024-04-10T22:16:58.972254+02:00 pmg1 postfix/smtp[9342]: connect to smtp.google.com[2a00:1450:400c:c04::1a]:465: Network is unreachable
2024-04-10T22:16:58.972316+02:00 pmg1 postfix/smtp[9342]: connect to smtp.google.com[2a00:1450:400c:c0a::1b]:465: Network is unreachable
2024-04-10T22:17:29.000778+02:00 pmg1 postfix/smtp[9341]: connect to smtp.google.com[74.125.71.26]:465: Connection timed out
2024-04-10T22:17:29.001612+02:00 pmg1 postfix/smtp[9343]: connect to smtp.google.com[64.233.167.27]:465: Connection timed out
2024-04-10T22:17:29.002038+02:00 pmg1 postfix/smtp[9342]: connect to smtp.google.com[64.233.167.27]:465: Connection timed out

Telnet works.

Code:
telnet smtp.gmail.com 465
Trying 64.233.167.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
quit
FConnection closed by foreign host.
 
Hello,

You won't be able to reach smtp.google.com, but try smtp.gmail.com (like in your telnet) and it should work I assume.
At least I'm seeing the same testing from my servers, smtp.google.com does NOT work, while smtp.gmail.com does.