mail: Enable the listescape plugin #66

Merged
hw0lff merged 2 commits from mail-listescape into main 2023-09-17 17:13:05 +02:00
Showing only changes of commit b357dd8590 - Show all commits

View file

@ -177,64 +177,64 @@ in
pkgs.dovecot_pigeonhole pkgs.dovecot_pigeonhole
]; ];
extraConfig = '' extraConfig = ''
auth_username_format = %Ln auth_username_format = %Ln
passdb { passdb {
driver = ldap driver = ldap
args = ${dovecot-ldap-args} args = ${dovecot-ldap-args}
} }
userdb { userdb {
driver = ldap driver = ldap
args = ${dovecot-ldap-args} args = ${dovecot-ldap-args}
} }
service auth { service auth {
unix_listener /var/lib/postfix/auth { unix_listener /var/lib/postfix/auth {
group = postfix group = postfix
mode = 0660 mode = 0660
user = postfix user = postfix
} }
} }
service managesieve-login { service managesieve-login {
inet_listener sieve { inet_listener sieve {
port = 4190 port = 4190
} }
service_count = 1 service_count = 1
} }
namespace inbox { namespace inbox {
separator = / separator = /
inbox = yes inbox = yes
} }
service lmtp { service lmtp {
unix_listener dovecot-lmtp { unix_listener dovecot-lmtp {
group = postfix group = postfix
mode = 0600 mode = 0600
user = postfix user = postfix
} }
client_limit = 1 client_limit = 1
} }
mail_plugins = $mail_plugins listescape mail_plugins = $mail_plugins listescape
plugin { plugin {
sieve_plugins = sieve_imapsieve sieve_extprograms sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_global_extensions = +vnd.dovecot.pipe sieve_global_extensions = +vnd.dovecot.pipe
sieve_pipe_bin_dir = /etc/dovecot/sieve-pipe sieve_pipe_bin_dir = /etc/dovecot/sieve-pipe
# Spam: From elsewhere to Spam folder or flag changed in Spam folder # Spam: From elsewhere to Spam folder or flag changed in Spam folder
imapsieve_mailbox1_name = Spam imapsieve_mailbox1_name = Spam
imapsieve_mailbox1_causes = COPY APPEND FLAG imapsieve_mailbox1_causes = COPY APPEND FLAG
imapsieve_mailbox1_before = file:/etc/dovecot/sieve/report-spam.sieve imapsieve_mailbox1_before = file:/etc/dovecot/sieve/report-spam.sieve
# Ham: From Spam folder to elsewhere # Ham: From Spam folder to elsewhere
imapsieve_mailbox2_name = * imapsieve_mailbox2_name = *
imapsieve_mailbox2_from = Spam imapsieve_mailbox2_from = Spam
imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_causes = COPY
imapsieve_mailbox2_before = file:/etc/dovecot/sieve/report-ham.sieve imapsieve_mailbox2_before = file:/etc/dovecot/sieve/report-ham.sieve
# https://doc.dovecot.org/configuration_manual/plugins/listescape_plugin/ # https://doc.dovecot.org/configuration_manual/plugins/listescape_plugin/
listescape_char = "\\" listescape_char = "\\"
} }
''; '';
}; };
opendkim = { opendkim = {