On Tue, Apr 21, 2009 at 20:51, Jeremy Davila <[email protected]> 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_p...@$domain
from = [email protected]
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 = [email protected]
I don't know if that would do what you want?
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/