2008/6/23 Mark Martinec <[EMAIL PROTECTED]>:
> Juan,
>
>> > BDB no env: No such file or directory No such file or directory at
>> > /usr/local/sbin/amavisd-agent line 150.
>> > exited
>>
>> The error is due to amavisd ignoring my $db_home setting in
>> amavisd.conf. It also ignores the command line '-D' switch.
>>
>> When hardcoding amavisd-agent then it runs fine. Bug?
>>
>> I installed the amavisd-new-2.5.4 binary by source.
>
> Indeed the $db_home is hardcoded into amavisd-agent
> (and into amavisd-nanny). These are two simple utilities,
> and are oblivious of the amavisd.conf file. If you change
> $MYHOME or $db_home in amavisd.conf from a default value,
> you'd need to change $db_home also in amavisd-agent and in
> amavisd-nanny. It's a bit ugly, but I didn't want to drag
> the complexity of config files into both utilities.
>
> The defaults on a distributed package do match however:
>
> amavisd:
> $MYHOME = '/var/amavis';
> $db_home = "$MYHOME/db";
>
> amavisd-agent:
> my($db_home) =
> defined $ENV{'AMAVISD_DB_HOME'} ? $ENV{'AMAVISD_DB_HOME'}
> : '/var/amavis/db';
>
> The AMAVISD_DB_HOME environment variable as introduced
> by 2.6.0 into amavisd-agent and into amavisd-nanny offers
> some flexibility, so that one does not need to directly
> modify both utilities if $db_home is not at its default.
>
>
>> Not sure what I'm supposed to be seeing here.
>>
>> My mail log shows
>>
>> amavis[9890]: (09890-01) OS_fingerprint: 72.0.206.213 -1 OpenBSD
>> 3.0-3.9 (up: 4670 hrs), (distance 8, link: unknown-1464)
>>
>> and amavisd-agent output is a repetition of [...]
>
> Leave amavisd running for a while for a couple of spam messages
> to be processed. Then, by the end of each repeated block
> written by amavisd-agent there should be a section like:
>
> virus.byOS.Windows-2000 334 5/h 74.6 %
> (ContentVirusMsgs)
> virus.byOS.Windows-XP 59 1/h 13.2 %
> (ContentVirusMsgs)
> virus.byOS.Windows-XP/2000 26 0/h 5.8 %
> (ContentVirusMsgs)
> virus.byOS.UNKNOWN 22 0/h 4.9 %
> (ContentVirusMsgs)
> virus.byOS.Windows-98 6 0/h 1.3 %
> (ContentVirusMsgs)
[...]
Thank you Marc. So it's as easy as
$ sudo amavisd-agent -c 1
?
This will give me a summary whose time interval is from the creation
time of /var/amavisd/db/* to the present? What happens when
amavisd-new restarts? Is there that type of management involved with
using amavisd-agent?
/juan
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/