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, ...).
Wietse
> Alternatively I've got dovecot on the box as well - perhaps I could
> query dovecot whether the user is valid or not from
> local_recipient_maps? But how?
>
> Thanks for any hints
>
> Michael
>
>