I have a LDAP and a Dovecot running on my server, the Dovecot uses LDAP as userdb and authdb, postfix is using LDA (deliver) to deliver the mails to the user. Now I want to have group email addresses like [email protected]. This group is in my ldap like this:
objectClass: extensibleObject
objectClass: groupOfUniqueNames
objectClass: top
cn: group1
uniqueMember: uid=user1,ou=people,dc=example,dc=com
uniqueMember: uid=user2,ou=people,dc=example,dc=com
(...)
mail: [email protected]
How can I get my dovecot LDA to except emails sent to [email protected] and then send the mail to the uniqueMembers of the group?
Thanks
Philip
This is not the job of Dovecot (or it's LDA). This is the job of Postfix to expand the user. And therefore there are the
virtual_alias_maps
that do the expanding/rewriting. Each expanded user will then get the mail as before.You just have to set the virtual_alias_maps to get the mapping from LDAP as described here, but you probably are familiar with that as you already get your normal users from LDAP.