diff options
Diffstat (limited to 'modules/postfix')
-rw-r--r-- | modules/postfix/templates/ldap_aliases.conf | 1 | ||||
-rw-r--r-- | modules/postfix/templates/main.cf | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/postfix/templates/ldap_aliases.conf b/modules/postfix/templates/ldap_aliases.conf index 42d7dd69..81c86702 100644 --- a/modules/postfix/templates/ldap_aliases.conf +++ b/modules/postfix/templates/ldap_aliases.conf @@ -15,3 +15,4 @@ bind_pw = <%= ldap_password %> # postfix complain on url # warning: dict_ldap_open: URL scheme ldaps requires protocol version 3 version = 3 +domain = <%= domain %> diff --git a/modules/postfix/templates/main.cf b/modules/postfix/templates/main.cf index eee9c6ed..29491611 100644 --- a/modules/postfix/templates/main.cf +++ b/modules/postfix/templates/main.cf @@ -38,7 +38,8 @@ relay_domains = <%= domain %>, ml.<%= domain %> mydestination = <%= fqdn %> <%- if all_tags.include?('postfix::primary_smtp') -%> - <%= domain %>, + +virtual_mailbox_domains = <%= domain %> # local_recipient_maps is disabled, as we need to route all # non local email to ryu as long as mageia ml are hosted @@ -50,9 +51,8 @@ fallback_transport_maps = regexp:/etc/postfix/transport_regexp alias_maps = hash:/etc/postfix/aliases - # uncomment if we want to enable ldap based alias - # and create the file - ldap:/etc/postfix/ldap_aliases.conf + +virtual_alias_maps = ldap:/etc/postfix/ldap_aliases.conf <%- end -%> |