90 lines
2.1 KiB
Plaintext
90 lines
2.1 KiB
Plaintext
listen = *
|
|
protocols = imap
|
|
first_valid_uid = 1000
|
|
first_valid_gid = 1000
|
|
mail_location = maildir:/var/vmail/%d/%n
|
|
mail_plugin_dir = /usr/local/lib/dovecot
|
|
disable_plaintext_auth = yes
|
|
|
|
managesieve_notify_capability = mailto
|
|
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext imapsieve vnd.dovecot.imapsieve
|
|
|
|
mbox_write_locks = fcntl
|
|
mmap_disable = yes
|
|
namespace inbox {
|
|
inbox = yes
|
|
location =
|
|
mailbox Archive {
|
|
auto = subscribe
|
|
special_use = \Archive
|
|
}
|
|
mailbox Drafts {
|
|
auto = subscribe
|
|
special_use = \Drafts
|
|
}
|
|
mailbox Junk {
|
|
auto = subscribe
|
|
special_use = \Junk
|
|
}
|
|
mailbox Sent {
|
|
auto = subscribe
|
|
special_use = \Sent
|
|
}
|
|
mailbox Trash {
|
|
auto = subscribe
|
|
special_use = \Trash
|
|
}
|
|
prefix =
|
|
}
|
|
|
|
service auth {
|
|
user = $default_internal_user
|
|
group = _maildaemons
|
|
}
|
|
|
|
passdb {
|
|
args = scheme=blf-crypt /etc/mail/passwd
|
|
driver = passwd-file
|
|
}
|
|
|
|
plugin {
|
|
imapsieve_mailbox1_before = file:/usr/local/lib/dovecot/sieve/report-spam.sieve
|
|
imapsieve_mailbox1_causes = COPY
|
|
imapsieve_mailbox1_name = Junk
|
|
imapsieve_mailbox2_before = file:/usr/local/lib/dovecot/sieve/report-ham.sieve
|
|
imapsieve_mailbox2_causes = COPY
|
|
imapsieve_mailbox2_from = Junk
|
|
imapsieve_mailbox2_name = *
|
|
sieve = file:~/sieve;active=~/.dovecot.sieve
|
|
sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
|
|
sieve_pipe_bin_dir = /usr/local/lib/dovecot/sieve
|
|
sieve_plugins = sieve_imapsieve sieve_extprograms
|
|
}
|
|
|
|
|
|
protocols = imap sieve
|
|
service imap-login {
|
|
inet_listener imap {
|
|
port = 143
|
|
}
|
|
}
|
|
|
|
ssl = required
|
|
|
|
ssl_min_protocol = TLSv1.2
|
|
ssl_cipher_list = EECDH+AESGCM
|
|
ssl_prefer_server_ciphers = yes
|
|
#ssl_cipher_list = ALL:!DH:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH
|
|
|
|
ssl_cert = </etc/ssl/__DOMAIN__.crt
|
|
ssl_key = </etc/ssl/private/__DOMAIN__.key
|
|
|
|
userdb {
|
|
driver = static
|
|
args = uid=vmail gid=vmail home=/var/vmail/%d/%n/
|
|
}
|
|
|
|
protocol imap {
|
|
mail_plugins = " imap_sieve"
|
|
}
|