Exim system_filter - redirect to another domain

designpc

Verified User
Joined
Jul 1, 2007
Messages
20
Hi,

I currently have this setup in "etc/system_filter.exim"

Code:
if error_message then finish endif
if $header_to: contains "domain.com"
then
unseen deliver "[email protected]"
endif

Which is superb, it literally just copies the email to a backup email account.

However I was wondering if it were possible to deliver the copied email to a sub-directory in [email protected]

So for example:

1. Send email to [email protected]
2. Copy email to [email protected] in sub-directory "/JohnDoe/"

Thanks in advance
 
Back
Top