On fre 02 okt 2009 22:57:03 CEST, Michael Scheidell wrote
> do this in local.cf:
> add_header all Relay-Country _RELAYCOUNTRY_

this only works for spamd, not amavisd

> make sure this is in init.pre:
> loadplugin Mail::SpamAssassin::Plugin::RelayCountry
>
> use stuff like this in local.cf:
>
> score RELAY_COUNTRY_KR 5
> score RELAY_COUNTRY_CN 5
> score RELAY_COUNTRY_HK 5

>> Then I added the following lines to amavisd-custom.conf:

keep this, here is how i do:

   my($rly_country) = $msginfo->supplementary_info('RELAYCOUNTRY');
   if (defined $rly_country && $rly_country ne '') {
     my($hdr_edits) = $msginfo->header_edits;
     my($all_local) = !grep { !$_->recip_is_local }  
@{$msginfo->per_recip_data};
     $hdr_edits->add_header('X-Relay-Countries', $rly_country) if $all_local;
   }



-- 
xpoint


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to