From 97dcf9d3611d14ae41b828d7b1bd9469e13b7549 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Mon, 18 Jan 2016 21:43:52 +0100 Subject: [PATCH] Import and clean vmm provided configuration files --- config/dovecot/conf.d/10-auth.conf | 13 +++++ config/dovecot/conf.d/10-mail.conf | 6 +++ config/dovecot/conf.d/10-master.conf | 43 +++++++++++++++ config/dovecot/conf.d/10-ssl.conf | 4 ++ config/dovecot/conf.d/15-lda.conf | 6 +++ config/dovecot/conf.d/20-imap.conf | 3 ++ config/dovecot/conf.d/20-lmtp.conf | 3 ++ config/dovecot/dovecot-sql.conf.ext | 18 +++++++ config/dovecot/dovecot.conf | 2 + config/postfix/main.cf | 33 ++++++++++++ config/postfix/master.cf | 52 +++++++++++++++++++ config/postfix/pgsql-relocated_maps.cf | 14 +++++ .../postfix/pgsql-smtpd_sender_login_maps.cf | 18 +++++++ config/postfix/pgsql-transport_maps.cf | 14 +++++ config/postfix/pgsql-virtual_alias_maps.cf | 14 +++++ config/postfix/pgsql-virtual_gid_maps.cf | 14 +++++ .../postfix/pgsql-virtual_mailbox_domains.cf | 14 +++++ config/postfix/pgsql-virtual_mailbox_maps.cf | 14 +++++ config/postfix/pgsql-virtual_uid_maps.cf | 14 +++++ 19 files changed, 299 insertions(+) create mode 100644 config/dovecot/conf.d/10-auth.conf create mode 100644 config/dovecot/conf.d/10-mail.conf create mode 100644 config/dovecot/conf.d/10-master.conf create mode 100644 config/dovecot/conf.d/10-ssl.conf create mode 100644 config/dovecot/conf.d/15-lda.conf create mode 100644 config/dovecot/conf.d/20-imap.conf create mode 100644 config/dovecot/conf.d/20-lmtp.conf create mode 100644 config/dovecot/dovecot-sql.conf.ext create mode 100644 config/postfix/pgsql-relocated_maps.cf create mode 100644 config/postfix/pgsql-smtpd_sender_login_maps.cf create mode 100644 config/postfix/pgsql-transport_maps.cf create mode 100644 config/postfix/pgsql-virtual_alias_maps.cf create mode 100644 config/postfix/pgsql-virtual_gid_maps.cf create mode 100644 config/postfix/pgsql-virtual_mailbox_domains.cf create mode 100644 config/postfix/pgsql-virtual_mailbox_maps.cf create mode 100644 config/postfix/pgsql-virtual_uid_maps.cf diff --git a/config/dovecot/conf.d/10-auth.conf b/config/dovecot/conf.d/10-auth.conf new file mode 100644 index 00000000..3bc3bc78 --- /dev/null +++ b/config/dovecot/conf.d/10-auth.conf @@ -0,0 +1,13 @@ +auth_mechanisms = plain login cram-md5 + +passdb { + driver = sql + args = /etc/dovecot/dovecot-sql.conf.ext +} + +userdb { + driver = sql + args = /etc/dovecot/dovecot-sql.conf.ext +} + +#!include auth-system.conf.ext diff --git a/config/dovecot/conf.d/10-mail.conf b/config/dovecot/conf.d/10-mail.conf new file mode 100644 index 00000000..a982cbcd --- /dev/null +++ b/config/dovecot/conf.d/10-mail.conf @@ -0,0 +1,6 @@ +# mailbox configuration + +first_valid_gid = 70000 +first_valid_uid = 70000 +mail_access_groups = mail +mail_location = maildir:~/Maildir diff --git a/config/dovecot/conf.d/10-master.conf b/config/dovecot/conf.d/10-master.conf new file mode 100644 index 00000000..47d525df --- /dev/null +++ b/config/dovecot/conf.d/10-master.conf @@ -0,0 +1,43 @@ +service imap-login { + inet_listener imap { + port = 143 + } + inet_listener imaps { + port = 993 + } +} + +service lmtp { + unix_listener /var/spool/postfix/private/dovecot-lmtp { + user = postfix + group = postfix + mode = 0600 + } +} + +service auth { + user = doveauth + unix_listener auth-userdb { + } + unix_listener /var/spool/postfix/private/dovecot-auth { + user = postfix + group = postfix + mode = 0600 + } +} + +service auth-worker { + unix_listener auth-worker { + user = mail + group = $default_internal_user + mode = 0660 + } + user = mail +} + +service dict { + unix_listener dict { + group = mail + mode = 0660 + } +} diff --git a/config/dovecot/conf.d/10-ssl.conf b/config/dovecot/conf.d/10-ssl.conf new file mode 100644 index 00000000..a78ba85e --- /dev/null +++ b/config/dovecot/conf.d/10-ssl.conf @@ -0,0 +1,4 @@ +# SSL/TLS support +ssl = yes +ssl_cert =