This is a discussion on Re: [AMaViS-user] Using a pipe in a lookup to get local domains? within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Mark Edwards, > Is there a way I can construct a lookup that perhaps greps a file? > There are ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Mark Edwards,
> Is there a way I can construct a lookup that perhaps greps a file? > There are files that contain the information I need, but in > completely the wrong format. Greping for every lookup, or greping once at startup? If once on startup suffices, you can place some perl code into amavisd.conf to read through a file, extract information and construct an associative array, which amavisd can then use for lookups. If a more dynamic approch is needed, perhaps you can script updating of a small SQLite database, which amavisd can use for lookups. Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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/ |