Is there a way to control the number of times that a message is attempted to be resent by looking at the message itself?
The reason this is desirable to me is as follows:
On my server some of the users are utilizing TMDA, which is a challenge-response spam prevention system. When spam arrives with a SENDER address that refuses a connection, the sending of the challenge keeps getting retried in the normal way by Courier. However, in the case of these special messages, I'd like cause the retries to abort early, and the message to be sent through a special filter which causes the faulty SENDER address (or domain) to be locally blacklisted. The rest of the outgoing email should be handled in the normal way.
I can identify these TMDA messages via a special header, and I know how to write the blacklisting filter. My question is this:
Is there any way to put this kind of processing within the message re-sending flow in Courier?
Only by writing a custom script, and using cancelmsg.
pgp00000.pgp
Description: PGP signature
