[Mimedefang] filter_recipient

scohen scohen at scohen.mysticjj.com
Thu Nov 11 11:08:12 EST 2004


I wrote a subroutine using filter_recipient to whitelist. It reads
/etc/mail/access, looks for OK or RELAY, and whitelists those entries. It
works for $sender and $recipient but not for $rcpt_host. Using md_syslog I found
that while I am getting values for $recipient, $sender, $ip, $hostname,
$first, and $helo, I am not getting vaulues for $rcpt_mailer $rcpt_host or
$rcpt_address.

Nov 11 08:45:55 open1 mimedefang.pl[29791]: $rcpt_host is ?
Nov 11 08:45:55 open1 mimedefang.pl[29791]: $rcpt_addr is ?
Nov 11 08:45:55 open1 mimedefang.pl[29791]: $rcpt_mailer is ?

I was wondering why this could be? I am assigning the variables just like
the mimedefang-filter suggests:

sub filter_recipient {
     my ($recipient, $sender, $ip, $hostname, $first, $helo,
         $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;


Thanks for the help,

Steve Cohen




More information about the MIMEDefang mailing list