From c836fecd1b0ae3c6348ade420cd8e0222cdb66eb Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 15 Jan 2014 15:21:59 +0100 Subject: Make the *_maps file names uniform. That is, don't put a leading virtual_ or a trailing _maps in file names. --- roles/IMAP/files/etc/postfix/virtual/mailbox.cf | 9 +++++++++ roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf | 9 --------- roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf | 9 +++++++++ .../files/etc/postfix/virtual/transport_content_filter_maps.cf | 9 --------- roles/IMAP/tasks/mda.yml | 4 ++-- roles/IMAP/templates/etc/postfix/main.cf.j2 | 4 ++-- 6 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 roles/IMAP/files/etc/postfix/virtual/mailbox.cf delete mode 100644 roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf create mode 100644 roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf delete mode 100644 roles/IMAP/files/etc/postfix/virtual/transport_content_filter_maps.cf (limited to 'roles/IMAP') diff --git a/roles/IMAP/files/etc/postfix/virtual/mailbox.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox.cf new file mode 100644 index 0000000..009dd98 --- /dev/null +++ b/roles/IMAP/files/etc/postfix/virtual/mailbox.cf @@ -0,0 +1,9 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,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_maps.cf b/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf deleted file mode 100644 index 009dd98..0000000 --- a/roles/IMAP/files/etc/postfix/virtual/mailbox_maps.cf +++ /dev/null @@ -1,9 +0,0 @@ -server_host = ldapi://%2Fprivate%2Fldapi/ -version = 3 -search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,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/transport_content_filter.cf b/roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf new file mode 100644 index 0000000..b082f69 --- /dev/null +++ b/roles/IMAP/files/etc/postfix/virtual/transport_content_filter.cf @@ -0,0 +1,9 @@ +server_host = ldapi://%2Fprivate%2Fldapi/ +version = 3 +search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,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 diff --git a/roles/IMAP/files/etc/postfix/virtual/transport_content_filter_maps.cf b/roles/IMAP/files/etc/postfix/virtual/transport_content_filter_maps.cf deleted file mode 100644 index b082f69..0000000 --- a/roles/IMAP/files/etc/postfix/virtual/transport_content_filter_maps.cf +++ /dev/null @@ -1,9 +0,0 @@ -server_host = ldapi://%2Fprivate%2Fldapi/ -version = 3 -search_base = fvl=%u,fvd=%d,ou=virtual,o=mailHosting,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 diff --git a/roles/IMAP/tasks/mda.yml b/roles/IMAP/tasks/mda.yml index cef40a0..1aac519 100644 --- a/roles/IMAP/tasks/mda.yml +++ b/roles/IMAP/tasks/mda.yml @@ -26,8 +26,8 @@ mode=0644 with_items: - mailbox_domains.cf - - mailbox_maps.cf - - transport_content_filter_maps.cf + - mailbox.cf + - transport_content_filter.cf - name: Start Postfix service: name=postfix state=started diff --git a/roles/IMAP/templates/etc/postfix/main.cf.j2 b/roles/IMAP/templates/etc/postfix/main.cf.j2 index 2da85e9..e4c01bd 100644 --- a/roles/IMAP/templates/etc/postfix/main.cf.j2 +++ b/roles/IMAP/templates/etc/postfix/main.cf.j2 @@ -52,8 +52,8 @@ default_transport = error:5.1.1 Transport unavailable virtual_transport = lmtp:unix:private/dovecot-lmtpd lmtp_bind_address = 127.0.0.1 virtual_mailbox_domains = ldap:$config_directory/virtual/mailbox_domains.cf -virtual_mailbox_maps = ldap:$config_directory/virtual/mailbox_maps.cf -transport_maps = ldap:$config_directory/virtual/transport_content_filter_maps.cf +virtual_mailbox_maps = ldap:$config_directory/virtual/mailbox.cf +transport_maps = ldap:$config_directory/virtual/transport_content_filter.cf # Don't rewrite remote headers local_header_rewrite_clients = -- cgit v1.2.3