From 0853c2afdc2ddba11692ef17bb859104d47071e0 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 14 Jan 2014 05:58:33 +0100 Subject: Fix catchall resolution. It has to be performed last, to give a chance to be accepted as a regular mailbox. We introduce a new, dedicated, smtpd daemon whose only purpose is to resolve catch-alls. --- roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf | 2 +- roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) mode change 120000 => 100644 roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf (limited to 'roles/IMAP/files') diff --git a/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf index 54363e6..05f7ed9 120000 --- a/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf +++ b/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf @@ -1 +1 @@ -../../../../../MX/files/etc/postfix/virtual/mailbox_domains.cf \ No newline at end of file +../../../../../MX/templates/etc/postfix/virtual/mailbox_domains.cf.j2 \ No newline at end of file diff --git a/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf deleted file mode 120000 index 3a4d118..0000000 --- a/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf +++ /dev/null @@ -1 +0,0 @@ -../../../../../MX/files/etc/postfix/virtual/mailbox_maps.cf \ No newline at end of file diff --git a/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf new file mode 100644 index 0000000..da1b2cf --- /dev/null +++ b/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf @@ -0,0 +1,8 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,dc=fripost,dc=org +scope = base +bind = none +query_filter = (&(objectClass=FripostVirtualUser)(fvl=%u)) +result_attribute = fvl +result_format = OK -- cgit v1.2.3