Bluehost.com Web Hosting $6.95

Re: [AMaViS-user] bypass negate and read domains from a local file

This is a discussion on Re: [AMaViS-user] bypass negate and read domains from a local file within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Daniel, > > Do I've to restart amavis everytime I update the "local_domain" file? > > no, ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-24-2005
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] bypass negate and read domains from a local file

Daniel,

> > Do I've to restart amavis everytime I update the "local_domain" file?

>
> no, it's not necassary to restart amavisd if you update your
> "local_domain" file. If an email comes in then amavisd reads the
> content of the file. A restart is only needed if you rename the file
> and change the settings in amavisd.conf. You can add or delete
> entries "on the fly".


This is not so. The read_hash() routine reads the file into a memory-based
associative array (hash), and does it at the time when it is called,
which is at the time amavisd.conf is being processes, which happens
only at the initial startup.

To make amavisd consult external database for every mail being processed,
thus allowing for dynamically updated lookup tables, one has to use
a SQL or LDAP lookup table, or do a perl 'tie' of a hash variable
to a database (e.g. cdb or bdb).

For smaller sites that still like to avoid the need for restarts
at lookup table changes, but don't need a full blown SQL server,
I suggest a SQLite -based SQL database, which is contained on a
single file on the same host (no client/server model).
A dataset name entry could look like:

@lookup_sql_dsn =
(["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite",'','']);

Mark


-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0