[Mimedefang] filter_recipient problem (bug?)

David F. Skoll dfs at roaringpenguin.com
Wed Aug 11 07:48:51 EDT 2004


On Wed, 11 Aug 2004, Egor Moskvichev wrote:

> Sometimes filter_recipient sub does not return recipient email address and
> sender ip-address.

> sub filter_recipient () {
>     my ($recipient, $sender, $ip, $hostname, $first, $helo, $rcpt_mailer,
> $rcpt_host, $rcpt_addr) = @_;
>     $from_host = $ip;
>     $to_recipient = $recipient;
>     return ('CONTINUE', "ok");
> };

Read the mimedefang-filter man page.  See the section
GLOBAL VARIABLE LIFETIME.  What you are trying to do will not work.
You also don't need to do it that way, because all the information you need
is available in filter_begin anyway.

--
David.



More information about the MIMEDefang mailing list