I want to include the mailfilter files that i created and has the file name like
this:
[EMAIL].mailfilter
I have the following in the /etc/maildroprc file:
import RECIPIENT
include "/var/www/mail.mooktakim.com/data/maildrop/$RECIPIENT.mailfilter"
But this gives errors, the variable $RECIPIENT doesn't get read and basicly
maildrop
looks for a file called .mailfilter, which doesn't exist.
I'm trying to do this becuase i want my virtual users to have their own filter
configs.
I tried using serversidefilter plugin for squirrelmail. But it seems to be
broken and
refuses to work. I had to headvily edit. All i can come up with is storing the
config
file in the ../data/maildrop/$RECIPIENT.mailfilter folder. That will allow all
users,
virutal and local. to work. But i still need to include the config file. I
tried
everything.
In the end all i can do is just symlink it to $HOME/.mailfilter, which i dont
want to do
if its avoidable.
If anyone has a better way of doing this please let me know.
PS: It would be fantastic if i could store ALL configs for maildrop in mysql.
Now that
would be perfect.