Re: 4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-02 Thread Pascal Gienger
John Alton Tamplin [EMAIL PROTECTED] wrote:

Pascal Gienger wrote:

What version of DB are you running?  Does this happen immediately or only
after it has been running a while?  On Solaris 9 with DB 4.1.24-25, we
had a problem where DB functions would eventually return ENOSPC, which
No it is not a DB problem, it IS a sieve problem:

Look at this piece of sieve code:

if header  :contains From Muchsel  {
   addflag \\Flagged;
   fileinto INBOX;
   removeflag \\Flagged;
}
It is generated by Horde Ingo. lmtpd breaks with 4.3.0 virtual memory 
exhausted. Ok the removeflag is worthless because the message is already 
in the INBOX - but it should be silently ignored.

When removing the removeflag-Statement, lmtpd will accept the mail 
normally.

Pascal
--
Pascal Gienger, Kanzleistrasse 14, D-78462 Konstanz
Postfix+SASL-AUTH+LDAP Solaris 8:   http://pgienger.de/postfix/


Re: 4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-02 Thread Rob Siemborski
On Wed, 2 Jul 2003, Pascal Gienger wrote:

 No it is not a DB problem, it IS a sieve problem:

 Look at this piece of sieve code:

 if header  :contains From Muchsel  {
 addflag \\Flagged;
 fileinto INBOX;
 removeflag \\Flagged;
 }


 It is generated by Horde Ingo. lmtpd breaks with 4.3.0 virtual memory
 exhausted. Ok the removeflag is worthless because the message is already
 in the INBOX - but it should be silently ignored.

 When removing the removeflag-Statement, lmtpd will accept the mail
 normally.

Hmmm, I can't duplicate this.  I've tried:

if header :contains From rjs3 {
addflag \\Deleted;
fileinto INBOX;
removeflag \\Deleted;
}

which behaves as I expect.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper



4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-01 Thread Pascal Gienger
I am using Cyrus IMAP 2.1.12 (Suse Linux package, no source install allowed 
here), and we see some errors from lmtpd saying Virtual memory exhausted.

ulimits are unlimited for every resource (no limit), and there are 4 
Gigabytes of swap used by 5% and 2 Gigabytes of RAM.
System is GNU/Linux 2.4.20-64GB.

Our postfix mailer tries to deliver a message to a local lmtpd (Cyrus 
system) and here is the result:

Jun 30 07:38:43 rauch postfix/lmtp[3129]: EC7FD4400088: 
to=[EMAIL PROTECTED], 
orig_to=[EMAIL PROTECTED], 
relay=/mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp], delay=142730, 
status=deferred (host /mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp] 
said: 421 4.3.0 lmtpd: Virtual memory exhausted (in reply to end of DATA 
command))

Has anybody seen this already? Which memory lmtpd claims to be exhausted?
With no process limits at all?
Pascal
--
Pascal Gienger, Kanzleistrasse 14, D-78462 Konstanz
Postfix+SASL-AUTH+LDAP Solaris 8:   http://pgienger.de/postfix/


Re: 4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-01 Thread Pascal Gienger
I investigated and found a curiosity:

That user has installed a sieve script to sort mail.
In his script he used the keyword
 keep;

to keep the mail in his INBOX.

This keep is going havoc (virtual memory exhausted).
After replacing keep with 'fileinto INBOX' all things went
well.
Is this a bug in the sieve function of lmtpd?

here the NON WORKING part:

if header :comparator i;ascii-casemap :contains From Muchsel  {
   addflag \\Flagged;
   keep;
}
This sieve code results in 4.3.0 lmtpd: Virtual memory exhausted.
here the WORKING variant:

if header :comparator i;ascii-casemap :contains From Muchsel  {
   addflag \\Flagged;
   fileinto INBOX;
}
Any comments?

Pascal


Re: 4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-01 Thread John Alton Tamplin
Pascal Gienger wrote:

I am using Cyrus IMAP 2.1.12 (Suse Linux package, no source install 
allowed here), and we see some errors from lmtpd saying Virtual 
memory exhausted.

ulimits are unlimited for every resource (no limit), and there are 4 
Gigabytes of swap used by 5% and 2 Gigabytes of RAM.
System is GNU/Linux 2.4.20-64GB.

Our postfix mailer tries to deliver a message to a local lmtpd (Cyrus 
system) and here is the result:

Jun 30 07:38:43 rauch postfix/lmtp[3129]: EC7FD4400088: 
to=[EMAIL PROTECTED], 
orig_to=[EMAIL PROTECTED], 
relay=/mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp], delay=142730, 
status=deferred (host /mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp] 
said: 421 4.3.0 lmtpd: Virtual memory exhausted (in reply to end of 
DATA command))

Has anybody seen this already? Which memory lmtpd claims to be exhausted?
With no process limits at all?
What version of DB are you running?  Does this happen immediately or 
only after it has been running a while?  On Solaris 9 with DB 4.1.24-25, 
we had a problem where DB functions would eventually return ENOSPC, 
which might be interpreted as Virtual memory exhausted.  There has 
been a patch posted to Cyrus to fix this problem, but if you can't use a 
source package you might have to downgrade to DB 4.0.14 if this is your 
problem.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931