[Mimedefang] Using a quarantine facility on remote mailserver?
Jon Paterson
JPaterson at itchannel.net
Fri May 2 11:07:01 EDT 2003
Hi David,
Yikes, I am not a programmer ;-) If you do not want to give me the
actual commands, can you point me in the direction of the correct
commands that are relevant for mimedefang?
Regards,
Jon
-----Original Message-----
From: David F. Skoll [mailto:dfs at roaringpenguin.com]
Sent: 02 May 2003 15:56
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Using a quarantine facility on remote
mailserver?
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.
_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
More information about the MIMEDefang
mailing list