From 55e9b2a0ebc87a353f9c9496a77b313e41e47bd4 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 9 Jul 2014 01:23:01 +0200 Subject: Perform the alias resolution and address validation solely on the MX:es. We can therefore spare some lookups on the MDA, and use static:all instead. --- roles/IMAP/files/etc/postfix/transport | 1 + roles/IMAP/files/etc/postfix/virtual/mailbox.cf | 9 --------- roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf | 1 - roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf | 9 --------- 4 files changed, 1 insertion(+), 19 deletions(-) create mode 100644 roles/IMAP/files/etc/postfix/transport delete mode 100644 roles/IMAP/files/etc/postfix/virtual/mailbox.cf delete mode 120000 roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf delete mode 100644 roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf (limited to 'roles/IMAP/files') diff --git a/roles/IMAP/files/etc/postfix/transport b/roles/IMAP/files/etc/postfix/transport new file mode 100644 index 0000000..d40ac5d --- /dev/null +++ b/roles/IMAP/files/etc/postfix/transport @@ -0,0 +1 @@ +filter.mda.fripost.org amavisfeed:[127.0.0.1]:10041 diff --git a/roles/IMAP/files/etc/postfix/virtual/mailbox.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox.cf deleted file mode 100644 index e69343b..0000000 --- a/roles/IMAP/files/etc/postfix/virtual/mailbox.cf +++ /dev/null @@ -1,9 +0,0 @@ -server_host = ldapi://%2Fprivate%2Fldapi/ -version = 3 -search_base = fvl=%u,fvd=%d,ou=virtual,dc=fripost,dc=org -domain = static:all -scope = base -bind = none -query_filter = (&(objectClass=FripostVirtualUser)(fvl=%u)) -result_attribute = fvl -result_format = OK diff --git a/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf deleted file mode 120000 index 05f7ed9..0000000 --- a/roles/IMAP/files/etc/postfix/virtual/mailbox_domains.cf +++ /dev/null @@ -1 +0,0 @@ -../../../../../MX/templates/etc/postfix/virtual/mailbox_domains.cf.j2 \ No newline at end of file diff --git a/roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf b/roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf deleted file mode 100644 index 642b722..0000000 --- a/roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf +++ /dev/null @@ -1,9 +0,0 @@ -server_host = ldapi://%2Fprivate%2Fldapi/ -version = 3 -search_base = fvl=%u,fvd=%d,ou=virtual,dc=fripost,dc=org -domain = static:all -scope = base -bind = none -query_filter = (&(objectClass=FripostVirtualUser)(objectClass=AmavisAccount)(fvl=%u)) -result_attribute = fvl -result_format = amavisfeed:[127.0.0.1]:10041 -- cgit v1.2.3