I'm still new to a lot of this but did much research before moving forward.
I created a custom filter to forward inbound emails for a few users.
I know the filter is activated, because I can see that it imported into /etc/cpanel_exim_system_filter
I found several variations on the following, and tried all of them, including with/without quotes, and escaping the dots in the email addresses (single, double and quad slash)
Something must be wrong in my syntax or code but I'm at a loss and would appreciate any help! Here's my last attempt (note the dotted email addresses, and altho I doubt it matters, I'm forwarding to a 2nd domain)
I created a custom filter to forward inbound emails for a few users.
I know the filter is activated, because I can see that it imported into /etc/cpanel_exim_system_filter
I found several variations on the following, and tried all of them, including with/without quotes, and escaping the dots in the email addresses (single, double and quad slash)
Something must be wrong in my syntax or code but I'm at a loss and would appreciate any help! Here's my last attempt (note the dotted email addresses, and altho I doubt it matters, I'm forwarding to a 2nd domain)
Code:
# Exim filter
if first_delivery
and ("$h_from:" is "[email protected]")
or ("$h_from:" is "[email protected]")
and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
then
unseen deliver "[email protected]"
endif
if first_delivery
and ("$h_from:" is "[email protected]")
and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
then
unseen deliver "[email protected]"
endif
if first_delivery
and ("$h_from:" is "[email protected]")
and not ("$h_X-Spam-Checker-Version:" begins "SpamAssassin")
then
unseen deliver "[email protected]"
unseen deliver "[email protected]"
endif