On 03/02/17 03:15, Wietse Venema wrote:
Wietse Venema:
Michael Ludvig:
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.

That's the thing actually. The server sees all the LDAP users but is intended to only accept emails to a bunch of local non-LDAP accounts. It's used for some automated log and report delivery and processing from other sites (don't ask - obsolete system, can't change that, just need the emails).

Right now Postfix is happy to accept email for all users in our LDAP tree which I don't want. If I could make Postfix reject the LDAP accounts and only accept for those in /etc/passwd that would actually be enough for my needs as well.

Failing all that I would have to enlist all the users in a separate file, oh well.

Michael



Reply via email to