Re: [AMaViS-user] How to use read_hash in amavisd.conf

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


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 06-22-2005
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] How to use read_hash in amavisd.conf

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/
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 09:21 PM.


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