Quoting Heiko Schlittermann via Exim-users <[email protected]>:

Jaap Winius <[email protected]> (Mi 18 Okt 2017 10:36:02 CEST):

Hi folks,

Some time ago I devised a spambox configuration for Exim so that messages
that are flagged by only one or two types of filters will end up in a user's
spambox. The transport looks like this:

spambox:
  debug_print = "T: appendfile for $local_part@$domain"
  driver = appendfile
  mode = 0660
  mode_fail_narrower = false

It works like a treat, but now I want these messages to instead be sent to a
different account on a different mail server. For instance, a message for
[email protected] arriving at mx1.example.com and flagged as spam would be
sent on to [email protected].

Is such an Exim transport configuration possible? If so, what would it look
like?

You need to modify the router that diverts the flagged messages
to the spambox transport. Can you show us the router configuration?

Sure, it looks like this:

spambox:
  debug_print = "R: local_user for $local_part@$domain"
  driver = accept
  domains = +local_domains
  check_local_user
  local_parts = ! root
  transport = spambox
  condition = "${if eq{$acl_m_spam}{match}{yes}{no}}"
  cannot_route_message = Unknown user


Cheers,

Jaap


--
## List details at https://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/

Reply via email to