Email filter question

Strator

Verified User
Joined
Jan 19, 2011
Messages
283
I'm looking for a way to forward emails with a certain subject to a different email address. I've created a .forward file with the following content:

# Exim Filter

# Filter "Filter1"
if $header_Subject: contains "important subject"
then
deliver [email protected]
endif
Unfortunately, placing this into the home directory of the specific account doesn't seem to work, and I believe I've also read somewhere that using .forward files in DA generally doesn't work. Is this (still) true, and/or is there a simple solution for what I'm trying to achieve? Thanks!
 
It [.forward] does not work for virtual e-mail boxes, as far as I know. Some times ago I've tried to organize something of that kind. I was not succeed, and I found another bypass.
 
.forward files won't work with virtual email address because the functionality is designed specifically for users as defined in posix-style operating systems. (Linux nd BSD are both examples of posix-style operating systems).

You can probably implement this in the exim filter file located at /etc/system_filter.exim, or in /etc/exim.pl, or in /etc/virtual/example.com/filter (replace example.com with the real domain name) which is the way the DirectAdmin spam filter is implemented.

Jeff
 
@Jeff,

I didn't try yet, but doesn't directadmin rewrite any hand-made changes in exim filter file?

/etc/virtual/<domain>/filter
 
I don't know. But not at all if you chattr it immutable.

And there might be a custom directory you can put a template into; I haven't checked, so I'm not sure.

Jeff
 
Back
Top