11 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Virtual domain + mysq...
FromSent OnAttachments
Jan AndersenJun 8, 2003 3:20 am 
Bernhard SchmidtJun 8, 2003 5:48 am 
Jan AndersenJun 8, 2003 6:49 am 
Martin List-PetersenJun 8, 2003 7:47 am 
Bernhard SchmidtJun 8, 2003 8:13 am 
Kirk MooreJun 8, 2003 8:53 am 
Martin List-PetersenJun 8, 2003 1:24 pm 
Rolan YangJun 8, 2003 4:14 pm 
Kirk MooreJun 8, 2003 8:53 pm 
Bernhard SchmidtJun 9, 2003 2:23 am 
Martin List-PetersenJun 9, 2003 6:15 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Virtual domain + mysql + maildropActions...
From:Rolan Yang (rol@omnistep.com)
Date:Jun 8, 2003 4:14:40 pm
List:net.sourceforge.lists.courier-maildrop

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