This commit is contained in:
traveler 2025-04-17 17:29:05 -05:00
commit 5aa7d034f7
3292 changed files with 465160 additions and 0 deletions

View file

@ -0,0 +1,7 @@
headline: lang.rsettings_preset_1
content: |
priority = 10;
authenticated = yes;
apply "default" {
symbols_enabled = ["BCC", "DKIM_SIGNED", "RATELIMITED", "RATELIMIT_UPDATE", "RATELIMIT_CHECK", "DYN_RL_CHECK", "HISTORY_SAVE", "MILTER_HEADERS", "ARC_SIGNED"];
}

View file

@ -0,0 +1,13 @@
headline: lang.rsettings_preset_3
content: |
priority = 10;
rcpt = "internal-only@domain.tld";
# Multiple allowed hosts
# from = "/^((?!(.*@allowed-domain\.tld|.*@other-allowed-domain\.tld)).)*$/";
from = "/^((?!.*@domain\.tld).)*$/";
apply "default" {
MAILCOW_BLACK = 9999.0;
}
symbols [
"MAILCOW_BLACK"
]

View file

@ -0,0 +1,11 @@
headline: lang.rsettings_preset_4
content: |
priority = 10;
rcpt = "/.*@develcow.de$/";
from = "/.*/";
apply "default" {
MAILCOW_WHITE = -9999.0;
}
symbols [
"MAILCOW_WHITE"
]

View file

@ -0,0 +1,10 @@
headline: lang.sieve_preset_1
content: |
require ["reject","body","regex"];
if anyof (body :raw :regex ["filename=\".*\\.(doc|exe|moo)\""]) {
reject text:
doc, exe and moo are dangerous file extensions.
Why would you do that? I am a sad cow.
.
;
}

View file

@ -0,0 +1,7 @@
headline: lang.sieve_preset_2
content: |
require ["envelope", "imap4flags"];
if envelope "from" "mark@me-read.com"
{
setflag "\\seen";
}

View file

@ -0,0 +1,3 @@
headline: lang.sieve_preset_3
content: |
discard; stop;

View file

@ -0,0 +1,4 @@
headline: lang.sieve_preset_4
content: |
require "fileinto";
fileinto "INBOX"; stop;

View file

@ -0,0 +1,16 @@
headline: lang.sieve_preset_5
content: |
require "vacation-seconds";
if true
{
# Only send once a day:
# vacation :seconds 86400 text:
# Only send once every 300 seconds:
# vacation :seconds 300 text:
# Else:
vacation text:
I am on holidays, yay!
Mail me later, alligator.
.
;
}

View file

@ -0,0 +1,10 @@
headline: lang.sieve_preset_6
content: |
require ["reject"];
# Rejects are sent from postmaster@mailcow_hostname, make sure DMARC/SPF are fine
# You should prefer rejects via mailcow blacklists
reject text:
I am not taking mail from you, and I don't
want your birdseed, either!
.
;

View file

@ -0,0 +1,7 @@
headline: lang.sieve_preset_7
content: |
redirect "other-address@domain.tld";
# Either keep after redirecting:
# keep;
# Or redirect and drop:
discard; stop;

View file

@ -0,0 +1,18 @@
headline: lang.sieve_preset_8
content: |
require "fileinto";
require "mailbox";
require "variables";
require "subaddress";
require "envelope";
require "duplicate";
require "imap4flags";
if header :matches "To" "*mail@domain.tld*" {
redirect "anothermail@anotherdomain.tld";
setflag "\\seen"; /* Mark mail as read */
fileInto "INBOX/SubFolder"; /* Move mail on subfolder after */
} else {
# The rest goes into INBOX
# default is "implicit keep", we do it explicitly here
keep;
}