postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: LDAP, groups and users without local accounts

LDAP, groups and users without local accounts

From: Jakob Lenfers <lenfers_at_nospam>
Date: Tue Oct 12 2010 - 08:05:10 GMT
To: postfix-users@postfix.org

Hi,

perhaps you guys can help me. I'm integrating postfix into our ldap
environment. We have groups (posixGroup) with memberUids in them (e.g.
lenfers for me). Adding mail info to those groups works and all local
users get resolved correctly. But sometimes there are users (e.g.
externuser) that need to be in those groups (rights and mail related)
but have only an external mail account. I cannot find a setup so that
this is resolved accordingly, because postfix tries to deliver the mail
to the memberUids (externuser instead of externuser@gmail.com).

Relevant config part from my lookup config:
| query_filter = (&
(|(objectClass=gosaMailAccount)(objectClass=gosaMailAlias))
(|(mail=%s)(gosaMailAlternateAddress=%s)))
| result_attribute = gosaMailForwardingAddress, uid, memberUid,
aliasDestMail

Postfix versions 2.7.0 and 2.5.1

TIA,
Jakob