You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Todd Schuldt <ts...@ised.org> on 2004/04/07 21:18:02 UTC
AWLfile handles
If I understand this correctly:
SA 2.63 uses these 2 files for AWL data storage for system/domain rules
auto-whitelist.dir
auto-whitelist.pag
and the other 2 files in this directory were from 2.55?:
auto-whitelist
auto-whitelist.db
Thanks in advance
Todd
Re: AWLfile handles
Posted by Kris Deugau <kd...@webhart.net>.
Todd Schuldt wrote:
> If I understand this correctly:
Nope. <g>
> SA 2.63 uses these 2 files for AWL data storage for system/domain
> rules
> auto-whitelist.dir
> auto-whitelist.pag
With a stock Debian install, and SA from backports.org, these will be
generated for the AWL...
(file should probably say "GNU dbm 1.x or ndbm database, little endian"
for these IIRC)
> and the other 2 files in this directory were from 2.55?:
> auto-whitelist
This should show up on a RH8/9, Fedora, RHEL/WBEL or similar systems,
and possibly on Debian unstable as well. YMMV, I'm just guessing a
little as I haven't run SA on any of them myself (yet).
(file should probably say "Berkeley DB (Hash, version 7, native
byte-order)")
> auto-whitelist.db
This showed up on RH7.3 with several versions of the BerkeleyDB
libraries.
(file should probably say "Berkeley DB (Hash, version 5, native
byte-order)")
The type of file, and its extension (if any), depends on which of the
types of database file the "AnyDBM" tied hash type ends up referring to.
On a stock Debian stable install, this will typically be GDBM ("GNU dbm
1.x or ndbm database, little endian"). It should generate two files,
.dir and .pag.
On RH8/9/EL, Fedora, or the RHEL-derived White Box (and any other distro
with similar packages and packaging) I *think* this now defaults to
DB_File with db4 (the "latest" BerkeleyDB from Sleepycat Software). It
should generate one file with no extension.
On RH7.3, the default for AnyDBM is NDBM with db3 and some internal
hackery that causes it to add the .db file extension.
Are you confused yet? <g>
In any case, IIRC the SA developers are going to "force" use of DB_File
for AWL instead of continuing to use AnyDBM as a wrapper around whatever
the local Perl provides as the "default" file type for a tied hash.
In short, it's a Perl semi-internals thing, which varies from distro to
distro and may vary system-to-system depending on local policies. On
the filter server I recently (finally!) upgraded, for instance, it's a
stock Debian stable install, with a backported SA... but I've installed
a "proper" DB_File and its requirements, and modified SA so that it uses
DB_File for the AWL instead of whatever comes up as default.
-kgd
(Just noticed that didn't make much sense even to me. :/ )
--
"Sendmail administration is not black magic. There are legitimate
technical reasons why it requires the sacrificing of a live chicken."
- Unknown