postfixはLDAPグループを展開し、エイリアスを確認します。

postfixはLDAPグループを展開し、エイリアスを確認します。

openldapディレクトリには、ユーザー設定が保存されているpostfixサーバーがあります。

最近、postfixで拡張されたLDAPグループも実装されました。グループが特定の電子メールエイリアスターゲットに展開されない限り、これはうまく機能します。

グループ内で拡張されたすべてのエイリアスは、LDAPエイリアスデータベースによって解決されていないように見えます。

LDAPグループを展開してから、拡張グループメンバーをLDAPエイリアス検証に渡す方法についてのヒントはありますか?

私たちの構成は次のとおりです。

main.cfから

virtual_alias_maps = ldap:/etc/postfix/ldap_expand_groups.cf,ldap:/etc/postfix/ldap_accountsmap.cf,ldap:/etc/postfix/ldap_expand_alias.cf

ldap_expand_groups.cf

server_host = ldap://openldap1.server
version = 3
search_base = ou=groups,o=mailhosting
query_filter = (&(mail=%s)(objectclass=groupOfUniqueNames))
leaf_result_attribute = mail
special_result_attribute = uniquemember

ldap_expand_alias.cf

server_host =  ldap://openldap1.server
search_base = o=mailhosting
query_filter = (&(objectClass=MailAlias)(mail=%s)(accountActive=TRUE))
result_attribute = maildrop
bind = no

ベストアンサー1

おすすめ記事