[Mimedefang] Where to put various tests?
David F. Skoll
dfs at roaringpenguin.com
Tue Sep 30 19:42:09 EDT 2008
Nigel Allen wrote:
> I need to do the following and am not sure where within the filter I
> should put the logic.
> If the sender is using an address from a given domain (internal) I need
> to extract a special x-header and see if if it's contents a) occurs in a
> text file or b) occurs as a folder in a given location.
> If neither of these is true I need to reject the message with a reason
> for rejection and get them to re-send.
> Should I do this in filter_sender or where?
Anything that needs headers or body must go in filter_begin, filter or
filter_end. I typically do this kind of processing in filter_begin.
(You can't do it in filter_sender because you don't have headers yet.)
Regards,
David.
More information about the MIMEDefang
mailing list