Import and clean vmm provided configuration files
This commit is contained in:
13
config/dovecot/conf.d/10-auth.conf
Normal file
13
config/dovecot/conf.d/10-auth.conf
Normal file
@@ -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
|
||||
6
config/dovecot/conf.d/10-mail.conf
Normal file
6
config/dovecot/conf.d/10-mail.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# mailbox configuration
|
||||
|
||||
first_valid_gid = 70000
|
||||
first_valid_uid = 70000
|
||||
mail_access_groups = mail
|
||||
mail_location = maildir:~/Maildir
|
||||
43
config/dovecot/conf.d/10-master.conf
Normal file
43
config/dovecot/conf.d/10-master.conf
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
4
config/dovecot/conf.d/10-ssl.conf
Normal file
4
config/dovecot/conf.d/10-ssl.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
# SSL/TLS support
|
||||
ssl = yes
|
||||
ssl_cert = </etc/ssl/cert.pem
|
||||
ssl_key = </etc/ssl/key.pem
|
||||
6
config/dovecot/conf.d/15-lda.conf
Normal file
6
config/dovecot/conf.d/15-lda.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# delivery configuration
|
||||
postmaster_address = admin@domain.tld
|
||||
recipient_delimiter = +
|
||||
protocol lda {
|
||||
|
||||
}
|
||||
3
config/dovecot/conf.d/20-imap.conf
Normal file
3
config/dovecot/conf.d/20-imap.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# mail browsing
|
||||
protocol imap {
|
||||
}
|
||||
3
config/dovecot/conf.d/20-lmtp.conf
Normal file
3
config/dovecot/conf.d/20-lmtp.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# mail delivery
|
||||
protocol lmtp {
|
||||
}
|
||||
18
config/dovecot/dovecot-sql.conf.ext
Normal file
18
config/dovecot/dovecot-sql.conf.ext
Normal file
@@ -0,0 +1,18 @@
|
||||
driver = pgsql
|
||||
connect = host=localhost dbname=mailsys user=dovecot password=$Dovecot_PASS
|
||||
|
||||
password_query = \
|
||||
SELECT userid AS "user", password FROM dovecotpassword('%Ln', '%Ld') WHERE %Ls
|
||||
|
||||
# uncomment this user_query if you want to use the quota plugin
|
||||
#user_query = \
|
||||
# SELECT home, uid, gid, mail, quota_rule FROM dovecotquotauser('%Ln', '%Ld')
|
||||
|
||||
# otherwise uncomment the following user_query
|
||||
#user_query = SELECT home, uid, gid, mail FROM dovecotuser('%Ln', '%Ld')
|
||||
|
||||
iterate_query = \
|
||||
SELECT local_part AS username, domain_name.domainname AS domain \
|
||||
FROM users \
|
||||
LEFT JOIN domain_data USING (gid) \
|
||||
LEFT JOIN domain_name USING (gid)
|
||||
@@ -0,0 +1,2 @@
|
||||
# handled protocols
|
||||
protocols = imap lmtp
|
||||
|
||||
Reference in New Issue
Block a user