[Mimedefang] filter_recipient
Michael Lang
michi+mimedefang at relay3.jackal-net.at
Fri Nov 12 03:55:24 EST 2004
On Thu, 2004-11-11 at 17:08, scohen wrote:
> 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) = @_;
>
what excatly are you trying to do ? if you already have
127.0.0.1 REJECT
in your /etc/mail/access file your mail should never reach the filter :)
maybe you should read mimedefang.pl to get the correct Names,
$RelayAddr = "";
$RealRelayAddr = "";
$RelayHostname = "";
$RealRelayHostname = "";
Kind regards
Michael Lang
>
> Thanks for the help,
>
> Steve Cohen
>
> _______________________________________________
> Visit http://www.mimedefang.org and http://www.canit.ca
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
--
Michael Lang <michi+mimedefang at relay3.jackal-net.at>
More information about the MIMEDefang
mailing list