Michael wrote:
> Hi,
> What if I want to use ENVELOPE SENDER SOFT-WHITELISTING, but want to
> use the read_hash() function for my recipients list. How do I go about
> it in the amavisd.conf? I want the effect to be like the ff, a reverse
> of sender_scores_sitewide. I want a list of recipients, wherein mail
> from any sender gets a -5.0 score.
> @score_sender_maps = ({ '[EMAIL PROTECTED]' => [ '.' => -5.0],
> '[EMAIL PROTECTED]' => [ '.' => -5.0]})
> Will this work?
> @score_sender_maps =( { [read_hash('/var/amavis/whitelist_rcpt')] => [
'.' =>> -5.0] } );
> with whitelist_rcpt like:
> [EMAIL PROTECTED] anything
> [EMAIL PROTECTED] anything
I'm not fluent enough in the mechanisms involved here to be able to
tell you why it does not work, but it does not. If all you want is to
keep amavisd.conf clean, you could move this to a separate file:
use strict;
@score_sender_maps = ({
'[EMAIL PROTECTED]' => [{'.' => -5.0}],
'[EMAIL PROTECTED]' => [{'.' => -5.0}],
});
return 1;
and either follow the instructions in the section
"Want to execute additional configuration files from some directory?"
at the bottom of amavisd.conf-sample, or this will also work:
require ("/var/amavis/extra_config_file");
Notice the curly braces I added. If you are trying to read in the list
of users from a file that also serves some other purpose, I'm not
seeing a way to do that.
Gary V
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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/