[Dovecot] Enable mail_log (events: delete undelete expunge copy mailbox_delete mailbox_rename)
[Dovecot] Increase vsz_limit for some services to 1 G [Dovecot] Enable auth_cachemaster
parent
b3518b0749
commit
224a5ebd9a
|
@ -12,8 +12,9 @@ disable_plaintext_auth = yes
|
||||||
#mail_nfs_index = yes
|
#mail_nfs_index = yes
|
||||||
#mail_nfs_storage = yes
|
#mail_nfs_storage = yes
|
||||||
login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k"
|
login_log_format_elements = "user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k"
|
||||||
mail_plugins = quota acl zlib listescape mail_crypt mail_crypt_acl
|
|
||||||
mail_home = /var/vmail/%d/%n
|
mail_home = /var/vmail/%d/%n
|
||||||
|
mail_location = maildir:~/
|
||||||
|
mail_plugins = quota acl zlib listescape mail_crypt mail_crypt_acl mail_log notify
|
||||||
mail_attachment_fs = crypt:set_prefix=mail_crypt_global:posix:
|
mail_attachment_fs = crypt:set_prefix=mail_crypt_global:posix:
|
||||||
mail_attachment_dir = /var/attachments
|
mail_attachment_dir = /var/attachments
|
||||||
mail_attachment_min_size = 128k
|
mail_attachment_min_size = 128k
|
||||||
|
@ -177,7 +178,7 @@ namespace {
|
||||||
type = shared
|
type = shared
|
||||||
separator = /
|
separator = /
|
||||||
prefix = Shared/%%u/
|
prefix = Shared/%%u/
|
||||||
location = auto:%%h/:INDEX=~/Shared/%%u:CONTROL=~/Shared/%%u
|
location = maildir:%%h/:INDEX=~/Shared/%%u;CONTROL=~/Shared/%%u
|
||||||
subscriptions = no
|
subscriptions = no
|
||||||
list = children
|
list = children
|
||||||
}
|
}
|
||||||
|
@ -218,22 +219,22 @@ service managesieve-login {
|
||||||
}
|
}
|
||||||
service_count = 1
|
service_count = 1
|
||||||
process_min_avail = 2
|
process_min_avail = 2
|
||||||
vsz_limit = 256 M
|
vsz_limit = 1G
|
||||||
}
|
}
|
||||||
service imap-login {
|
service imap-login {
|
||||||
service_count = 1
|
service_count = 1
|
||||||
process_limit = 500
|
process_limit = 500
|
||||||
vsz_limit = 256 M
|
vsz_limit = 1G
|
||||||
user = dovenull
|
user = dovenull
|
||||||
}
|
}
|
||||||
service pop3-login {
|
service pop3-login {
|
||||||
service_count = 1
|
service_count = 1
|
||||||
vsz_limit = 256 M
|
vsz_limit = 1G
|
||||||
}
|
}
|
||||||
service imap {
|
service imap {
|
||||||
executable = imap imap-postlogin
|
executable = imap imap-postlogin
|
||||||
user = vmail
|
user = vmail
|
||||||
vsz_limit = 256 M
|
vsz_limit = 1G
|
||||||
}
|
}
|
||||||
service managesieve {
|
service managesieve {
|
||||||
process_limit = 256
|
process_limit = 256
|
||||||
|
@ -253,7 +254,7 @@ userdb {
|
||||||
}
|
}
|
||||||
protocol imap {
|
protocol imap {
|
||||||
imap_metadata = yes
|
imap_metadata = yes
|
||||||
mail_plugins = quota imap_quota imap_acl acl zlib imap_zlib imap_sieve listescape mail_crypt mail_crypt_acl
|
mail_plugins = quota imap_quota imap_acl acl zlib imap_zlib imap_sieve listescape mail_crypt mail_crypt_acl notify mail_log
|
||||||
}
|
}
|
||||||
mail_attribute_dict = file:%h/dovecot-attributes
|
mail_attribute_dict = file:%h/dovecot-attributes
|
||||||
protocol lmtp {
|
protocol lmtp {
|
||||||
|
@ -305,6 +306,10 @@ plugin {
|
||||||
|
|
||||||
# Enable compression while saving, lz4 Dovecot v2.2.11+
|
# Enable compression while saving, lz4 Dovecot v2.2.11+
|
||||||
zlib_save = lz4
|
zlib_save = lz4
|
||||||
|
|
||||||
|
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
|
||||||
|
mail_log_fields = uid box msgid size
|
||||||
|
mail_log_cached_only = yes
|
||||||
}
|
}
|
||||||
dict {
|
dict {
|
||||||
sqlquota = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-quota.conf
|
sqlquota = mysql:/usr/local/etc/dovecot/sql/dovecot-dict-sql-quota.conf
|
||||||
|
@ -328,4 +333,8 @@ service stats {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
imap_max_line_length = 2 M
|
imap_max_line_length = 2 M
|
||||||
|
auth_cache_verify_password_with_worker = yes
|
||||||
|
auth_cache_negative_ttl = 0
|
||||||
|
auth_cache_ttl = 30 s
|
||||||
|
auth_cache_size = 2 M
|
||||||
!include_try /usr/local/etc/dovecot/extra.conf
|
!include_try /usr/local/etc/dovecot/extra.conf
|
||||||
|
|
Loading…
Reference in New Issue