[Pkg-aide-maintainers] Bug#418626: aide: Amavis recipe, not yet fully working

Marc Haber mh+debian-packages at zugschlus.de
Sun Apr 15 10:55:45 UTC 2007


tags #418626 confirmed
tags #418626 - patch
thanks

On Tue, Apr 10, 2007 at 10:58:00PM +0200, Tim Stoop wrote:
> I use the following custom recipe for amavis, you might want to add it
> to the aide package:
> 
> /var/run/amavis/amavisd.lock$ VarFile
> /var/lib/amavis/tmp$ VarDir
> !/var/lib/amavis/tmp/
> /var/lib/amavis/db/__db.\d{3} VarFile

I am not sure whether \d is supported here. Consider trying [0-9]
instead.

> /var/lib/amavis/db/[cache|cache-expiry|snmp|nanny]\.db$ VarFile

That would have to be
/var/lib/amavis/db/(cache|cache-expiry|snmp|nanny)\.db$ VarFile
to correctly work.

What you have written is kind of identical to
/var/lib/amavis/db/[-cahe|xpirysnm]\.db$ VarFile
and would only cover file names consisting of a single character from
the list between the brackets.

> /var/lib/amavis/.spamassassin$ VarDir
> /var/lib/amavis/.spamassassin/bayes_toks$ VarFile
> /var/lib/amavis/.spamassassin/auto-whitelist$ VarFile
> /var/lib/amavis/.spamassassin/bayes_seen$ VarFile
> 
> However, I still get the following lines daily. I have no clue as to
> why...
> 
> changed: /var/lib/amavis/db/__db.004
> changed: /var/lib/amavis/db/cache-expiry.db
> changed: /var/lib/amavis/db/__db.002
> changed: /var/lib/amavis/db/cache.db
> changed: /var/lib/amavis/db/__db.003
> changed: /var/lib/amavis/db/snmp.db
> changed: /var/lib/amavis/db/nanny.db
> 
> They should be caught by the above recipe, right?

Try the following:

/var/run/amavis/amavisd.lock$ VarFile
/var/lib/amavis/tmp$ VarDir
!/var/lib/amavis/tmp/
/var/lib/amavis/db/__db.[0-9]{3} VarFile
/var/lib/amavis/db/(cache(-expiry)?|snmp|nanny)\.db$ VarFile
/var/lib/amavis/.spamassassin$ VarDir
/var/lib/amavis/.spamassassin/bayes_(toks|seen)$ VarFile
/var/lib/amavis/.spamassassin/auto-whitelist$ VarFile

I'd like to have the !/var/lib/amavis/tmp/ rule to go and replaced by
VarFile/VarDir rules for the file name schemes that amavis uses.

Which amavis package (amavis-ng? amavisd-new? amavis? amavis-perl?)
are we talking about anyway?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835




More information about the Pkg-aide-maintainers mailing list