The problem is that deliver *only* works with unix lmtpd sockets.  So, how
we dealt with the issue in our environment is run with both lines in the
cyrus.conf file, allowing either TCP connections or unix socket connections.
Then we configured sendmail to use the TCP connection when delivering the
mail to LMTP.  If some external application needs to use deliver for any
reason, then that will work too, since deliver will use the unix socket.

It is too bad that deliver doesn't read the cyrus.conf file to determine
what sockets are available and to use what it finds (giving preference to
the TCP socket if they are both turned on).

Scott

--On Thursday, December 13, 2001 2:40 PM +0100 Peter Pilsl 
<[EMAIL PROTECTED]> wrote:

> I try to replace the unix-lmtpd-socket with a 'real' socket, cause I
> want use lmtpd for other applications too.
>
> however, if I do so, deliver wont work anymore:
>
># cat /tmp/m | /usr/cyrus/bin/deliver -a cyrus peter
> couldn't connect to lmtpd: Invalid argument
> 421 4.3.0 deliver: couldn't connect to lmtpd
># cat /tmp/m | /usr/cyrus/bin/deliver -l -a cyrus peter
> connect failed: Connection refused
> 421 4.3.0 deliver: connect failed
>
> and imapd.log reveals in both cases:
> Dec 13 14:29:50 server deliver[24093]:
> connect(/data/imap/config/socket/lmtp) failed: Connection refused
>
> but my cyrus.conf:
>
>   # at least one LMTP is required for delivery
>   lmtp          cmd="lmtpd" listen="lmtp" prefork=1
>#  lmtpunix     cmd="lmtpd" listen="/data/imap/config/socket/lmtp"
>#  prefork=0
>
>
> lmtpd is listening on 2003 and - yes - I've killed all questionable
> processes. dont know why deliver still tries to access the unix-socket.
>
> cyrus.conf should be the only place where this socket is defined ... !!??
>
> thnx,
> peter

--
 +-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-+
      Scott W. Adkins                http://www.cns.ohiou.edu/~sadkins/
   UNIX Systems Engineer                  mailto:[EMAIL PROTECTED]
        ICQ 7626282                 Work (740)593-9478 Fax (740)593-1944
 +-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-+
     CNS, HDL Center, Suite 301, Ohio University, Athens, OH 45701-2979

Reply via email to