I have Exim set up on a CentOS machine and it has virtual domains (not Vexim) set up on it. I'm trying to figure out how to create a filter to forward emails from one address to another with a subject rewrite.
"Subject" for firstname.lastname@example.org
"[Support] Subject" for email@example.com
I've tried the .forward file, but it doesn't seem to have any effect. The mail directory for users are in:
This is what I have so far, but it doesn't seem to have any effect.
# Exim filter if $h_to: is "firstname.lastname@example.org" then headers add "New-Subject: [Support] $h_subject:" headers remove subject headers add "Subject: $h_new-subject:" headers remove new-subject unseen deliver "email@example.com" endif
Has anyone done this before? I can't find anything on Google about virtual domains with filtering.