I found the solution
if you want to use read_hash(somefile.txt)
the somefile.txt content is like
--------------------------
.xxx.com.tw -50
[EMAIL PROTECTED] +100
--------------------------
I have another question, can I use Regular Expression in somefile.txt?
I hope I can block all [EMAIL PROTECTED]
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)
any idea?
On Tue, 21 Jun 2005 15:10:03 -0400, Ronny Nussbaum wrote
> Is this what you're looking for?:
>
> @whitelist_sender_maps = read_hash("$MYHOME/white.lst");
> This defines where our white-list file is. $MYHOME is set by default
> to /var/amavis.
>
> @blacklist_sender_maps = read_hash("$MYHOME/black.lst");
> This defines where our black-list file is. $MYHOME is set by default
> to /var/amavis.
>
> -RoNNY
>
> On 6/21/05, meow <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Does somebody know how to use a black(or) white list in a separate file?
> >
> > I try to use read_hash() to import black list from a file, but I can't
see
> > amavisd use this file's information.(If it works, the test mail should be
> > add 100 points)
> >
> > Any idea?
> >
> > Below is my setting in /etc/amavisd.conf
> > ----------------------------------------------------------------------
> > @score_sender_maps= ({ # a by-recipient hash lookup table
> >
> > #SOFT-BLACKLISTING
> > # site-wide opinions about senders (the '.' matches any recipient)
> > '.' => [ # the _first_ matching sender determines the score boost
> >
> > read_hash("/var/amavis/globalblack"),
> >
> > ],
> > });
> > ----------------------------------------------------------------------
> >
> > Below is /var/amavis/globalblack content
> > ----------------------------------------------------------------------
> > {
> > '.management.ntu.edu.tw' => 100.0,
> > '.ntu.edu.tw' => 100.0,
> > },
> > ----------------------------------------------------------------------
> >
> > I also try another version of /var/amavis/globalblack
> > ----------------------------------------------------------------------
> > '.management.ntu.edu.tw' => 100.0,
> > '.ntu.edu.tw' => 100.0,
> > ----------------------------------------------------------------------
> >
> >
> > -------------------------------------------------------
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/amavis-user
> > AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> > AMaViS-HowTos:http://www.amavis.org/howto/
> >
--
林元傑
CISA, CCNA, Security+, SCTA, SCJP
台大管理學院電腦中心
[EMAIL PROTECTED]
Tel: 02-33661012
Fax:02-23697968
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/