On Wed, 28 Jan 2004, Rick Mallett wrote:
> sub filter_recipient() {
> my ($recip, $sender, $ip, $hostname, $first, $helo, @rcpt) = @_;
>
> return ('ACCEPT_AND_NO_MORE_FILTERING','ok') if
> lc($recip) =~ /<[EMAIL PROTECTED]>?/;
>
> return ('CONTINUE', "ok");
> }
That will work, but because of a limitation in Milter, the message
won't be filtered even if there's more than one recipient. Thus, if
there are two recipients: [EMAIL PROTECTED] and [EMAIL PROTECTED],
then returning ACCEPT_AND_NO_MORE_FILTERING for honeypot will *also* not
filter the mail for windoze_user.
The "correct" way to do this is to stream by recipient and then make
your decisions in filter_begin/filter/filter_end. This has downsides too,
notably the burden of generating bounce messages if a message that was
streamed is subsequently rejected.
Regards,
David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang