Re: huge mail hangs lmtpd (solved)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

thanks for the help. ldd showed thet the rcpe lib was not used.
After a "make clean" and "make" we found that the rcpe lib is now used
and the huge mail gets deliverd without any problems.

will the fastmail-patch be included in the official cyrus version?

Regards

     Michael Menge


Quoting Robert Mueller <robm@xxxxxxxxxxx>:


I had again problems with an huge mail and lmtpd. I believe this is
caused by the sieve regex filtering of the huge mail.

The lmtp uses about twice the size of the email of mem and all the
cpu-time
it can get. Then postfix gets a time out, but the lmtpd still keeps
running
and does not finish its work. At the next delivery attemt from postfix a
new
lmtpd gets huge and takes as much cpu time it can get, while the first
lmtp is still running and so on.

I'd double check that it's a regex issue. When you find a runaway lmtpd
process, use gdb to attach to it and get a stack backtrace.

We run cyrus 2.3.8 and postfix 2.2.9 on a SLES10 system (pcre-6.4)
I tried the rcpe-patch from fastmail to solve this problem, but
delivering the
same mail to the patched cyrus still showed the same behavior. Has
anyone else had this problem and had success with the patch from
fastmail?

The patch we created solved a similar but different problem. Basically I
saw certain emails with large headers interact with certain regexps and
cause the lmtpd process to grow to > 2G of memory and core dump.

So two things to do:
1. Use gdb to get a stack backtrace to confirm that it is a problem
inside a regexp
2. Double check that it actually is using the pcre library (check the
output of running ./configure to see that it actually finds the pcre
libraries on your system).

Rob

----------
robm@xxxxxxxxxxx
Sign up at http://fastmail.fm for fast, ad free, IMAP accessible email

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




--------------------------------------------------------------------------------
M.Menge                                 Tel.: (49) 7071/29-70316
Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail: michael.menge@xxxxxxxxxxxxxxxxxxxx
Waechterstrasse 76
72074 Tuebingen

Attachment: smime.p7s
Description: S/MIME krytographische Unterschrift

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux