Thanks Steffen, It mostly works.
my public namespace config: -- namespace { type = public prefix = public/ separator = / location = sdbox:/home/vmail/public/ list = no subscriptions = no } -- If I rewrite i...@domain.com to vmail+public/i...@domain.com, then it saved to /home/vmail/public/mailboxes/info however if I get mail to vmail+public/i...@anotherdomain.com then it's saved to the same mailbox. How can I set dovecot to save to different mailboxes? Regards: Király László ---------- Original Message ----------- From: Steffen Kaiser <skdove...@smail.inf.fh-brs.de> To: k...@madalbal.hu Cc: dovecot@dovecot.org Sent: Tue, 2 Jul 2013 14:28:41 +0200 (CEST) Subject: Re: [Dovecot] namespace delivery question > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, 27 Jun 2013, Laszlo Kiraly wrote: > > > i...@domain.com <- public, readable by user2 > > us...@domain.com <- private > > us...@domain.com <- private > > > > The mailboxes are virtual, authentication through pam (kerberos). > > The public mailbox doesn't have valid kerberos account. > > > > I couldn't find solution in the documentation, how can I manage the email > > delivery to the public namespace? > > > > There is a -m option in the lda delivery where you can give namespace > > prefix. > > Maybe it's good for this, but I couldn't find any information how can I do > > this with lmtp? > > If you set: > > lmtp_save_to_detail_mailbox = yes > recipient_delimiter = # > > you could alias i...@domain.com to > <user>#public.mailbox.fol...@domain.com . 1st option tells LMTP to > use the detail (subaddress) as default mailbox, which is essentially > the same as the -m option of the LDA. 2nd options sets the delimiter > of user and detail. <user> must habe write permission to the folder. > > Regards, > > - -- > Steffen Kaiser