lmtpd gets stuck when started under load

Sebastian Hagedorn Hagedorn at uni-koeln.de
Thu Nov 14 12:04:18 EST 2002


--On Thursday, November 14, 2002 10:44:27 -0500 Rob Siemborski 
<rjs3 at andrew.cmu.edu> wrote:

> On Thu, 14 Nov 2002, Sebastian Hagedorn wrote:
>
>> Anyway, we are also running sendmail 8.12.6 with the cyrusv2 mailer. All
>> seems to be fine if we launch cyrus-imapd first and sendmail second.
>> However, if we stop cyrus-imapd for whatever reason without stopping
>> sendmail first, we end up in a situation where the lmtpd gets stuck upon
>> a restart of cyrus-imapd. To be precise, it doesn't accept connections
>> from sendmail and if we strace it all we see is:
>>
>> accept(4,
>>
>> That's it. The workaround then is to stop both sendmail and cyrus-imapd
>> and to wait for several minutes. After that, if we start the processes
>> in the right order, everything is fine again.
>>
>> Is this behavior to be expected or is it a bug?
>
> I'd call it a bug offhand, but there are possibly other things going on.
>
> Do all the previous lmtpds die off before you restart cyrus?

Yes, they do.

> Can you
> make a connection to the new lmtpd socket manualy (if it's a unix socket,
> you may want to try sock, from
> ftp://atrey.karlin.mff.cuni.cz/pub/local/mj/linux/sock-*.tar.gz).

I used socat instead:

socat STDIN UNIX-CONNECT:/var/lib/imap/socket/lmtp
220 cyrus.rrz.uni-koeln.de LMTP Cyrus v2.1.9-Invoca-RPM-2.1.9-10 ready

I found that (at least this time) I *could* connect to the socket. Then it 
dawned on me: sendmail didn't even try to deliver to localhost because we 
are using persistent hoststatus information!

A "rm -f /var/spool/mqueue/.hoststat/localhost" got rid of that problem.

So at least *this* case was an instance of d'oh!

--On Thursday, November 14, 2002 12:38:54 -0400 Patrick Boutilier 
<boutilpj at ednet.ns.ca> wrote:

> Try duplicate.db = skiplist
>
>
> Solved all of my lmtpd hanging problems.

I'll keep that in mind in case of further problems.

Thanks for the help, Sebastian Hagedorn
--
Sebastian Hagedorn M.A. - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20021114/6a3400a6/attachment.bin


More information about the Info-cyrus mailing list