Re: [exim] Redirecting Spam

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Karl Dyson
Ημερομηνία:  
Προς: Jeremy Davila
Υ/ο: Exim-users
Αντικείμενο: Re: [exim] Redirecting Spam
On Tue, Apr 21, 2009 at 20:51, Jeremy Davila <JDavila@???> wrote:
> How can I redirect emails that are tagged as Spam to another MailBox as a
> Quaratine .?
>
> Thank you all in advance.


I do that, but for virus detection. I set a header in an ACL, and then
have a router that re-directs to another mailbox based on the
existence of the header.

quarantine_notify_router:
driver = accept
condition = ${if def:h_X-Malware:{1}{0}}
transport = quarantine_notify
unseen

quarantine_router:
driver = redirect
condition = ${if def:h_X-Malware:{1}{0}}
data = /var/spool/mailboxes/quarantine/
directory_transport = virtual_mailbox_directory

...and transport...

quarantine_notify:
driver = autoreply
to = $local_part@$domain
from = quarantine@???
text = A mail has been quarantined inbound to you.\n\nMalware:
$h_x-malware:\nFrom: $h_from\nTo: $h_to\n
subject = [--QUARANTINED--][$h_subject:]
cc = some.other.addr@???


I don't know if that would do what you want?