mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
96 lines
1.9 KiB
Text
96 lines
1.9 KiB
Text
!include yunohost.d/pre-ext.conf
|
|
|
|
listen = *, ::
|
|
auth_mechanisms = plain login
|
|
|
|
mail_gid = 8
|
|
mail_home = /var/mail/%n
|
|
mail_location = maildir:/var/mail/%n
|
|
mail_uid = 500
|
|
|
|
protocols = imap sieve
|
|
|
|
mail_plugins = $mail_plugins quota
|
|
|
|
|
|
ssl = yes
|
|
ssl_cert = </etc/yunohost/certs/{{ main_domain }}/crt.pem
|
|
ssl_key = </etc/yunohost/certs/{{ main_domain }}/key.pem
|
|
ssl_protocols = !SSLv3
|
|
|
|
passdb {
|
|
args = /etc/dovecot/dovecot-ldap.conf
|
|
driver = ldap
|
|
}
|
|
|
|
userdb {
|
|
args = /etc/dovecot/dovecot-ldap.conf
|
|
driver = ldap
|
|
}
|
|
|
|
protocol imap {
|
|
imap_client_workarounds =
|
|
mail_plugins = $mail_plugins imap_quota antispam
|
|
}
|
|
|
|
|
|
protocol lda {
|
|
auth_socket_path = /var/run/dovecot/auth-master
|
|
mail_plugins = quota sieve
|
|
postmaster_address = postmaster@{{ main_domain }}
|
|
}
|
|
|
|
protocol sieve {
|
|
}
|
|
|
|
service auth {
|
|
unix_listener /var/spool/postfix/private/auth {
|
|
group = postfix
|
|
mode = 0660
|
|
user = postfix
|
|
}
|
|
unix_listener auth-master {
|
|
group = mail
|
|
mode = 0660
|
|
user = vmail
|
|
}
|
|
}
|
|
|
|
service quota-warning {
|
|
executable = script /usr/bin/quota-warning.sh
|
|
user = vmail
|
|
unix_listener quota-warning {
|
|
}
|
|
}
|
|
|
|
plugin {
|
|
sieve = /var/mail/sievescript/%n/.dovecot.sieve
|
|
sieve_dir = /var/mail/sievescript/%n/scripts/
|
|
sieve_before = /etc/dovecot/global_script/
|
|
}
|
|
|
|
plugin {
|
|
antispam_debug_target = syslog
|
|
antispam_verbose_debug = 0
|
|
antispam_backend = pipe
|
|
antispam_spam = Junk;SPAM
|
|
antispam_trash = Trash
|
|
antispam_pipe_program = /usr/bin/rspamc
|
|
antispam_pipe_program_args = -h;localhost:11334;-P;q1
|
|
antispam_pipe_program_spam_arg = learn_spam
|
|
antispam_pipe_program_notspam_arg = learn_ham
|
|
}
|
|
|
|
plugin {
|
|
quota = maildir:User quota
|
|
quota_rule2 = SPAM:ignore
|
|
quota_rule3 = Trash:ignore
|
|
}
|
|
|
|
plugin {
|
|
quota_warning = storage=95%% quota-warning 95 %u
|
|
quota_warning2 = storage=80%% quota-warning 80 %u
|
|
quota_warning3 = -storage=100%% quota-warning below %u # user is no longer over quota
|
|
}
|
|
|
|
!include yunohost.d/post-ext.conf
|