Hello *,
  in my @score_sender_maps I have:

@score_sender_maps = ({
    '.' => [
          read_hash("/var/amavis/maps/sender_scores_sitewide")
            ]
    });

and it's ok for sitewide sender score.

Is it possible to load a "full" @score_sender_maps, with domain
separation, from one (or a set of) files?
In other words I would like to dynamically load something like
@score_sender_maps = ( {
  'domain1.net' => [ read_hash("/var/amavis/maps/sender_scores_domain1") ],
  'domain2.net' => [ read_hash("/var/amavis/maps/sender_scores_domain2") ],
...
});
without having prior knowledge of domains to "use".

alternatively, can I use something like

$domain_score_folder_list=`cd /var/amavis/maps/sender_scores_by_domain ; ls`;
@domain_score_files = split(/\n/, $domain_score_folder_list);
foreach $dom_file (@domain_score_files){
  $score_sender_maps{$dom_file} => [
read_hash("/var/amavis/maps/sender_scores_by_domain/$dom_file") ];
}

otherwise, is there any better solution?

thanks,
-- 
Stefano Sasso
http://stefano.dscnet.org/

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to