This is a discussion on Re: [AMaViS-user] How to use read_hash in amavisd.conf within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; meow, > I have another question, can I use Regular Expression in somefile.txt? At the moment the only available ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
meow,
> I have another question, can I use Regular Expression in somefile.txt? At the moment the only available routines to read a lookup table from a file are read_hash and read_array. Reading regexp table form a file could be accomplished by a couple of lines of Perl code in amavisd.conf, but there is no ready-made routine. > I hope I can block all xxx@abc.com.tw > but if I set ".abc.com.tw" in somefile.txt, it will block the domain > extended from abc.com.tw( ex: it will block cc.abc.com.tw too) So why not put abc.com.tw into a file instead of .abc.com.tw (note the leading dot, which implies subdomains). Or for a finer control, one can put this in the file: cc.abc.com.tw 0 # don't block this subdomain abc.com.tw 0 # don't block this domain ..abc.com.tw 100 # do block all remaining subdomains The concept of hash lookups and its order of evaluation is explained in README.lookups. Mark ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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/ |