Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2009 20:15:52 -0400
From:      Eric Sheesley <esheesle@shadowlair.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        Per olof Ljungmark <peo@intersonic.se>, freebsd-ports@freebsd.org
Subject:   Re: amavisd-new crashing
Message-ID:  <4AA996B8.3030901@shadowlair.com>
In-Reply-To: <B77DA1FD-3132-4924-9B19-EDF6E973CAD7@mac.com>
References:  <20090910134721.128139atq6oiibac@webmail.shadowlair.com> <4AA963F5.3000202@intersonic.se> <4AA98A72.5060809@shadowlair.com> <B77DA1FD-3132-4924-9B19-EDF6E973CAD7@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Actually, the directory is set to vscan as it should be(amavis runs as
that) and that user has rw privs.  If you notice below, the pid of the
processes is different between the area where content-type is mentioned
and the bdb is referenced.  For some reason there is a very brutal crash
before any real checks are run.

I've rebuilt amavis and all dependencies using portmanager with no
change.  Any other thoughts or methods of debugging.  One of the emails
causing this was sent by a friend, so not even malicious, just causing a
crash.

Chuck Swiger wrote:
> Hi--
> 
> On Sep 10, 2009, at 4:23 PM, Eric Sheesley wrote:
>> Sep 10 19:00:08 rogue amavis[77712]: (77712-01) ESMTP::10024
>> /var/amavis/tmp/amavis-20090910T190007-77712: <fromaddr@fromaddr.com> ->
>> <myaddr@shadowlair.com> SIZE=7072 BODY=7BIT Received: from
>> rogue.shadowlair.com ([127.0.0.1]) by localhost (rogue.shadowlair.com
>> [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for
>> <esheesle@shadowlair.com>; Thu, 10 Sep 2009 19:00:07 -0400 (EDT)
>> Sep 10 19:00:08 rogue amavis[77712]: (77712-01) Checking: SukXX+6vDV2U
>> [65.55.88.13] <fromaddr@fromaddr.com> -> <myaddr@shadowlair.com>
>> Sep 10 19:00:08 rogue amavis[77712]: (77712-01) p001 1 Content-Type:
>> text/plain, size: 3607 B, name:
>> Sep 10 19:00:08 rogue postfix/smtpd[77645]: warning: lost connection
>> with proxy 127.0.0.1:10024
>> Sep 10 19:00:08 rogue amavis[78041]: TIMING [total 5 ms] - bdb-open: 5
>> (100%)100, rundown: 0 (0%)100
> 
> It sounds like amavisd can't open a BerkeleyDB database (probably the
> nanny/cache/snmp stuff).  Make sure that /var/amavis/db exists and is
> writable by the amavisd or vscan user, whatever you are running amavisd as:
> 
> # ls -l /var/amavis/db
> total 556
> -rw-r-----  1 vscan  vscan   24576 Sep  9 19:01 __db.001
> -rw-r-----  1 vscan  vscan  131072 Sep  9 18:44 __db.002
> -rw-r-----  1 vscan  vscan  270336 Sep 10 11:43 __db.003
> -rw-r-----  1 vscan  vscan  360448 Sep  9 18:44 __db.004
> -rw-r-----  1 vscan  vscan    4096 Sep  9 14:20 cache-expiry.db
> -rw-r-----  1 vscan  vscan   90112 Sep 10 14:01 cache.db
> -rw-r-----  1 vscan  vscan   12288 Sep  9 14:20 nanny.db
> -rw-r-----  1 vscan  vscan   12288 Sep  9 14:20 snmp.db
> 
> Regards,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AA996B8.3030901>