FW: [Mimedefang] Using a quarantine facility on remote mailserver?
Jon Paterson
JPaterson at itchannel.net
Tue May 6 11:26:02 EDT 2003
Hi again, I have got this working by adding all but the top line to the
spamassassin bit in filter_end. Can you tell me how the variable
"message_is_spam" is set for the if statement? Would I need to define
this variable after the spamassassin check? Is this one of the built in
jobs?
Sorry if this is a daft question, but we all have to start somewhere...
;-)
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