From 5086281539f67e317ffd8bf833fb5f847beb662a Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 22 Mar 2011 15:17:56 +0000 Subject: - use a virtual domain rather than a regular one, as this prevent to limit aliases on the main domain ( ie, we want to avoid potential interferences with subdomain like ml ) --- modules/postfix/templates/ldap_aliases.conf | 1 + 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 -%> -- cgit v1.2.1