I found a few posts about adding "custom" headers from SpamAssassin back through amavisd-new, and Mark's posts indicated a way to include the particular element that we're needing, that being X-Relay-Countries.
Here's a snippet from the posting: -------------start------------------ A quick and dirty patch: (disregarding multi-recipient mail where some recipients are local but others are not, and disregarding caching): --- amavisd~ Wed Aug 23 21:49:52 2006 +++ amavisd Mon Sep 11 15:20:43 2006 @@ -15263,2 +15263,7 @@ # $hdr_edits->add_header('X-TESTING',$trusted); + my($all_local) = !grep { !lookup(0,$_,@{ca('local_domains_maps')}) } + @{$msginfo->recips}; + my($rly_country) = $per_msg_status->get_tag('RELAYCOUNTRY'); + $hdr_edits->add_header('X-Relay-Countries',$rly_country) + if $rly_country ne '' && $all_local; -------------------end-------------- It's definitely based on an older version of amavisd, as this patch goes into a really strange place in the current code. I found the spot in the current code where I *think* this should go, but can't get it to fit in and work without throwing errors at startup. Are there any better ways to to this now, and if not, could someone point me towards where/how to patch this code in? Thanks! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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/