Solved Sending to Gmail problem with "Network is unreachable"

darkus

Verified User
Joined
Dec 15, 2005
Messages
148
Code:
2025-08-05 09:02:13 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1ujIF3-00000007BmJ-0lpg
2025-08-05 09:02:13 1ujIF3-00000007BmJ-0lpg <= [email protected] U=admin P=local S=4087 [email protected] T="xxxx" from <[email protected]> for [email protected]
2025-08-05 09:02:13 1ujIF3-00000007BmJ-0lpg H=gmail-smtp-in.l.google.com [2607:f8b0:4023:100b::1b] Network is unreachable
2025-08-05 09:02:14 1ujIF3-00000007BmJ-0lpg => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=5013 H=gmail-smtp-in.l.google.com [173.194.208.26] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes C="250 2.0.0 OK 1754402534 5614622812f47-433568eb815si3331365b6e.11 - gsmtp"
2025-08-05 09:02:14 1ujIF3-00000007BmJ-0lpg Completed

Ive started to notice a bunch of outgoing emails looking like above. This is just a guess, but reading those lines it seems like the server is trying to send to gmail-smtp-in.l.google.com using an ipv6 address of 2607:f8b0:4023:100b::1b which then fails with Network is unreachable. Then a second later it tries again, this time sending to gmail-smtp-in.l.google.com using an ipv4 address of 173.194.208.26 which then succeeds

Am I reading this correctly? And if so does anyone know why the first one would fail and how to fix it so it always tries the ipv4 one, or fix it so that either attempt would work? Seems like a waste of server resources to try and fail over and over like this
 
Back
Top