Since it's a "virtual user" environment, all the maildir's are probably
owned by
the same user (postfix?). I wrote a module for the webmail that allows
users to
modify their maildrop file (very restricted rules - spamfilter on/off,
vacation
mailbot on/off) The problem is that your apache daemon (running as
user nobody) doesn't have permissions to edit the .mailfiter files, right?
I have the web based script write the that newly created .mailfiter into
/tmp,
fire off a sudo bash script that moves the .mailfilter file from /tmp
into the
appropriate user's maildir directory, chown it to owner postfix.postfix,
and fixes the permissions of the new .mailfilter
Maybe an ugly solution, but it all works out very well - and in
realtime. No
cron jobs necessary.
~Rolan
Jan Andersen wrote:
I am running postfix and courier-imap on a Redhat 9 system. My problem
is that I uses virtual domains with mysql, and therefore doesn’t know
how to set maildrop up in that environment. All the tutorials I read
is based on a .maildrop file in the users homedir.
Hope that someone has a good link to a webpage describing how to set
this up, or are able to give a short guide on doing this.
Is it by the way possible to store the filtering rules in a
mysql-database. This will make it easier to make a webinterface for
the users to configure the filtering rules.
Regards