added some install files
This commit is contained in:
3
install/files/dovecot/conf.d/10-auth.conf
Normal file
3
install/files/dovecot/conf.d/10-auth.conf
Normal file
@ -0,0 +1,3 @@
|
||||
auth_mechanisms = plain login
|
||||
!include auth-system.conf.ext
|
||||
!include auth-sql.conf.ext
|
32
install/files/dovecot/conf.d/10-director.conf
Normal file
32
install/files/dovecot/conf.d/10-director.conf
Normal file
@ -0,0 +1,32 @@
|
||||
# To enable director service, uncomment the modes and assign a port.
|
||||
service director {
|
||||
unix_listener login/director {
|
||||
#mode = 0666
|
||||
}
|
||||
fifo_listener login/proxy-notify {
|
||||
#mode = 0666
|
||||
}
|
||||
unix_listener director-userdb {
|
||||
#mode = 0600
|
||||
}
|
||||
inet_listener {
|
||||
#port =
|
||||
}
|
||||
}
|
||||
|
||||
# Enable director for the wanted login services by telling them to
|
||||
# connect to director socket instead of the default login socket:
|
||||
service imap-login {
|
||||
#executable = imap-login director
|
||||
}
|
||||
service pop3-login {
|
||||
#executable = pop3-login director
|
||||
}
|
||||
service submission-login {
|
||||
#executable = submission-login director
|
||||
}
|
||||
|
||||
# Enable director for LMTP proxying:
|
||||
protocol lmtp {
|
||||
#auth_socket_path = director-userdb
|
||||
}
|
13
install/files/dovecot/conf.d/10-mail.conf
Normal file
13
install/files/dovecot/conf.d/10-mail.conf
Normal file
@ -0,0 +1,13 @@
|
||||
mail_location = maildir:/srv/vmail/%d/%n
|
||||
namespace inbox {
|
||||
inbox = yes
|
||||
}
|
||||
mail_uid = 2000
|
||||
mail_gid = 2000
|
||||
mail_privileged_group = vmail
|
||||
first_valid_uid = 2000
|
||||
last_valid_uid = 2000
|
||||
mail_plugins = old_stats
|
||||
protocol !indexer-worker {
|
||||
}
|
||||
maildir_copy_with_hardlinks = yes
|
65
install/files/dovecot/conf.d/10-master.conf
Normal file
65
install/files/dovecot/conf.d/10-master.conf
Normal file
@ -0,0 +1,65 @@
|
||||
service imap-login {
|
||||
inet_listener imap {
|
||||
port = 143
|
||||
}
|
||||
inet_listener imaps {
|
||||
port = 993
|
||||
ssl = yes
|
||||
}
|
||||
|
||||
service_count = 0
|
||||
}
|
||||
|
||||
service pop3-login {
|
||||
inet_listener pop3 {
|
||||
port = 110
|
||||
}
|
||||
inet_listener pop3s {
|
||||
port = 995
|
||||
ssl = yes
|
||||
}
|
||||
}
|
||||
|
||||
service lmtp {
|
||||
unix_listener /var/spool/postfix/private/dovecot-lmtp {
|
||||
group = postfix
|
||||
mode = 0666
|
||||
user = postfix
|
||||
}
|
||||
}
|
||||
|
||||
service imap {
|
||||
}
|
||||
|
||||
service pop3 {
|
||||
}
|
||||
|
||||
service auth {
|
||||
unix_listener auth-userdb {
|
||||
mode = 0666
|
||||
user = vmail
|
||||
group = vmail
|
||||
}
|
||||
|
||||
# Postfix smtp-auth
|
||||
unix_listener /var/spool/postfix/private/auth {
|
||||
mode = 0660
|
||||
user = postfix
|
||||
group = postfix
|
||||
}
|
||||
}
|
||||
|
||||
service auth-worker {
|
||||
}
|
||||
|
||||
service dict {
|
||||
unix_listener dict {
|
||||
}
|
||||
}
|
||||
|
||||
service old-stats {
|
||||
inet_listener {
|
||||
address = 127.0.0.1
|
||||
port = 24242
|
||||
}
|
||||
}
|
7
install/files/dovecot/conf.d/10-ssl.conf
Normal file
7
install/files/dovecot/conf.d/10-ssl.conf
Normal file
@ -0,0 +1,7 @@
|
||||
ssl = yes
|
||||
|
||||
ssl_cert = </etc/letsencrypt/live/{{.Hostname}}/fullchain.pem
|
||||
ssl_key = </etc/letsencrypt/live/{{.Hostname}}/privkey.pem
|
||||
ssl_require_crl = no
|
||||
ssl_dh=</etc/dovecot/dh.pem
|
||||
|
10
install/files/dovecot/conf.d/15-lda.conf
Normal file
10
install/files/dovecot/conf.d/15-lda.conf
Normal file
@ -0,0 +1,10 @@
|
||||
postmaster_address = {{.Postmaster}}
|
||||
hostname = {{.Hostname}}
|
||||
quota_full_tempfail = yes
|
||||
recipient_delimiter = +
|
||||
lda_mailbox_autocreate = yes
|
||||
lda_mailbox_autosubscribe = yes
|
||||
|
||||
protocol lda {
|
||||
mail_plugins = $mail_plugins sieve quota
|
||||
}
|
40
install/files/dovecot/conf.d/15-mailboxes.conf
Normal file
40
install/files/dovecot/conf.d/15-mailboxes.conf
Normal file
@ -0,0 +1,40 @@
|
||||
# NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
|
||||
namespace inbox {
|
||||
# These mailboxes are widely used and could perhaps be created automatically:
|
||||
mailbox Drafts {
|
||||
special_use = \Drafts
|
||||
}
|
||||
mailbox Junk {
|
||||
special_use = \Junk
|
||||
}
|
||||
mailbox Trash {
|
||||
special_use = \Trash
|
||||
}
|
||||
|
||||
# For \Sent mailboxes there are two widely used names. We'll mark both of
|
||||
# them as \Sent. User typically deletes one of them if duplicates are created.
|
||||
mailbox Sent {
|
||||
special_use = \Sent
|
||||
}
|
||||
mailbox "Sent Messages" {
|
||||
special_use = \Sent
|
||||
}
|
||||
|
||||
# If you have a virtual "All messages" mailbox:
|
||||
#mailbox virtual/All {
|
||||
# special_use = \All
|
||||
# comment = All my messages
|
||||
#}
|
||||
|
||||
# If you have a virtual "Flagged" mailbox:
|
||||
#mailbox virtual/Flagged {
|
||||
# special_use = \Flagged
|
||||
# comment = All my flagged messages
|
||||
#}
|
||||
|
||||
# If you have a virtual "Important" mailbox:
|
||||
#mailbox virtual/Important {
|
||||
# special_use = \Important
|
||||
# comment = All my important messages
|
||||
#}
|
||||
}
|
3
install/files/dovecot/conf.d/20-imap.conf
Normal file
3
install/files/dovecot/conf.d/20-imap.conf
Normal file
@ -0,0 +1,3 @@
|
||||
protocol imap {
|
||||
mail_plugins = $mail_plugins quota imap_quota
|
||||
}
|
4
install/files/dovecot/conf.d/20-lmtp.conf
Normal file
4
install/files/dovecot/conf.d/20-lmtp.conf
Normal file
@ -0,0 +1,4 @@
|
||||
protocol lmtp {
|
||||
postmaster_address = info@icod.de
|
||||
mail_plugins = quota sieve
|
||||
}
|
57
install/files/dovecot/conf.d/20-managesieve.conf
Normal file
57
install/files/dovecot/conf.d/20-managesieve.conf
Normal file
@ -0,0 +1,57 @@
|
||||
protocols = $protocols sieve
|
||||
|
||||
# Service definitions
|
||||
|
||||
service managesieve-login {
|
||||
inet_listener sieve {
|
||||
address = 127.0.0.1
|
||||
port = 4190
|
||||
}
|
||||
|
||||
service_count = 1
|
||||
}
|
||||
|
||||
service managesieve {
|
||||
}
|
||||
|
||||
# Service configuration
|
||||
|
||||
protocol sieve {
|
||||
# Maximum ManageSieve command line length in bytes. ManageSieve usually does
|
||||
# not involve overly long command lines, so this setting will not normally
|
||||
# need adjustment
|
||||
#managesieve_max_line_length = 65536
|
||||
|
||||
# Maximum number of ManageSieve connections allowed for a user from each IP
|
||||
# address.
|
||||
# NOTE: The username is compared case-sensitively.
|
||||
#mail_max_userip_connections = 10
|
||||
|
||||
# Space separated list of plugins to load (none known to be useful so far).
|
||||
# Do NOT try to load IMAP plugins here.
|
||||
#mail_plugins =
|
||||
|
||||
# MANAGESIEVE logout format string:
|
||||
# %i - total number of bytes read from client
|
||||
# %o - total number of bytes sent to client
|
||||
#managesieve_logout_format = bytes=%i/%o
|
||||
|
||||
# To fool ManageSieve clients that are focused on CMU's timesieved you can
|
||||
# specify the IMPLEMENTATION capability that Dovecot reports to clients.
|
||||
# For example: 'Cyrus timsieved v2.2.13'
|
||||
#managesieve_implementation_string = Dovecot Pigeonhole
|
||||
|
||||
# Explicitly specify the SIEVE and NOTIFY capability reported by the server
|
||||
# before login. If left unassigned these will be reported dynamically
|
||||
# according to what the Sieve interpreter supports by default (after login
|
||||
# this may differ depending on the user).
|
||||
#managesieve_sieve_capability =
|
||||
#managesieve_notify_capability =
|
||||
|
||||
# The maximum number of compile errors that are returned to the client upon
|
||||
# script upload or script verification.
|
||||
#managesieve_max_compile_errors = 5
|
||||
|
||||
# Refer to 90-sieve.conf for script quota configuration and configuration of
|
||||
# Sieve execution limits.
|
||||
}
|
3
install/files/dovecot/conf.d/20-pop3.conf
Normal file
3
install/files/dovecot/conf.d/20-pop3.conf
Normal file
@ -0,0 +1,3 @@
|
||||
protocol pop3 {
|
||||
mail_plugins = $mail_plugins quota
|
||||
}
|
3
install/files/dovecot/conf.d/20-submission.conf
Normal file
3
install/files/dovecot/conf.d/20-submission.conf
Normal file
@ -0,0 +1,3 @@
|
||||
protocol submission {
|
||||
}
|
||||
|
5
install/files/dovecot/conf.d/90-acl.conf
Normal file
5
install/files/dovecot/conf.d/90-acl.conf
Normal file
@ -0,0 +1,5 @@
|
||||
plugin {
|
||||
}
|
||||
|
||||
plugin {
|
||||
}
|
2
install/files/dovecot/conf.d/90-plugin.conf
Normal file
2
install/files/dovecot/conf.d/90-plugin.conf
Normal file
@ -0,0 +1,2 @@
|
||||
plugin {
|
||||
}
|
11
install/files/dovecot/conf.d/90-quota.conf
Normal file
11
install/files/dovecot/conf.d/90-quota.conf
Normal file
@ -0,0 +1,11 @@
|
||||
plugin {
|
||||
}
|
||||
|
||||
plugin {
|
||||
}
|
||||
|
||||
plugin {
|
||||
}
|
||||
|
||||
plugin {
|
||||
}
|
2
install/files/dovecot/conf.d/90-sieve-extprograms.conf
Normal file
2
install/files/dovecot/conf.d/90-sieve-extprograms.conf
Normal file
@ -0,0 +1,2 @@
|
||||
plugin {
|
||||
}
|
3
install/files/dovecot/conf.d/90-sieve.conf
Normal file
3
install/files/dovecot/conf.d/90-sieve.conf
Normal file
@ -0,0 +1,3 @@
|
||||
plugin {
|
||||
sieve = file:~/sieve;active=~/.dovecot.sieve
|
||||
}
|
9
install/files/dovecot/conf.d/auth-checkpassword.conf.ext
Normal file
9
install/files/dovecot/conf.d/auth-checkpassword.conf.ext
Normal file
@ -0,0 +1,9 @@
|
||||
passdb {
|
||||
driver = checkpassword
|
||||
args = /usr/bin/checkpassword
|
||||
}
|
||||
|
||||
# passdb lookup should return also userdb info
|
||||
userdb {
|
||||
driver = prefetch
|
||||
}
|
6
install/files/dovecot/conf.d/auth-deny.conf.ext
Normal file
6
install/files/dovecot/conf.d/auth-deny.conf.ext
Normal file
@ -0,0 +1,6 @@
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
deny = yes
|
||||
|
||||
args = /etc/dovecot/deny-users
|
||||
}
|
10
install/files/dovecot/conf.d/auth-dict.conf.ext
Normal file
10
install/files/dovecot/conf.d/auth-dict.conf.ext
Normal file
@ -0,0 +1,10 @@
|
||||
passdb {
|
||||
driver = dict
|
||||
|
||||
args = /etc/dovecot/dovecot-dict-auth.conf.ext
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = dict
|
||||
args = /etc/dovecot/dovecot-dict-auth.conf.ext
|
||||
}
|
11
install/files/dovecot/conf.d/auth-ldap.conf.ext
Normal file
11
install/files/dovecot/conf.d/auth-ldap.conf.ext
Normal file
@ -0,0 +1,11 @@
|
||||
passdb {
|
||||
driver = ldap
|
||||
|
||||
# Path for LDAP configuration file, see example-config/dovecot-ldap.conf.ext
|
||||
args = /etc/dovecot/dovecot-ldap.conf.ext
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = ldap
|
||||
args = /etc/dovecot/dovecot-ldap.conf.ext
|
||||
}
|
7
install/files/dovecot/conf.d/auth-master.conf.ext
Normal file
7
install/files/dovecot/conf.d/auth-master.conf.ext
Normal file
@ -0,0 +1,7 @@
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
master = yes
|
||||
args = /etc/dovecot/master-users
|
||||
|
||||
pass = yes
|
||||
}
|
15
install/files/dovecot/conf.d/auth-passwdfile.conf.ext
Normal file
15
install/files/dovecot/conf.d/auth-passwdfile.conf.ext
Normal file
@ -0,0 +1,15 @@
|
||||
passdb {
|
||||
driver = passwd-file
|
||||
args = scheme=CRYPT username_format=%u /etc/dovecot/users
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = passwd-file
|
||||
args = username_format=%u /etc/dovecot/users
|
||||
|
||||
# Default fields that can be overridden by passwd-file
|
||||
#default_fields = quota_rule=*:storage=1G
|
||||
|
||||
# Override fields from passwd-file
|
||||
#override_fields = home=/home/virtual/%u
|
||||
}
|
14
install/files/dovecot/conf.d/auth-sql.conf.ext
Normal file
14
install/files/dovecot/conf.d/auth-sql.conf.ext
Normal file
@ -0,0 +1,14 @@
|
||||
passdb {
|
||||
driver = sql
|
||||
|
||||
args = /etc/dovecot/dovecot-sql.conf.ext
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = prefetch
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = sql
|
||||
args = /etc/dovecot/dovecot-sql.conf.ext
|
||||
}
|
8
install/files/dovecot/conf.d/auth-system.conf.ext
Normal file
8
install/files/dovecot/conf.d/auth-system.conf.ext
Normal file
@ -0,0 +1,8 @@
|
||||
passdb {
|
||||
driver = pam
|
||||
args = "*"
|
||||
}
|
||||
|
||||
userdb {
|
||||
driver = passwd
|
||||
}
|
23
install/files/dovecot/dovecot-dict-auth.conf.ext
Normal file
23
install/files/dovecot/dovecot-dict-auth.conf.ext
Normal file
@ -0,0 +1,23 @@
|
||||
default_pass_scheme = MD5
|
||||
iterate_prefix = userdb/
|
||||
key passdb {
|
||||
key = passdb/%u
|
||||
format = json
|
||||
}
|
||||
key userdb {
|
||||
key = userdb/%u
|
||||
format = json
|
||||
}
|
||||
key quota {
|
||||
key = userdb/%u/quota
|
||||
default_value = 100M
|
||||
}
|
||||
|
||||
passdb_objects = passdb
|
||||
|
||||
userdb_objects = userdb
|
||||
|
||||
userdb_fields {
|
||||
quota_rule = *:storage=%{dict:quota}
|
||||
mail = maildir:%{dict:userdb.home}/Maildir
|
||||
}
|
12
install/files/dovecot/dovecot-dict-sql.conf.ext
Normal file
12
install/files/dovecot/dovecot-dict-sql.conf.ext
Normal file
@ -0,0 +1,12 @@
|
||||
map {
|
||||
pattern = priv/quota/storage
|
||||
table = quota
|
||||
username_field = username
|
||||
value_field = bytes
|
||||
}
|
||||
map {
|
||||
pattern = priv/quota/messages
|
||||
table = quota
|
||||
username_field = username
|
||||
value_field = messages
|
||||
}
|
16
install/files/dovecot/dovecot-sql.conf.ext
Normal file
16
install/files/dovecot/dovecot-sql.conf.ext
Normal file
@ -0,0 +1,16 @@
|
||||
driver = mysql
|
||||
|
||||
connect = host=localhost user={{.User}} password={{.Password}} dbname={{.DBName}}
|
||||
|
||||
default_pass_scheme = CRYPT
|
||||
|
||||
password_query = SELECT username as user, password as password, \
|
||||
homedir AS userdb_home, maildir AS userdb_mail, \
|
||||
concat('*:bytes=', quota) as userdb_quota_rule, uid AS userdb_uid, gid AS userdb_gid \
|
||||
FROM mailbox \
|
||||
WHERE username = '%Lu' AND active = '1' \
|
||||
AND ( access_restriction = 'ALL' OR LOCATE( '%Us', access_restriction ) > 0 )
|
||||
|
||||
user_query = SELECT homedir AS home, maildir AS mail, \
|
||||
concat('*:bytes=', quota) as quota_rule, uid, gid \
|
||||
FROM mailbox WHERE username = '%u'
|
5
install/files/dovecot/dovecot.conf
Normal file
5
install/files/dovecot/dovecot.conf
Normal file
@ -0,0 +1,5 @@
|
||||
dict {
|
||||
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
|
||||
}
|
||||
!include conf.d/*.conf
|
||||
!include_try local.conf
|
Reference in New Issue
Block a user