we use a postfix for delivery.
we use  courier-pop3d and courier-imapd for access (reading) to user 
mailboxes only . there are only an /etc/courier-imap/imapd and /etc/courier-
imap/pop3d conf files

I suspect  DEFAULTDELIVERY=./.maildir is for courier MTA for receiving but 
not for pop3 and imap daemons to reading



---------- Původní zpráva ----------
Od: Aidas Kasparas <a.kaspa...@gmc.lt>
Komu: courier-users@lists.sourceforge.net
Datum: 14. 11. 2014 9:46:19
Předmět: Re: [courier-users] virtual email with fallback to classical 
maildir

"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";
------------------------------------------------------------------------------
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

Reply via email to