[Mimedefang] return smtp reject to remote server but continue to deliver locally?

David F. Skoll dfs at roaringpenguin.com
Fri Nov 7 12:57:12 EST 2003


Chris F wrote:
> Here's what I want to do...

> if (spam) then
>   return smtp reject to remote server
> end
> deliver mail normally

> The key is that I want to lie about rejecting the message to the remote
> server.

What you can do in that case is re-send the message to a spamtrap 
account, and then use action_bounce.  (This does add a Received: header, 
of course.)  You also need to add filter rules that allow anything going 
from 127.0.0.1 destined for the spamtrap account to pass unmolested.

Another option is to append ./INPUTMSG to a mailbox file (be sure to add 
the "From " line and escape any From's in the message.)

Regards,

David.



More information about the MIMEDefang mailing list