[Mimedefang] what are the different headers possible?

Joseph Brennan brennan at columbia.edu
Wed Apr 20 10:52:08 EDT 2011



--On Wednesday, April 20, 2011 16:26 +0200 fakessh <fakessh at fakessh.eu> 
wrote:

> i wrote a minimal perl script without succes
>
> exemple a perl script
> my  $gi = Geo::IP->open("/usr/share/GeoIP/GeoIP.dat", GEOIP_STANDARD);
> my  ($country, $region) = $gi->region_by_name($Helo);
>  action_add_header("X-Header-Country", "$country");
>  action_add_header("X-Header-Region", "$region");
>
> can you tell me how to make it work. headers are added but empty


I'm not familiar with Geo::IP, but you seem to be getting no output
from the function. If it expects an IP address, use $RelayAddr.

$Helo is whatever string the remote host says, and sometimes it is
garbage. Maybe you just had one of those cases.

Joseph Brennan
Columbia University Information Technology





More information about the MIMEDefang mailing list