Вот мой конф:
Код: Выделить всё
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login digest-md5 cram-md5
auth_verbose = yes
disable_plaintext_auth = no
last_valid_gid = 12
first_valid_uid = 8
mail_gid = mail
mail_privileged_group = mail
mail_uid = mail
base_dir = /var/run/dovecot/
info_log_path = /var/log/dovecot/dovecot.log
log_path = /var/log/dovecot/dovecot.log
mail_location = maildir:/srv/data/mail/var/spool/mail/%d/%n
libexec_dir = /usr/libexec/dovecot
sendmail_path = /usr/sbin/sendmail
login_greeting = Welcome to IMAP/POP3 server
mail_debug = yes
postmaster_address = fakeroot@mydomain.tld
mail_plugins = $mail_plugins autocreate quota imap_quota trash
quota_full_tempfail = yes
rejection_subject = Rejected: %s
rejection_reason = Ваше сообщение для <%t> автоматически отклонено:%n%r
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lda_original_recipient_header =
protocol lda {
log_path = /var/log/dovecot/dovecot-lda.log
info_log_path = /var/log/dovecot/dovecot-lda.log
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = quota
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
# Trash
trash = /etc/dovecot/dovecot-trash.conf
# Autocreate
autocreate = INBOX
autocreate2 = Sent
autocreate3 = Trash
autocreate4 = Drafts
autocreate5 = Junk
autocreate6 = Spam
autosubscribe = INBOX
autosubscribe2 = Sent
autosubscribe3 = Trash
autosubscribe4 = Drafts
autosubscribe5 = Junk
autosubscribe6 = Spam
# Quotas
quota = maildir
quota_rule2 = Trash:storage=+20%%
quota_rule3 = Spam:ignore
quota_rule4 = Drafts:storage=+5%%
quota_rule5 = Sent:storage=+15%%
quota_rule6 = Junk:storage=+10%%
quota_warning = storage=100%% quota-exceeded 100 %u
quota_warning2 = storage=95%% quota-warning 95 %u
quota_warning3 = storage=90%% quota-warning 90 %u
quota_warning4 = storage=85%% quota-warning 85 %u
quota_warning5 = storage=80%% quota-warning 80 %u
quota_warning6 = storage=75%% quota-warning 75 %u
quota_warning7 = storage=70%% quota-warning 70 %u
quota_warning8 = storage=65%% quota-warning 65 %u
}
protocols = imap pop3
protocol imap {
mail_plugins = $mail_plugins autocreate quota imap_quota trash
imap_client_workarounds = tb-extra-mailbox-sep
}
protocol pop3 {
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format = %08Xu%08Xv
}
service imap-login {
inet_listener imap {
address = 0.0.0.0
port = 143
}
inet_listener imaps {
address = 0.0.0.0
port = 993
ssl = yes
}
}
service quota-warning {
executable = script /srv/data/mail/overquoted
user = dovecot
unix_listener quota-warning {
user = dovecot
mode = 0777
}
}
service imap {
process_limit = 1024
vsz_limit = 256 M
}
service lmtp {
inet_listener lmtp {
address = 192.168.50.1
port = 26
}
}
service pop3-login {
inet_listener pop3 {
address = 0.0.0.0
port = 110
}
inet_listener pop3s {
address = 0.0.0.0
port = 995
ssl = yes
}
}
service pop3 {
process_limit = 1024
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
service auth {
unix_listener auth-client {
mode = 0600
user = exim
group = exim
}
unix_listener auth-master {
mode = 0600
user = mail
}
unix_listener auth-userdb {
mode = 0600
user = mail
}
}
Код: Выделить всё
1 Trash
2 Spam
3 Sent
3 Sent Messages
UPD: В тандырной птице стоит Перемещать в Trash при удалении