On 2014.11.14 09:42, NTPT wrote: > Hi all. > > I have a courier imapd and pop3d servers deployed with classical > maildir setup so mails are stored in /home/user/.maildir path. > Now I need to add some virtual users too witch mails are stored in > /some/path/example.com/user/(.maildir) > > I plan to have a virtual users in postgresql database. but what i need > is some sort of fallback mechanizm so when user is NOT in virtual > users database, (ie no virtual account) courier imapd and pop3d treat > this user as system users that store mail not in > /some/path/example.com/user/ but in /home/user/.maildir.
Hi, You configure DEFAULTDELIVERY=./.maildir in your courierd file for real users. You have a column in the postgresql database and store a full path to virtual user's maildir directory for every virtual user. This is that I use in one site, and it is working. Just database is mysql in my case. But auth modules for mysql and postgresql are twins so that should not matter. -- Aidas Kasparas IT administrator GM Consult Group, UAB +370 686 08473 http://www.gmc.lt ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users