[Mimedefang] stream_by_* placement question

David F. Skoll dfs at roaringpenguin.com
Tue Mar 9 09:31:54 EST 2004


On Tue, 9 Mar 2004, Steffen Kaiser wrote:

> Q: The current implementation of stream_by_domain completely discards the
> current instance of the mail and generates a "resend" mail for each
> domain. Can I keep some recipients left in the current instance?

Yes, if you do the book-keeping carefully.

> S: The current stream_by_domain's doc explicitly states that one should
> call the function "early" in filter_begin.
> Q: Are there side effects -- other than sending the _completely_ unmodifed
> mail -- when to resend a mail later, say in filter() or filter_end()?

It wastes processing time -- the message gets filtered twice.

> I also wonder if it is possible to keep certain information of resend
> messages, e.g. in a DB_File; for instance to bypass the virus scan and use
> the SpamAssassin values computed in the primary instance of MIMEDefang
> already.

Yes, but I would recommend using as a key something the sender has no
control over, such as the Sendmail queue identifier of the original
message.

Regards,

David.



More information about the MIMEDefang mailing list