Ricardo,
>> Trying to figure out how to add something like score_sender_maps but
>> this is to block or soft outbound email recipient addresses...
>> IE something like the following that I can add in an file:
>> [EMAIL PROTECTED] +15
>> Or otherwise, is the only way to do it via
>> per_recip_blacklist_sender_lookup_tables
>> If so, how would I go about redoing it to be able to read the content of
>> a file (like above ?)
>
> Still need some help... :( Other than figuring out that I could add
> "blacklist_to [EMAIL PROTECTED]" to local.cf, this increases the
> outbound score with +10 only.
> What would be the procedure to do this from within amavisd, and if not,
> how would I adjust the score within spamassassin ? Again, ideally is to
> do something like sender_scores_sitewide
Sorry for a late reply.
You are on the right track, the @score_sender_maps is there to assign
score points based on a sender and/or based on a recipient address
(it is a two-level lookup table, the outer uses recipient as a key,
the inner lookup table uses sender as a key). It applies to any mail
regardless of being inbound or outbound.
So if the '[EMAIL PROTECTED]' in your example is a recipient
address, your question boils down to how to construct a two-layer
structure from data read from a file, where file contains a list
of recipients with scores, and a sender is always a '.' (=any).
As this data structure is turned inside-out from what existing read_hash
and read_array can provide, it requires a bit of code in amavisd.conf.
Instead of doing it all from scratch one can still take advantage
of existing read_hash, and just convert the resulting hash into
a two-layer structure as required by @score_sender_maps.
Something like the following can go into amavisd.conf
after some other assignments (if any) to @score_sender_maps:
{ my($hr) = read_hash("/etc/amavis-score_recip.txt");
my($outer) = {};
while (my($recip,$score) = each %$hr) { $outer->{$recip} = [{'.'=>$score}] }
push(@score_sender_maps, $outer);
}
Mark
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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/