[Mimedefang] all_spam_to question

David F. Skoll dfs at roaringpenguin.com
Sat Jan 24 21:03:07 EST 2004


I see the problem.

If you are using stream_by_recipient(), you cannot [*] do
recipient-specific filtering in filter_recipient(); as you see,
returning ACCEPT_AND_NO_MORE_FILTERING affects everyone.

Instead, defer your filtering decisions to filter_begin/filter/filter_end
and check $Recipients[0] to see who the recipient is.

Regards,

David.

[*] If you are clever, you can notice that the relay host is 127.0.0.1
for remailed messages and take decisions in filter_recipient(), but
it's easier and safer to defer all filtering until
filter_begin/filter/filter_end if you are doing streaming.



More information about the MIMEDefang mailing list