Joseph C. Lininger wrote:

I believe that the local /etc/passwd lookup is done first, followed
by the mysql lookup.

Ok.


> Global delivery instructions will always be read from
/etc/maildroprc, and local users will always place user-specific
instructions in a file called .mailfilter in their home directories.


As far as filter files for virtual users, you have two choices:

Option 1. ...

Option 2. ...

If postfix uses maildrop to deliver to its virtual mailbox users, and each user has (in addition to their maildir) a home directory that maildrop can look up in the database, and in that home directory there is a .mailfilter file, won't maildrop use it?


My current setup is that in postfix, I define:

virtual_mailbox_base = /opt/vmail

In my database, I define each virtual user's maildir relative to that like this (the example is for [EMAIL PROTECTED]):

tales-of-the-wanderer.com/gat/Maildir/

so that the entire path to their maildir is:

/opt/vmail/tales-of-the-wanderer.com/gat/Maildir/

Postfix's virtual delivery agent is happily delivering to these users, presently.

I am proposing that I tell postfix to use maildrop instead of virtual, and add an additional field to my database, for maildrop's use, called homedir. For the above user, that would be populated with:

tales-of-the-wanderer.com/gat

Then, in /opt/vmail/tales-of-the-wanderer.com/gat, there would be a .mailfilter file that would sort his mail into his folders as he pleases. Other virtual users would have their own .mailfilter files in their homedirs, as well.

As it happens, for simplicity's sake, all virtual user's uid:gid are the same (5000:5000).

Wouldn't this work? I'm not sure I understand why it wouldn't. My apologies if I'm being dense and missing something obvious.

-ste


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to