[Mimedefang] Using a quarantine facility on remote mailserver?

David F. Skoll dfs at roaringpenguin.com
Fri May 2 10:57:00 EDT 2003


On Fri, 2 May 2003, Jon Paterson wrote:

> What I would like to do is quarantine mails that are spam to a mailbox
> on the exchange server, not locally on the Mimedefang box.  Is this
> possible, and if so can anyone point me in the right direction?

What you want to do (pseudocode) is:

	if ($message_is_spam) {
	    # Add a header with original recipients, just for info
	    action_add_header("X-Orig-Rcpts", join(", ", @Recipients));

	    # Remove original recipients
	    foreach $recip (@Recipients) {
	        delete_recipient($recip);
	    }

	    # Send to spam address
	    add_recipient('<spamdrop at exchange.mydomain.net');
	}

--
David.



More information about the MIMEDefang mailing list