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)
virus.byOS.NetBSD                        1      0/h    0.2 % (ContentVirusMsgs)
spam.byOS.UNKNOWN                   102016   1513/h   43.6 % (ContentSpamMsgs)
spam.byOS.Windows-2000               92873   1377/h   39.7 % (ContentSpamMsgs)
spam.byOS.Linux                      16079    238/h    6.9 % (ContentSpamMsgs)
spam.byOS.Windows-XP/2000             5705     85/h    2.4 % (ContentSpamMsgs)
spam.byOS.Solaris                     1899     28/h    0.8 % (ContentSpamMsgs)
spam.byOS.Windows-98                   681     10/h    0.3 % (ContentSpamMsgs)
spam.byOS.Windows-NT                   101      1/h    0.0 % (ContentSpamMsgs)
spam.byOS.Windows-SP3                   64      1/h    0.0 % (ContentSpamMsgs)
spam.byOS.NetCache                      51      1/h    0.0 % (ContentSpamMsgs)
spam.byOS.OpenBSD                       47      1/h    0.0 % (ContentSpamMsgs)
spam.byOS.NetBSD                        41      1/h    0.0 % (ContentSpamMsgs)
spam.byOS.HP-UX                         38      1/h    0.0 % (ContentSpamMsgs)
spam.byOS.CacheFlow                     31      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Windows-95b                   22      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Novell                        18      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Google                        16      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Windows-95                    12      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.FreeBSD                        7      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Windows-XP                     5      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.AIX                            5      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.BSD/OS                         5      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.IRIX                           3      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Tru64                          3      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.OpenVMS                        2      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.MYNETWORKS                     2      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Sony                           2      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.QNX                            2      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Eagle                          2      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.MacOS                          2      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Checkpoint                     1      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.PocketPC                       1      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Windows-2003                   1      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.Redline                        1      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.SCO                            1      0/h    0.0 % (ContentSpamMsgs)
spam.byOS.RISC                           1      0/h    0.0 % (ContentSpamMsgs)
ham.byOS.Linux                        3208     48/h   32.7 % (ContentCleanMsgs)
ham.byOS.MYNETWORKS                   1341     20/h   13.7 % (ContentCleanMsgs)
ham.byOS.UNKNOWN                       869     13/h    8.9 % (ContentCleanMsgs)
ham.byOS.Windows-2000                  839     12/h    8.6 % (ContentCleanMsgs)
ham.byOS.FreeBSD                       765     11/h    7.8 % (ContentCleanMsgs)
ham.byOS.Solaris                       471      7/h    4.8 % (ContentCleanMsgs)
ham.byOS.OpenBSD                        66      1/h    0.7 % (ContentCleanMsgs)
ham.byOS.Windows-XP                     40      1/h    0.4 % (ContentCleanMsgs)
ham.byOS.HP-UX                          25      0/h    0.3 % (ContentCleanMsgs)
ham.byOS.Windows-98                     21      0/h    0.2 % (ContentCleanMsgs)
ham.byOS.Windows-2003                   20      0/h    0.2 % (ContentCleanMsgs)
ham.byOS.Tru64                          12      0/h    0.1 % (ContentCleanMsgs)
ham.byOS.Windows-XP/2000                 6      0/h    0.1 % (ContentCleanMsgs)
ham.byOS.Novell                          3      0/h    0.0 % (ContentCleanMsgs)
ham.byOS.NetBSD                          3      0/h    0.0 % (ContentCleanMsgs)
ham.byOS.AIX                             2      0/h    0.0 % (ContentCleanMsgs)
ham.byOS.NetCache                        2      0/h    0.0 % (ContentCleanMsgs)
ham.byOS.Google                          1      0/h    0.0 % (ContentCleanMsgs)

Btw, since 2.6.0 the amavisd-agent and amavisd-nanny recognize options -c
and -w, so if you just want a single report you could use 'amavisd-agent -c 1'

  Usage: /usr/local/sbin/amavisd-agent [-c <count>] [-w <wait-interval>]


Mark

-------------------------------------------------------------------------
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/

Reply via email to