[Mimedefang] Restrictions on the use of stream_by_recipient()
Robert J. Clark
clark at exiter.com
Sun Dec 12 20:05:38 EST 2004
Hi,
I want to start customizing the spam and virus filtering behaviour for
each individual recipient and to do that I have to use
stream_by_recipient(). However, after reading the docs and scanning
the source code, I have a couple of questions and would appreciate any
thoughts or ideas people have on the following:
- The docs say that stream_by_recipient() must be called at the very
beginning of filter_begin(). I have some checks that could
potentially cause the email to be rejected and I would like to to
that before stream_by_recipient() so that no bounce message is
created.
Can I do these checks and bounce the message (call
action_tempfail() or action_discard() and return) before I call
stream_by_recipient()?
Is there anything I need to watch out for when I do this?
- Secondly, I would like to preserve the IP address of the connecting
host even through a call to stream_by_recipient(). I noticed that
there is support for doing the when going from a secondary MX to a
primary, but I did not think that headers could be modified before a
call to stream_by_recipient(). Is this correct and is there any
other way to do what I want?
Thanks for any suggestions or info.
- Rob
More information about the MIMEDefang
mailing list