-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 3 Jul 2013, Laszlo Kiraly wrote:

It mostly works.

location = sdbox:/home/vmail/public/

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?

if both users vm...@domain.com and vm...@anotherdomain.com have "append" permission to public/info, vmail+public/i...@anotherdomain.com will save the message there, because that's the idea of lmtp_save_to_detail_mailbox . vmail+public/i...@anotherdomain.com means: do not save to INBOX of vm...@anotherdomain.com, but to public/info with the permission of user vm...@anotherdomain.com. That applies to all other users as well.

If you want to store i...@anotherdomain.com somewhere else, create another SMTP alias to another mailbox, e.g.:

i...@anotherdomain.com -> vmail+public/info-anotherdom...@anotherdomain.com

I think you should reject incoming mails from outside to vmail and handle all deliveries to public through local SMTP aliases. Because "vmail" is no valid recipient anyway, isn't it?

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUdQo2F3r2wJMiz2NAQIO8ggAsnaAZaJjtClKzIYOXK2y5SvQzKdnOI03
UOeSf5e99AXWZKZSP+fC+pXra9pNQzicYYQoOabeLPCodvkGt8m2lDslksTSjN6P
fzx0HSxxns1wWgUQtLjkBrgdCoKie4irgyCMfByFDmmLjeYVCWtME1cFazUWScLq
n+x3qDSFUSHNJbN30X2/UnsIqS/HxMD/VX+8dplhX385z6ZR6XxgZHbjM28LOugS
mgfaf42eaqTf/jDgIBJzF23zhITrMb3C4cjWi3pssv/DVc1cuKFchJttdSrTEsMt
vgo791cjS+w+kuCZnZKAXiyLKzApk7akRD+kDtzcFpEeoXd5P6YhaA==
=ILOl
-----END PGP SIGNATURE-----

Reply via email to