Wietse Venema:
> Michael Ludvig:
> > Hi
> >
> > I've got a Postfix 2.6.6 mail server on CentOS where I want to accept
> > emails only for members of a certain unix group (e.g. group mailuser)
> > and reject everyone else.
> >
> > I believe it should be done with local_recipient_maps but I can't figure
> > out how to make it check the unix user membership..
> >
> > The default setting "local_recipient_maps = unix:passwd.byname
> > $alias_maps" obviously accepts emails to all existing user accounts. How
> > can I restrict it only to members of the specific group?
>
> There is no such filter for /etc/passwd built into Postfix. Instead
> of unix:passwd.byname, you could enumerate the users in a Postfix
> table (hash, lmdb, ...).
Or, replace unix:passwd.byname with your favorite LDAP or *SQL query.
Wietse