postfix: document ldap map purposes

This commit is contained in:
Martin Weinelt
2026-03-12 12:45:38 +01:00
parent 762f553643
commit 63365fb1a8
+2
View File
@@ -219,6 +219,7 @@ let
bind_dn = ${cfg.ldap.bind.dn} bind_dn = ${cfg.ldap.bind.dn}
''; '';
# Enforce a mapping between SMTP user and envelope sender address
ldapSenderLoginMap = pkgs.writeText "ldap-sender-login-map.cf" '' ldapSenderLoginMap = pkgs.writeText "ldap-sender-login-map.cf" ''
${commonLdapConfig} ${commonLdapConfig}
query_filter = ${cfg.ldap.postfix.filter} query_filter = ${cfg.ldap.postfix.filter}
@@ -233,6 +234,7 @@ let
destination = ldapSenderLoginMapFile; destination = ldapSenderLoginMapFile;
}; };
# Check whether a recipient address exists, before accepting mail for it
ldapVirtualMailboxMap = pkgs.writeText "ldap-virtual-mailbox-map.cf" '' ldapVirtualMailboxMap = pkgs.writeText "ldap-virtual-mailbox-map.cf" ''
${commonLdapConfig} ${commonLdapConfig}
query_filter = ${cfg.ldap.postfix.filter} query_filter = ${cfg.ldap.postfix.filter}