Adding hidden sieve config
This commit is contained in:
parent
331b403a74
commit
4e5c7f7fe8
4 changed files with 16 additions and 8 deletions
|
|
@ -48,22 +48,24 @@
|
||||||
];
|
];
|
||||||
quota = "1T";
|
quota = "1T";
|
||||||
sieveScript = ''
|
sieveScript = ''
|
||||||
require ["fileinto", "regex", "variables"];
|
require ["include", "fileinto", "mailbox", "copy", "regex", "variables"];
|
||||||
|
|
||||||
|
include :personal "hiddensieve";
|
||||||
|
|
||||||
if address :is :domain "X-Original-To" "lyes.eu" {
|
if address :is :domain "X-Original-To" "lyes.eu" {
|
||||||
if address :localpart :regex "X-Original-To" "^(([a-zA-Z]+\\.)*([a-zA-Z]+))(-([a-zA-Z0-9_.\\-]*))?''$" {
|
if address :localpart :regex "X-Original-To" "^(([a-zA-Z]+\\.)*([a-zA-Z]+))(-([a-zA-Z0-9_.\\-]*))?''$" {
|
||||||
set "mbox_candidate" "INBOX.''${1}";
|
set "mbox_candidate" "INBOX.''${1}";
|
||||||
fileinto "''${mbox_candidate}";
|
fileinto :create "''${mbox_candidate}";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fileinto "INBOX.other";
|
fileinto :create "INBOX.other";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif address :is "X-Original-To" "lyes@mail.lyes.eu" {
|
elsif address :is "X-Original-To" "lyes@mail.lyes.eu" {
|
||||||
fileinto "INBOX";
|
fileinto :create "INBOX";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fileinto "INBOX.other";
|
fileinto :create "INBOX.other";
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
@ -115,5 +117,13 @@
|
||||||
owner = "postfix";
|
owner = "postfix";
|
||||||
file = ../../../secrets/lyes/mail-passwd.age;
|
file = ../../../secrets/lyes/mail-passwd.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lyes-hidden-sieve = {
|
||||||
|
file = ../../../secrets/lyes/hidden-sieve.age;
|
||||||
|
path = "/var/sieve/lyes@mail.lyes.eu/scripts/hiddensieve.sieve";
|
||||||
|
owner = "virtualMail";
|
||||||
|
group = "virtualMail";
|
||||||
|
mode = "660";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ in
|
||||||
{
|
{
|
||||||
# Lyes
|
# Lyes
|
||||||
"secrets/lyes/mail-passwd.age".publicKeys = [ lyes zora ];
|
"secrets/lyes/mail-passwd.age".publicKeys = [ lyes zora ];
|
||||||
|
"secrets/lyes/hidden-sieve.age".publicKeys = [ lyes zora ];
|
||||||
|
|
||||||
# Zora
|
# Zora
|
||||||
"secrets/zora/services/kanidm-admin-password.age".publicKeys = all;
|
"secrets/zora/services/kanidm-admin-password.age".publicKeys = all;
|
||||||
|
|
|
||||||
BIN
secrets/lyes/hidden-sieve.age
Normal file
BIN
secrets/lyes/hidden-sieve.age
Normal file
Binary file not shown.
|
|
@ -138,10 +138,7 @@ in {
|
||||||
via
|
via
|
||||||
|
|
||||||
# Proton
|
# Proton
|
||||||
protonmail-bridge-gui
|
|
||||||
protonmail-desktop
|
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
proton-pass
|
|
||||||
|
|
||||||
# Multimedia
|
# Multimedia
|
||||||
pipewire.dev
|
pipewire.dev
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue