this is what works for me
begin routers
# route all mail flagged as spam to a transport
maildir_spam:
driver = accept
transport = maildir_spam_delivery
condition = ${if def:h_X-Spam-Score: {true}}
begin transports
maildir_spam_delivery:
driver = appendfile
maildir_format = true
directory = /var/vmail/$domain/$local_part/.Spam
user = mail
create_directory
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0600
On Tue, Feb 18, 2025 at 7:23 AM Sławomir Dworaczek via Exim-users
<[email protected]> wrote:
>
> helo
> how to delivery taged message as spam to local user folder spam
> eg.
> if $h_X-Bogosity: MATCH "Spam" ...
>
> thanks
>
> --
> ## subscription configuration (requires account):
> ##
> https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
> ## unsubscribe (doesn't require an account):
> ## [email protected]
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/