[Dovecot] Shared Folters with LDA/Sieve
Hello,
i'm searching for a way to use Shared mailboxes with Sieve Filtering.
I need global email addresses like: info@foo.tld contact@foo.tld help@foo.tld
Every address with own Sieve-rules for filtering and sorting of incoming mails.
Now every user needs access to this folders, but how? How should i create the "global" addresses?
I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but that's just a public namespace.
Is there any FAQ available for this?
Thank you very much Dieter
Am 17.11.2013 05:31, schrieb Dieter Knopf:
Hello,
i'm searching for a way to use Shared mailboxes with Sieve Filtering.
I need global email addresses like: info@foo.tld contact@foo.tld help@foo.tld
Every address with own Sieve-rules for filtering and sorting of incoming mails.
Now every user needs access to this folders, but how? How should i create the "global" addresses?
I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but that's just a public namespace.
Is there any FAQ available for this?
Thank you very much Dieter
On my setup with an Active Directory LDAP backend i used Domain Groups for such email Adresses and configured the acl's in an way that members of the groups have full access to the group's imap folders via the shared (not the public) namespace. Since each group has normal imap account sieve rules can be applied as well. Guess you can use simple useraccounts for the mail accounts and share them for all authenticated users. Should be simpler.
http://wiki2.dovecot.org/SharedMailboxes/Shared
achim~
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, 17 Nov 2013, Dieter Knopf wrote:
I need global email addresses like: info@foo.tld contact@foo.tld help@foo.tld
Every address with own Sieve-rules for filtering and sorting of incoming mails.
Now every user needs access to this folders, but how? How should i create the "global" addresses?
I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but that's just a public namespace.
Is there any FAQ available for this?
IMHO, you should use: http://wiki2.dovecot.org/SharedMailboxes/Shared http://wiki2.dovecot.org/ACL
setup those three recipient as their own accounts with Sieve filter a.s.o. Then install ACLs to share to anyone - or create a group for all users.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUonFbl3r2wJMiz2NAQLJCgf5AcAEk8UjRYai47jEqvMbQIKsyyvMrOPA 9fidoA3joBs6JzCfcXKGNtJHNwWrRA9g/kFR4KbPs6DlR0cXv4Do+ZcSRtMSGAkk TdW3Rngs0on0cH1qelbaVK+f8BqSQ/YUC+0FUg+Rk23xINve5C4TkWAzn+48zN/h qqgdet5FqchoPHUzbJxpRpXd5dRj9Kw1EjUXvVolZbmZGTRWgks9oCKuQrpSZ1VS eViLcg59J0Dn9WhvFaLk0s3ud8teIl2hRGeInTOPBloa1C5ysyYbs72mcb00bSOt GBZsbmZmSVdlhcsVaaL3KqCkAZTPzfGRNxOy9zLcHGw402yUDOq+XA== =TrwU -----END PGP SIGNATURE-----
Thanks again for the help. (after a long time)
But i still don't get this working :-(
I tried the way via mysql (http://wiki2.dovecot.org/SharedMailboxes/Shared) but nothing happens. I can't see (or subscribe) the shared folders.
I inserted (to the mysql table): from_user=info@foo.tld to_users=name@foo.tld
But the user name@foo.tld can't subscribe/see anything.
I added shared namespace to the config: namespace { type = shared separator = / prefix = shared/%%d/%%n/ location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u subscriptions = no list = children }
Not sure if this is the right way if i use virtual users: mail_location = maildir:/home/vmail/%d/%n:INDEX=/home/vmail-indexes/%d/%n:LAYOUT=fs namespace { type = private separator = / prefix = inbox = yes ...
Thanks!
2013/11/18 Steffen Kaiser skdovecot@smail.inf.fh-brs.de
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sun, 17 Nov 2013, Dieter Knopf wrote:
I need global email addresses like:
info@foo.tld contact@foo.tld help@foo.tld
Every address with own Sieve-rules for filtering and sorting of incoming mails.
Now every user needs access to this folders, but how? How should i create the "global" addresses?
I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but that's just a public namespace.
Is there any FAQ available for this?
IMHO, you should use: http://wiki2.dovecot.org/SharedMailboxes/Shared http://wiki2.dovecot.org/ACL
setup those three recipient as their own accounts with Sieve filter a.s.o. Then install ACLs to share to anyone - or create a group for all users.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUonFbl3r2wJMiz2NAQLJCgf5AcAEk8UjRYai47jEqvMbQIKsyyvMrOPA 9fidoA3joBs6JzCfcXKGNtJHNwWrRA9g/kFR4KbPs6DlR0cXv4Do+ZcSRtMSGAkk TdW3Rngs0on0cH1qelbaVK+f8BqSQ/YUC+0FUg+Rk23xINve5C4TkWAzn+48zN/h qqgdet5FqchoPHUzbJxpRpXd5dRj9Kw1EjUXvVolZbmZGTRWgks9oCKuQrpSZ1VS eViLcg59J0Dn9WhvFaLk0s3ud8teIl2hRGeInTOPBloa1C5ysyYbs72mcb00bSOt GBZsbmZmSVdlhcsVaaL3KqCkAZTPzfGRNxOy9zLcHGw402yUDOq+XA== =TrwU -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dieter Knopf wrote:
I tried the way via mysql (http://wiki2.dovecot.org/SharedMailboxes/Shared) but nothing happens. I can't see (or subscribe) the shared folders.
I inserted (to the mysql table): from_user=info@foo.tld to_users=name@foo.tld
But the user name@foo.tld can't subscribe/see anything.
Did you've read http://wiki2.dovecot.org/ACL ? The entry in the database is not the source of sharing information.
I added shared namespace to the config: namespace { type = shared separator = / prefix = shared/%%d/%%n/ location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u subscriptions = no list = children }
You have just copied the example into your config, haven't you? Do you get error messages about not finding the mailbox? You should enabled logging for testing: http://wiki2.dovecot.org/Logging
Not sure if this is the right way if i use virtual users: mail_location = maildir:/home/vmail/%d/%n:INDEX=/home/vmail-indexes/%d/%n:LAYOUT=fs
In
the shared namespace you've configured Dovecot to look in the sharing user's home directory for Maildir, but the default location points to somewhere else, no Maildir at all. Where are the mailboxes located? IMHO, the correct location for most shared namespaces would be the location of the user with %'s doubled and INDEXes per user.
E.g. if above default mail_location is correct:
location = maildir:/home/vmail/%%d/%%n:INDEX=/home/vmail-indexes/%d/%n/shared/%%u:LAYOUT=fs
In a shared namespace %%u applies to the sharing user and %u to the current user, therefore that config defines the same as the default location, but with user-specific indexes, see http://wiki2.dovecot.org/IndexFiles if you prefer user-specific vs. mailbox-specific indexes.
namespace { type = private separator = / prefix = inbox = yes ...
Thanks!
2013/11/18 Steffen Kaiser skdovecot@smail.inf.fh-brs.de
On Sun, 17 Nov 2013, Dieter Knopf wrote:
I need global email addresses like:
info@foo.tld contact@foo.tld help@foo.tld
Every address with own Sieve-rules for filtering and sorting of incoming mails.
Now every user needs access to this folders, but how? How should i create the "global" addresses?
I already found http://wiki2.dovecot.org/SharedMailboxes/Public , but that's just a public namespace.
Is there any FAQ available for this?
IMHO, you should use: http://wiki2.dovecot.org/SharedMailboxes/Shared http://wiki2.dovecot.org/ACL
setup those three recipient as their own accounts with Sieve filter a.s.o. Then install ACLs to share to anyone - or create a group for all users.
Steffen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEVAwUBUtv7aXD1/YhP6VMHAQL/BQf/W9M0ZbH04qs/8hNeO+b6scqLFYXIYRdt YI9Hno3RoIrB5KlfHpK+Mf6dZolGG4wAneJxd5mXkye+IgKIZXDCNjGp2gCRezX6 qSANzQUe2JsZFgrjiMQs/sTJB5qFhsjpHIpmQaJYCXtDdTvMe8Z01IxG8IqVAsCU p3bEb9rF/3cBd0MW2hCPAhHeoBEKZxG16ElDBPMZBj497e+I860Ulj5DaF8PZHXM EyycYNE18WanQTba1BvtlwIb9ye9EfdFOMQLojZ/coSeGkoY2LbbfbZCRURAUf9p I05ER6uzJVflVZu1LL94VBPuGRehzMdk5P6OdeIumelRFBOr3T9iew== =+bJZ -----END PGP SIGNATURE-----
participants (4)
-
Achim Gottinger
-
Dieter Knopf
-
Steffen
-
Steffen Kaiser