Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mail transport unavailable

359 views
Skip to first unread message

Cerebus the Aardvark

unread,
Jul 31, 2013, 7:29:21 PM7/31/13
to
I have a few accounts who forward a copy of all their mail to gmail addresses. For example, this account mirrors to a gmail account so I have access to my mailing list archives even when I am working on my server.

While testing postfix 2.10 I am getting:

Jul 31 13:10:20 mail postfix/error[71592]: A4A0D118B50A: to=<*munged*@gmail.com>, orig_to=<kre...@kreme.com>, relay=none, delay=0.21, delays=0.2/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)

This is happening on all the accounts that forward to gmail.

# postconf -n
alias_database = hash:$config_directory/aliases
alias_maps = hash:$config_directory/aliases, hash:/usr/local/mailman/data/aliases
allow_percent_hack = no
body_checks = pcre:$config_directory/body_checks.pcre
bounce_size_limit = 10240
command_directory = /usr/local/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
disable_vrfy_command = yes
header_checks = pcre:$config_directory/header_checks.pcre
header_size_limit = 10240
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/local/bin/procmail -t -a $EXTENSION
mailbox_size_limit = 52428800
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
maps_rbl_reject_code = 521
message_size_limit = 26214400
mime_header_checks = pcre:$config_directory/mime_headers.pcre
mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost, ns1.$mydomain, ns2.$mydomain, mail.$mydomain, www.$mydomain, webmail.$mydomain
mydomain = covisp.net
myhostname = mail.covisp.net
mynetworks = 75.148.117.88/29, 127.0.0.0/8, 23.24.150.141
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
postscreen_access_list = permit_mynetworks, cidr:$config_directory/postscreen_access.cidr
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = sbl.spamhaus.org*-4 zen.spamhaus.org*3dwl.spamhaus.org*-3
postscreen_greet_action = enforce
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
recipient_delimiter = +
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
show_user_unknown_table_name = no
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name $mail_version
smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce, check_sender_access hash:$config_directory/backscatter permit
smtpd_error_sleep_time = 28
smtpd_hard_error_limit = 8
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit
smtpd_recipient_limit = 100
smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_invalid_hostname, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, reject_unlisted_sender, reject_unknown_reverse_client_hostname, warn_if_reject reject_unknown_client_hostname, check_client_access cidr:/var/db/dnswl/postfix-dnswl-permit check_sender_access pcre:$config_directory/sender_access.pcre, check_client_access pcre:$config_directory/check_client_fqdn.pcre, check_recipient_access pcre:$config_directory/recipient_checks.pcre, check_client_access hash:$config_directory/access, permit
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_soft_error_limit = 4
smtpd_starttls_timeout = 90s
smtpd_tls_cert_file = /etc/postfix/server.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_loglevel = 2
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:$data_directory/smtpd_sessions
smtpd_tls_session_cache_timeout = 1800s
soft_bounce = no
swap_bangpath = no
transport_maps = hash:/etc/postfix/transport
undisclosed_recipients_header = To: List of Bcc addresses:;
unknown_local_recipient_reject_code = 550
virtual_alias_domains = kreme.com
virtual_alias_maps = hash:$config_directory/virtual pcre:$config_directory/virtual.pcre, pcre:$config_directory/virtual_sql.pcre, proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:89
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 89
virtual_transport = virtual
virtual_uid_maps = static:89

(or should I post postconf -nfx instead?)

I am also now getting this error on mail to the postfix list, so it is possible that when this clears up a duplicate of this post will end up on the list. I apologize in advance, I'll try and remove it from the queue.

Wietse Venema

unread,
Jul 31, 2013, 7:35:41 PM7/31/13
to
Cerebus the Aardvark:
> I have a few accounts who forward a copy of all their mail to gmail
> addresses. For example, this account mirrors to a gmail account so I have
> access to my mailing list archives even when I am working on my server.
>
> While testing postfix 2.10 I am getting:
>
> Jul 31 13:10:20 mail postfix/error[71592]: A4A0D118B50A: to=<*munged*@
> gmail.com>, orig_to=<kre...@kreme.com>, relay=none, delay=0.21,
> delays=0.2/0/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
>
> This is happening on all the accounts that forward to gmail.

Actually it will also happen with other mail that goes out via SMTP,
and the reason for that is in the maillog file.

http://www.postfix.org/DEBUG_README.html#logging

Wietse

LuKreme

unread,
Jul 31, 2013, 9:33:02 PM7/31/13
to

On 31 Jul 2013, at 17:35 , Wietse Venema <wie...@porcupine.org> wrote:

>
> http://www.postfix.org/DEBUG_README.html#logging

Since I last stopped and started postfix (2.10.1):

# egrep '(warning|error|fatal|panic):' /var/log/maillog
Jul 31 18:47:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 18:49:39 mail postfix/smtpd[81991]: warning: hostname mx68.almstar.com does not resolve to address 173.232.44.68: hostname nor servname provided, or not known
Jul 31 18:51:04 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 18:52:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 18:57:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 19:01:08 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 19:02:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 19:07:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused
Jul 31 19:10:40 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused

Not running anything in chroot though.

here's postconf -Mf

pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
procmail unix - n n - - pipe
flags=uhFORD user=vpopmail argv=/usr/local/bin/procmail -t -m
USER=${recipient} EXTENSION=${extension} /usr/local/etc/procmailrc.common
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
discard unix - - n - - discard
tlsmgr unix - - n 1000? 1 tlsmgr
retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
smtp inet n - n - 1 postscreen
smtpd pass - - n - - smtpd
dnsblog unix - - n - 0 dnsblog
tlsproxy unix - - n - 0 tlsproxy

cranking up the logging on qmgr I see this:

Jul 31 19:20:45 mail postfix/qmgr[89644]: private/retry socket: wanted attribute: (list terminator)
Jul 31 19:20:45 mail postfix/qmgr[89644]: input attribute name: (end)
Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_peer_select: E1588118AC34 retry 4.3.0 mail transport unavailable (1 of 5)

and later

Jul 31 19:20:45 mail postfix/qmgr[89644]: private/retry socket: wanted attribute: (list terminator)
Jul 31 19:20:45 mail postfix/qmgr[89644]: input attribute name: (end)
Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_queue_unthrottle: queue 4.3.0 mail transport unavailable
Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_active_done: E1588118AC34
Jul 31 19:20:45 mail postfix/qmgr[89644]: wakeup E1588118AC34 after 300 secs
Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_active_defer: defer E1588118AC34
Jul 31 19:20:45 mail postfix/qmgr[89644]: qmgr_job_free: E1588118AC34 retry
Jul 31 19:20:50 mail postfix/qmgr[89644]: rewrite stream disconnect
Jul 31 19:20:53 mail postfix/qmgr[89644]: qmgr_transport_unthrottle: transport smtp


--
'I like the sound of that,' said Mrs Palm. 'I like the echoes,' said Dr
Downey.

Noel Jones

unread,
Jul 31, 2013, 11:52:34 PM7/31/13
to
On 7/31/2013 8:33 PM, LuKreme wrote:
>
> On 31 Jul 2013, at 17:35 , Wietse Venema <wie...@porcupine.org> wrote:
>
>>
>> http://www.postfix.org/DEBUG_README.html#logging
>
> Since I last stopped and started postfix (2.10.1):
>
> # egrep '(warning|error|fatal|panic):' /var/log/maillog
> Jul 31 18:47:59 mail postfix/qmgr[81937]: warning: connect to transport private/smtp: Connection refused

OK, that's the message we need.

> here's postconf -Mf

Looks as if you clobbered your smtp transport "smtp unix ... smtp"
debug logging is rarely useful with postfix. 99%+ of the time
normal logging is sufficient to solve whatever problem you're
having. As in this case.




-- Noel Jones

LuKreme

unread,
Aug 1, 2013, 12:20:37 AM8/1/13
to

On 31 Jul 2013, at 21:52 , Noel Jones <njo...@megan.vbhcs.org> wrote:

> Looks as if you clobbered your smtp transport "smtp unix ... smtp"
>
>> smtp inet n - n - 1 postscreen
>> smtpd pass - - n - - smtpd

Am I suppose to have three lines?

adding

smtp unix - - - - - smtp

didn't solve the problem, though it led to many different errors.

Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp
Jul 31 22:16:45 mail kernel: Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp
Jul 31 22:16:46 mail postfix/qmgr[573]: warning: private/smtp socket: malformed response
Jul 31 22:16:46 mail postfix/master[571]: warning: process /usr/local/libexec/postfix/smtp pid 576 exit status 1
Jul 31 22:16:46 mail postfix/master[571]: warning: /usr/local/libexec/postfix/smtp: bad command startup -- throttling
Jul 31 22:16:46 mail postfix/qmgr[573]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description


--
"A synonym is a word you use when you can't spell the word you first
thought of." - Burt Bacharach

LuKreme

unread,
Aug 1, 2013, 1:51:14 AM8/1/13
to

On 31 Jul 2013, at 22:20 , LuKreme <kre...@kreme.com> wrote:

> smtp unix - - - - - smtp

Well, yes, *that* was stupid.

smtp unix - - n - - smtp

*cough*

Thanks Noel, wouldn't have gotten there without you.

--
On a scale of one to ten, it sucked.

Ralf Hildebrandt

unread,
Aug 1, 2013, 10:20:55 AM8/1/13
to
* LuKreme <kre...@kreme.com>:
>
> On 31 Jul 2013, at 21:52 , Noel Jones <njo...@megan.vbhcs.org> wrote:
>
> > Looks as if you clobbered your smtp transport "smtp unix ... smtp"
> >
> >> smtp inet n - n - 1 postscreen
> >> smtpd pass - - n - - smtpd
>
> Am I suppose to have three lines?
>
> adding
>
> smtp unix - - - - - smtp
>
> didn't solve the problem, though it led to many different errors.
>
> Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp
> Jul 31 22:16:45 mail kernel: Jul 31 22:16:45 mail postfix/smtp[576]: fatal: unknown service: smtp/tcp

cp -a /etc/services /var/spool/postfix/etc

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

0 new messages