Merge pull request #66 from fsr/mail-listescape
mail: Enable the listescape plugin
This commit is contained in:
commit
0c653daf0f
|
@ -177,60 +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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
plugin {
|
mail_plugins = $mail_plugins listescape
|
||||||
sieve_plugins = sieve_imapsieve sieve_extprograms
|
plugin {
|
||||||
sieve_global_extensions = +vnd.dovecot.pipe
|
sieve_plugins = sieve_imapsieve sieve_extprograms
|
||||||
sieve_pipe_bin_dir = /etc/dovecot/sieve-pipe
|
sieve_global_extensions = +vnd.dovecot.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/
|
||||||
|
listescape_char = "\\"
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
opendkim = {
|
opendkim = {
|
||||||
|
|
Loading…
Reference in a new issue