Discussion:
[SOLVED] connect to gmail-smtp-in.l.google.com[...]:25: Network is unreachable
(too old to reply)
Shane
2012-08-24 05:43:06 UTC
Permalink
Excellent! Issue solved with the following line in my main.cf

inet_protocols = ipv4
Aug 23 16:50:32 goblin postfix/smtp[13798]: connect to
gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Someone has turned on IPv6 support, but your host has no IPv6
connectivity.
Postfix as distributed from Postfix.org does not turn on IPv6 support
unless the sysadmin says so.
relay=gmail-smtp-in.l.google.com[74.125.127.26]:25, delay=1.6,
delays=0.11/0.03/0.35/1.1, dsn=2.0.0, status=sent (250 2.0.0 O$
Postfix will try until it hits upon an IPv4 MX host.
Wietse
Wietse Venema
2012-08-24 12:17:11 UTC
Permalink
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Postfix as distributed from postfix.org adds that by default.

Please complain to your maintainer if they turn on IPv6 for you.
Those idiots are causing all kinds of problems with email deliveries
on IPv4-only hosts, and are giving Postfix a bad reputation.

Wietse
s***@gmail.com
2016-03-31 08:19:54 UTC
Permalink
Post by Wietse Venema
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Postfix as distributed from postfix.org adds that by default.
Please complain to your maintainer if they turn on IPv6 for you.
Those idiots are causing all kinds of problems with email deliveries
on IPv4-only hosts, and are giving Postfix a bad reputation.
Wietse
c***@gmail.com
2017-07-04 05:56:44 UTC
Permalink
Post by Wietse Venema
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Postfix as distributed from postfix.org adds that by default.
Please complain to your maintainer if they turn on IPv6 for you.
Those idiots are causing all kinds of problems with email deliveries
on IPv4-only hosts, and are giving Postfix a bad reputation.
Wietse
Benny Pedersen
2012-08-27 03:19:14 UTC
Permalink
Post by Wietse Venema
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Postfix as distributed from postfix.org adds that by default.
in 2.9.x this is not ipv4 but all

and there is a warnning if ipv4 is in main.cf (to reminds of ipv6) even
for kernels that dont have it
Wietse Venema
2012-08-27 10:52:29 UTC
Permalink
Benny Pedersen:
[ Charset UTF-8 unsupported, converting... ]
Post by Benny Pedersen
Post by Wietse Venema
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Postfix as distributed from postfix.org adds that by default.
in 2.9.x this is not ipv4 but all
Postfix 2.9 edits main.cf and adds "inet_protocols = ipv4"
if you don't have an inet_protocols line in main.cf.

Wietse
Benny Pedersen
2012-08-27 11:04:30 UTC
Permalink
Post by Wietse Venema
Postfix 2.9 edits main.cf and adds "inet_protocols = ipv4"
if you don't have an inet_protocols line in main.cf.
why is this done ?, this is breaking that main.cf could be 100% empty
to get an postfix running as before, defaults hardcoded settings should
work imho, else there will be some users that dont understand why some
lines now must be in main.cf and some is just optional :/

the days of have all defaults not listed in main.cf is gone ?
Wietse Venema
2012-08-27 11:56:04 UTC
Permalink
Post by Wietse Venema
Postfix 2.9 edits main.cf and adds "inet_protocols = ipv4"
if you don't have an inet_protocols line in main.cf.
why is this done ? this is breaking that main.cf could be 100% empty
It is a forwards compatibility migration procedure.

And doing so breaks NOTHING: there is NO DOCUMENTED PROMISE
about running Postfix with empty main.cf file.

Wietse
s***@gmail.com
2012-10-24 20:57:50 UTC
Permalink
by default in my main.cf file I have
inet_protocols = all
and I'm getting the error described by the OT.

should I set ipv4 in that line?
if yes why?
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Aug 23 16:50:32 goblin postfix/smtp[13798]: connect to
gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Someone has turned on IPv6 support, but your host has no IPv6
connectivity.
Postfix as distributed from Postfix.org does not turn on IPv6 support
unless the sysadmin says so.
relay=gmail-smtp-in.l.google.com[74.125.127.26]:25, delay=1.6,
delays=0.11/0.03/0.35/1.1, dsn=2.0.0, status=sent (250 2.0.0 O$
Postfix will try until it hits upon an IPv4 MX host.
Wietse
n***@starfox.20fr.com
2016-08-28 17:46:10 UTC
Permalink
Post by s***@gmail.com
by default in my main.cf file I have
inet_protocols = all
and I'm getting the error described by the OT.
should I set ipv4 in that line?
if yes why?
I had the same problem, and my inet_protocols is also "= all", and I solved it in alpine by going to SETUP (S) -> Config (C) -> SMTP Server (for sending) and changed its value to:
smtp.gmail.com:587/tls/user=***@gmail.com
The change of this value was the addition of the port number (:587) for me.

I found the solution here:
https://groups.google.com/forum/#!topic/comp.mail.pine/_zViU0ZmNtw
i***@student.waubonsee.edu
2014-11-20 01:55:35 UTC
Permalink
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Aug 23 16:50:32 goblin postfix/smtp[13798]: connect to
gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Someone has turned on IPv6 support, but your host has no IPv6
connectivity.
Postfix as distributed from Postfix.org does not turn on IPv6 support
unless the sysadmin says so.
relay=gmail-smtp-in.l.google.com[74.125.127.26]:25, delay=1.6,
delays=0.11/0.03/0.35/1.1, dsn=2.0.0, status=sent (250 2.0.0 O$
Postfix will try until it hits upon an IPv4 MX host.
Wietse
s***@gmail.com
2016-05-06 17:17:06 UTC
Permalink
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Aug 23 16:50:32 goblin postfix/smtp[13798]: connect to
gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Someone has turned on IPv6 support, but your host has no IPv6
connectivity.
Postfix as distributed from Postfix.org does not turn on IPv6 support
unless the sysadmin says so.
relay=gmail-smtp-in.l.google.com[74.125.127.26]:25, delay=1.6,
delays=0.11/0.03/0.35/1.1, dsn=2.0.0, status=sent (250 2.0.0 O$
Postfix will try until it hits upon an IPv4 MX host.
Wietse
a***@gmail.com
2016-10-13 22:35:50 UTC
Permalink
***@gmail.com
w***@gmail.com
2017-01-08 04:38:00 UTC
Permalink
My bad dummy
b***@gmail.com
2017-06-20 04:14:11 UTC
Permalink
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Aug 23 16:50:32 goblin postfix/smtp[13798]: connect to
gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Someone has turned on IPv6 support, but your host has no IPv6
connectivity.
Postfix as distributed from Postfix.org does not turn on IPv6 support
unless the sysadmin says so.
relay=gmail-smtp-in.l.google.com[74.125.127.26]:25, delay=1.6,
delays=0.11/0.03/0.35/1.1, dsn=2.0.0, status=sent (250 2.0.0 O$
Postfix will try until it hits upon an IPv4 MX host.
Wietse
c***@gmail.com
2017-07-04 05:56:30 UTC
Permalink
Post by Shane
Excellent! Issue solved with the following line in my main.cf
inet_protocols = ipv4
Aug 23 16:50:32 goblin postfix/smtp[13798]: connect to
gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Someone has turned on IPv6 support, but your host has no IPv6
connectivity.
Postfix as distributed from Postfix.org does not turn on IPv6 support
unless the sysadmin says so.
relay=gmail-smtp-in.l.google.com[74.125.127.26]:25, delay=1.6,
delays=0.11/0.03/0.35/1.1, dsn=2.0.0, status=sent (250 2.0.0 O$
Postfix will try until it hits upon an IPv4 MX host.
Wietse
Loading...