bullmail/script/dovecot.conf

100 lines
1.9 KiB
Plaintext

#logging
#auth_verbose = yes
#auth_debug = yes
#mail_debug = yes
#log_path = /var/log/dovecot.log
disable_plaintext_auth = no
auth_mechanisms = plain login
auth_username_format = %Ln
ssl = yes
ssl_cert = <KEY.pem
ssl_key = <KEY.key
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = </usr/share/dovecot/dh.pem
ssl_min_protocol = TLSv1.1
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imap_alt {
port = 1143
}
inet_listener imaps {
port = 993
ssl = yes
}
inet_listener imaps_alt {
port = 1993
ssl = yes
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}
mail_location = maildir:~/Maildir
mail_privileged_group = mail
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
namespace inbox {
inbox = yes
location = maildir:~/Maildir
prefix =
mailbox Drafts {
special_use = \Drafts
auto = subscribe
}
mailbox Junk {
special_use = \Junk
auto = subscribe
}
mailbox Sent {
special_use = \Sent
auto = subscribe
}
mailbox Trash {
special_use = \Trash
auto = subscribe
}
}
passdb {
driver = pam
}
userdb {
driver = passwd
}
plugin {
sieve_global_path = /etc/dovecot/sieve/spam2junk.sieve
#sieve_global_dir = /etc/dovecot/sieve/
#sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocol lmtp {
mail_plugins = $mail_plugins sieve
postmaster_address = postmaster@__domain__
mail_fsync = optimized
}
protocol lda {
mail_plugins = $mail_plugins sieve
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
protocols = imap lmtp