Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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

How can I get my dovecot LDA to except emails sent to and then send the mail to the uniqueMembers of the group?



share|improve this question

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.

share|improve this answer
Thanks, that helps for a start but I have two problems with it: First all mail: attributes will be used and not just the first and second: I get a "user not found" bounce from the server even though the mail gets delivered to all users. – plaetzchen Oct 4 '11 at 22:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.