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

lmtp: transport unavailable

62 views
Skip to first unread message

Arian Sanusi

unread,
Jan 20, 2016, 5:43:39 AM1/20/16
to
Hi all,

I'm trying to configure postfix for lmtp local delivery - delivery fails with "transport unavailable" however. lmtpd ist dovecot-lmtp, which works, I can send mail using smtp-source. Google did only find me questions about "pipe to dovecot"-style delivery, due to lmtp being in config files anyway. Could anyone give me a hand? This is a debian stretch(testing) system with postfix 2.11.3, lmtpd ist dovecot 2.2.18.

Relevant commands, logs, config excerpts:

master.cf:
> lmtp unix - - - - - lmtp
appending -v to lmtp does not change log output

main.cf:
> mailbox_transport = lmtp:unix:private/dovecot-lmtp
> virtual_transport = lmtp:unix:private/dovecot-lmtp

# ls /var/spool/postfix/private/dovecot-lmtp -l
srw------- 1 postfix postfix 0 Jan 20 10:24 /var/spool/postfix/private/dovecot-lmtp

# smtp-source -L -l 1000 -m 1 -M sanusi.ch -f ar...@sanusi.ch -t ar...@semioptimal.net unix:/var/spool/postfix/private/dovecot-lmtp
^ works -can fetch the mail with IMAP

/var/log/mail.log:
> Jan 20 11:31:40 chichak postfix/error[31253]: 6716E6A79: to=<arian+$lo...@sanusi.ch>, orig_to=<ar...@sanusi.ch>, relay=none, delay=0.42, delays=0.37/0/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)

thank you,

arian

signature.asc

Wietse Venema

unread,
Jan 20, 2016, 6:12:44 AM1/20/16
to
Arian Sanusi:
> /var/log/mail.log:
> > Jan 20 11:31:40 chichak postfix/error[31253]: 6716E6A79: to=<arian+$lo...@sanusi.ch>, orig_to=<ar...@sanusi.ch>, relay=none, delay=0.42, delays=0.37/0/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)
>

You need to look earlier in the logfile. Look for fatal or warning
records.

Wietse

Arian Sanusi

unread,
Jan 20, 2016, 6:18:49 AM1/20/16
to

> You need to look earlier in the logfile. Look for fatal or warning
> records.

Just did - the only thing that's there is not helpful to me, either:
Jan 20 11:31:40 chichak postfix/qmgr[31189]: warning: connect to transport private/local: Connec
tion refused

signature.asc

Wilfrie...@essignetz.de

unread,
Jan 20, 2016, 8:23:22 AM1/20/16
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Looks like lack of rights or wrong path.

Did you run your smtp-source test as user postfix?

BTW - what user is your dovecot running with?

What makes you shure, postfix will try to use
/var/spool/postfix/private/dovecot-lmtp?



Willi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlafijMACgkQ3fC18neDqYEK1gCg3l1rgR6AWUnocItBp425NCyr
Og0An33FYG+8wYpZJy81W5aJHI0YKlH2
=wapy
-----END PGP SIGNATURE-----

Arian Sanusi

unread,
Jan 20, 2016, 8:44:49 AM1/20/16
to

>> Just did - the only thing that's there is not helpful to me,
>> either: Jan 20 11:31:40 chichak postfix/qmgr[31189]: warning:
>> connect to transport private/local: Connec tion refused

> Looks like lack of rights or wrong path.
lack of rights: postfix should be able to use the socket, if it actually has the path, as
# ls /var/spool/postfix/private/dovecot-lmtp -l
srw------- 1 postfix postfix 0 Jan 20 10:24 /var/spool/postfix/private/dovecot-lmtp
>
> Did you run your smtp-source test as user postfix?
yes: makes no difference.
>
> BTW - what user is your dovecot running with?
root, standard debian config.
>
> What makes you shure, postfix will try to use
> /var/spool/postfix/private/dovecot-lmtp?

nothing makes me sure, as postfix does not actually say anywhere which socket it tries to use. (as long as the private/local above is not the path - I don't know where it'd get that, it's not mentioned in the config)
There's some doku mentioning this[1], and main.cf has the entries quoted before, which should point there after chrooting.

[1] http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP

signature.asc

L.P.H. van Belle

unread,
Jan 20, 2016, 8:50:58 AM1/20/16
to
Ok, debian, my thing.. ;-)

Try :

Edit /etc/dovecot/dovecot.conf
To Change : protocols = imap lmtp

And add:

service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
protocol lmtp {
postmaster_address=postm...@yourdomain.com
hostname=mail.yourdomain.com
}


And in postfix main.cfg

mailbox_transport = lmtp:unix:private/dovecot-lmtp

Is this a setup with dovecot with sql?
Then you need some extra things.



Greetz,

Louis

> -----Oorspronkelijk bericht-----
> Van: ar...@sanusi.de [mailto:owner-pos...@postfix.org] Namens Arian
> Sanusi
> Verzonden: woensdag 20 januari 2016 14:44
> Aan: postfi...@postfix.org
> Onderwerp: Re: lmtp: transport unavailable

Wietse Venema

unread,
Jan 20, 2016, 9:00:03 AM1/20/16
to
Wietse Venema:
> Arian Sanusi:
> > /var/log/mail.log:
> > > Jan 20 11:31:40 chichak postfix/error[31253]: 6716E6A79: to=<arian+$lo...@sanusi.ch>, orig_to=<ar...@sanusi.ch>, relay=none, delay=0.42, delays=0.37/0/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)

Based on an *EARLIER* error, the "qmgr" daemon has decided not to
deliver this mail. It temporariliy switches deliveries from "lmtp"
to "error".

This is a safety mechanism that prevents Postfix from going crazy
and continuously beating a dead horse.

Therefore:

> You need to look earlier in the logfile. Look for fatal or warning
> records.

grep panic /the/maillog/file
grep fatal /the/maillog/file

Look for the first time that the problem happened, i.e. before the
safet mechanism kicks in.

Wietse

Wilfrie...@essignetz.de

unread,
Jan 20, 2016, 9:38:30 AM1/20/16
to
Am 20.01.2016 um 14:59 schrieb Wietse Venema:
> Wietse Venema:
>> Arian Sanusi:
>>> /var/log/mail.log:
>>>> Jan 20 11:31:40 chichak postfix/error[31253]: 6716E6A79: to=<arian+$lo...@sanusi.ch>, orig_to=<ar...@sanusi.ch>, relay=none, delay=0.42, delays=0.37/0/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)

Hi Arian,

maybe i'm completely wrong. What ist "to=<arian+$lo...@sanusi.ch>"
inside the above printed logline?

I know the "+"-addressing, but i don't know what the "$local" should do
in that place. As i see, that looks like an entry with name expansion,
for instance in a luser_relay file.


Willi

Wietse Venema

unread,
Jan 20, 2016, 10:49:07 AM1/20/16
to
Wilfrie...@essignetz.de:
[ Charset windows-1252 converted... ]
The answer to that question is in the output from "postconf -n"
(and perhaps "postconf -P", with Postfix 2.11 and later).


Wietse

0 new messages