List Info

Thread: hash tables




hash tables
country flaguser name
United States
2007-12-04 15:02:39

Are the hash tables that amavsd-new uses db4 hashes? if not
what are
they?  I need to write an interface for
white/blacklisting. 
the
mysql documentation is largely incoherent unless you have a
degree in
CS.

thansk in advance


-- 
Curtis
Maurand
Head Honcho
Xyonet Hosting Services
Biddeford, ME
04005
mailto:curtismaurand.com
mailto:cmaurandxyonet.com



Are the hash tables that amavsd-new uses db4 hashes? if not
what are
they?  I need to write an interface for white/blacklisting. 
the
mysql documentation is largely incoherent unless you have a
degree in
CS.

thansk in advance


-- 
Curtis
Maurand
Head Honcho
Xyonet Hosting Services
Biddeford, ME
04005
mailto:curtismaurand.com
mailto:cmaurandxyonet.com

------------------------------------------------------------
-------------
SF.Net email is sponsored by: The Future of Linux Business
White Paper
from Novell.  From the desktop to the data center, Linux is
going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
Re: hash tables
country flaguser name
Slovenia
2007-12-07 20:15:55
Curtis,

> Are the hash tables that amavsd-new uses db4 hashes?
> if not what are they?

They are Perl associative arrays, colloquially known as
hashes.

It is possible to use a Perl 'tie' mechanism to associate
an associative array variable with an external database,
such as db4. It's beeen tried and known to work, although
it is practically never used. If an external database for
lookups is needed, a preferred solution is SQL (or LDAP).
For a small site a good solution for SQL lookups is
a SQLite database, no SQL server is needed.

> I need to write an interface for white/blacklisting.  
> the mysql documentation is largely incoherent unless
> you have a degree in CS.

I agree the SQL documentation could use a face lift.

You'd need a record in table 'users' for each recipient
(or a recipient domain) which needs its own white/blacklist
entries. A policy id could point to some policy record with
all
fields NULL or missing, if it is not needed for other
purposes.

The sender addresses go to table 'mailaddr'. Only those
sender addresses (or sender domains) need to be stored
there
which are needed in white/black-list entries.

Lastly, the table 'wblist' creates associations between
senders and recipients, either blacklisting or whitelisting
some sender for some recipient.

  Mark

------------------------------------------------------------
-------------
SF.Net email is sponsored by:
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
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

perl-File-Temp problem
country flaguser name
Canada
2007-12-08 20:41:53
Where do I find an RPM for perl-File-Temp for Centos 5 that
will work? At some 
point Perl got upgraded, and perl-File-Temp stopped working,
killing 
amavisd-new. I've tried different versions, even from a
src.rpm, but they 
won't install due to a conflict with Perl.

------------------------------------------------------------
-------------
SF.Net email is sponsored by:
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
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: perl-File-Temp problem
country flaguser name
Slovenia
2007-12-18 11:08:59
FTNX,

> Where do I find an RPM for perl-File-Temp for Centos 5
that will work? At
> some point Perl got upgraded, and perl-File-Temp
stopped working, killing
> amavisd-new. I've tried different versions, even from a
src.rpm, but they
> won't install due to a conflict with Perl.

Don't know about rpm, but File::Temp should be part of base
modules
with Perl 5.8.8 (probably even with 5.6.2). Or you could try
CPAN:
  http://search.
cpan.org/dist/File-Temp/

Mark

------------------------------------------------------------
-------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )