0

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.

IE,

"Subject" for [email protected]

becomes

"[Support] Subject" for [email protected]

I've tried the .forward file, but it doesn't seem to have any effect. The mail directory for users are in:

/var/www/user_name/data/email/mydomain.com/user1/
/var/www/user_name/data/email/mydomain.com/user2/

This is what I have so far, but it doesn't seem to have any effect.

# Exim filter
if $h_to: is "[email protected]" then
  headers add "New-Subject: [Support] $h_subject:"
  headers remove subject
  headers add "Subject: $h_new-subject:"
  headers remove new-subject
  unseen deliver "[email protected]"
endif

Has anyone done this before? I can't find anything on Google about virtual domains with filtering.

1 Answer 1

0

It is likely that your To: header is not equal to "[email protected]" but contains "[email protected]".

I don't know what should be the difference between virtual users and "real" users concerning filtering. So just follow a guide/tutorial/manual about the Exim filter language: http://exim.org/exim-html-current/doc/html/spec_html/filter.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .