mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-24 17:16:15 +01:00
Email changes, enable sieve in Dovecot
Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
parent
5d41c9a3ae
commit
74fcc1a37a
|
@ -25,7 +25,27 @@ nglib.makeSystem {
|
|||
mail_location = "maildir:/maildir/%u";
|
||||
|
||||
protocol."imap" = { };
|
||||
protocol."lmtp" = {
|
||||
mail_plugins = [ "sieve" ];
|
||||
};
|
||||
|
||||
plugin."" = {
|
||||
sieve = pkgs.writeText "filter.sieve" ''
|
||||
require "variables";
|
||||
require "fileinto";
|
||||
|
||||
if header :matches "X-MAILBOX" "*" {
|
||||
set "DESIRED_MAILBOX" "''${0}";
|
||||
}
|
||||
|
||||
fileinto "''${DESIRED_MAILBOX}";
|
||||
'';
|
||||
};
|
||||
|
||||
mail_plugin_dir = pkgs.symlinkJoin {
|
||||
name = "dovecot-modules";
|
||||
paths = map (pkg: "${pkg}/lib/dovecot") ([ pkgs.dovecot pkgs.dovecot_pigeonhole ]);
|
||||
};
|
||||
|
||||
# Optimizations:
|
||||
# dotlock_use_excl = true;
|
||||
|
|
|
@ -64,7 +64,6 @@ nglib.makeSystem {
|
|||
''
|
||||
export PATH=${with pkgs; lib.makeBinPath [ busybox runit bash getmail6-fixed maildrop-fixed ]}:${pkgs.opensmtpd}/libexec/opensmtpd:$PATH
|
||||
|
||||
|
||||
chown vmail:vmail -R /getmail.d
|
||||
|
||||
set -m
|
||||
|
|
Loading…
Reference in a new issue