Re: [AMaViS-user] Using a pipe in a lookup to get local domains?

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 ...


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 10-16-2007
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Using a pipe in a lookup to get local domains?

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/
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 06:28 PM.


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