deliver reports (/var/lib/imap/socket/lmtp) failed: Connection refused

Simon Matter simon.matter at invoca.ch
Tue Sep 4 04:30:30 EDT 2007


> Hello,
>
> We had a properly working postfix + cyrus-imap system till 23rd of
> July. Then messages like the below one started to appear in the log
> file.
>
> Sep  3 07:45:59 srv1 deliver[20650]:
> connect(/var/lib/imap/socket/lmtp) failed: Connection refused
>
> The postfix log shows:
>
> Sep  3 07:45:59 srv1 postfix/pipe[19972]: B88D01DC8EF8: to=<xxx@
> srv1.xxx.xx>, orig_to=<xxx at xxx.xx>, relay=cyrus-deliver, delay=2
> 49424, status=deferred (temporary failure. Command output: couldn't
> connect to l
> mtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )
>
>
> Do you have any ideas what could happen? It worked fine before.
>
>
> cyrus.conf contains:
>
>    # at least one LMTP is required for delivery
> #  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
>    lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=5
>
>
> postfix/master.cf contains:
>
> cyrus-deliver     unix  -       n       n       -       -       pipe
>    user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m
> ${extension} ${user}
>
>
> postfix/main.cf contains:
>
> mailbox_transport = cyrus-deliver

Hi,

I don't know why things suddenly fail but you shouldn't use the cyrus
transport anymore. You should use lmtp as a mailtransport directly. If
your postfix setup isn't somehow exotic you should be able to simply
switch with this config:
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

Maybe you could give it a try.

Simon


More information about the Info-cyrus mailing list