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 info@domain.com to vmail+public/info@domain.com, then it saved to /home/vmail/public/mailboxes/info however if I get mail to vmail+public/info@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 skdovecot@smail.inf.fh-brs.de To: kiru@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:
info@domain.com <- public, readable by user2 user1@domain.com <- private user2@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 info@domain.com to <user>#Public.Mailbox.Folder@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