Discussion:
connect to gmail-smtp-in.l.google.com[...]:25: Network is unreachable
(too old to reply)
Shane
2012-08-24 00:08:28 UTC
Permalink
This may be a duplicate, if so, apologies.

-------- Original Message --------
Message-ID: <***@shanemcgovern.com>
Date: Thu, 23 Aug 2012 17:06:45 -0700
From: Shane <***@shanemcgovern.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713
Thunderbird/14.0
MIME-Version: 1.0
To: postfix-***@postfix.org
Subject: connect to gmail-smtp-in.l.google.com[...]:25: Network is
unreachable
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I am attempting to resolve the issue shown in the subject line from a
very basic Postfix installation on Ubuntu 12.04 server. I have included
my main.cf, virtual file and the error as it appears in /var/log/mail.log.

In my virtual file, if I change the destination e-mail address to
anything other than gmail.com (well, with all I have tried), the set-up
works fine.

I want to sent a piece of mail to a gmail account. I have seen
solutions that suggest authenticating with a gmail account, is that
necessary to send e-mail there?

Help!


The error:

Aug 23 16:50:31 goblin postfix/smtpd[13792]: connect from
li228-140.members.linode.com[XXX.XXX.XXX.XXX]
Aug 23 16:50:31 goblin postfix/smtpd[13792]: F1FBD3C0C69:
client=li228-140.members.linode.com[XXX.XXX.XXX.XXX]
Aug 23 16:50:32 goblin postfix/cleanup[13797]: F1FBD3C0C69:
message-id=<***@shanemcgovern.com>
Aug 23 16:50:32 goblin postfix/qmgr[1907]: F1FBD3C0C69:
from=<***@shanemcgovern.com>, size=1196, nrcpt=1 (queue active)
Aug 23 16:50:32 goblin postfix/smtpd[13792]: disconnect from
li228-140.members.linode.com[XXX.XXX.XXX.XXX]
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
Aug 23 16:50:33 goblin postfix/smtp[13798]: F1FBD3C0C69:
to=<dummy-virtual-***@gmail.com>,
orig_to=<***@dummy-virtual-domain.com>,
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$
Aug 23 16:50:33 goblin postfix/qmgr[1907]: F1FBD3C0C69: removed


My main.cf:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = goblin
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = goblin, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

virtual_alias_domains = dummy-virtual-domain.com
virtual_alias_maps = hash:/etc/postfix/virtual



My virtual file:

@dummy-virtual-domain.com dummy-virtual-***@gmail.com
Wietse Venema
2012-08-24 00:34:29 UTC
Permalink
Post by Shane
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.
Post by Shane
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...