On 9/6/05, Mike Cisar <[EMAIL PROTECTED]> wrote:
> Amavis setup was working just fine for about a week after switching from
> amavis-milter to Petr's amavisd-milter, then  earlier today all of a sudden
> I noticed no mail was coming in, look in the logs and I see this...
> 
> Sep  6 00:53:10 stage2 amavisd-milter[10209]: j867qwKD010376: mlfi_eom:
> could not read from amavisd socket /var/amavis/amavisd.sock: Cannot allocate
> memory
> 
> Stopped and restarted amavisd and amavisd-milter, processed 2 or 3 messages
> and died again.  Restarted again and sendmail and spamassassin as well.
> Again processed a couple messages and died.  Restarted the server
> completely... was up for a whopping 2 minutes before erroring out again.
> Both amavis and the milter both seem to be "happy" on their own going
> through their processing cycles for each mail the comes in, and dying at the
> same spot each time... so it's not like one or the other is dying
> completely.
> 
> Not sure whether this is a milter issue or an amavis issue and even less
> sure why its an "all of a sudden issue", so I'm crossposting to both
> lists... anyone have any ideas?  I'm going to try feeding the machine an
> extra stick of memory in the morning, admittedly it is a bit shy on RAM...
> however it has been shy on ram for months, and it has plenty of (unused)
> swap, so given things have been working fine for a week I highly doubt that
> it is lack of RAM.

It's confusing use of ENOMEM in amavisd_response() in amavisd.c.
It mean that response from amavisd-new is longer than MAXAMABUF which
is defined in amavisd-milter.h to 1024.
 
You can change MAXAMABUF to bigger number or try patch form last post to
http://sourceforge.net/mailarchive/forum.php?thread_id=7708801&forum_id=45237
which prints amavisd-new response line to syslog. Please send me the log.

P.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to