I created a special user called virtualmail. To make things convenient, I assigned it the same group as the courier user (I have a group called 'courier'). In virtualmail's homedir I created a directory called 'domains', and virtual mail users get directories under that. For instance,
mysql> select id,uid,gid,home from passwd where id='friend'; +--------+-----+-----+----------------------------------------------+ | id | uid | gid | home | +--------+-----+-----+----------------------------------------------+ | friend | 111 | 106 | /home/virtualmail/domains/frobniz.com/friend | +--------+-----+-----+----------------------------------------------+ # grep virtualmail /etc/passwd virtualmail:x:111:106:Courier Virtual Mail:/home/virtualmail:/bin/bash This is similar to the way vpopmail does it, but with courier you don't need vpopmail to do the same thing. It's built in :-) I wrote a couple of python scripts to conveniently create account filespaces and put entries in the mysql database. You (or anyone else) are welcome to them if you want them. Thus spake Andre Correa on Fri, Apr 12, 2002 at 10:38:27AM CDT > > Hi list, I set up Courier-IMAP to authenticate using MySQL but > couldn't find documentation to help me further. I get authenticated by > POP3 but with the message: > > -ERR Maildir: Permission denied > > Users in MySQL db are not system users. I want to put all e-mail in a > single directory or directory tree for users. I dont know what to put > in uid and gid fields on the database, and setting maildir to an existant > directory doesn't work. > > I couldn't find documentation to help me... Can you give me some > light!? > > tks > > Andre Correa > [EMAIL PROTECTED] > > > _______________________________________________ > courier-users mailing list > [EMAIL PROTECTED] > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users -- Lindsay Haisley | "Everything works | PGP public key FMP Computer Services | if you let it" | available at 512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys> http://www.fmp.com | | _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
