LDAP with additional alias file #4676
-
|
Hi! Is it possible to use both LDAP mailAlias and the addresses I defined in the file? Maybe someone here can help me or can suggest another way how I can make this work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Presently DMS disables overrides the file based aliases when LDAP config for aliases is detected: docker-mailserver/target/scripts/startup/setup.d/ldap.sh Lines 71 to 75 in cb76075 docker-mailserver/target/scripts/startup/setup.d/ldap.sh Lines 59 to 69 in cb76075 The file based ones are originally configured here: docker-mailserver/target/postfix/main.cf Lines 103 to 107 in cb76075 The
Yes I think it should be, it just might be a bit annoying to workaround until a PR is raised to resolve it better. Postfix should accept multiple config files for the same setting (as shown in an above snippet for #!/bin/bash
# Resolve aliases first from `/etc/postfix/virtual` (derived from `postfix-virtual.cf` / `setup alias add ...`):
postconf 'virtual_alias_maps = /etc/postfix/virtual, ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-groups.cf'If you want to give your LDAP information precedence, you could put Just take those lines above for your |
Beta Was this translation helpful? Give feedback.
Presently DMS disables overrides the file based aliases when LDAP config for aliases is detected:
docker-mailserver/target/scripts/startup/setup.d/ldap.sh
Lines 71 to 75 in cb76075