I really like MIAB, but Spam Handling is an absolute Pain.
I´ve ended up creating my own filter with a Sieve file.
In the Folder /etc/dovecot I´ve created the file “sieve-spam.sieve” with this code - works like a charm.
require ["regex", "fileinto", "imap4flags", "reject", "body", "mailbox"];
if address :domain :matches "from" ["*fisteraser.de", "*freenet-mobilfunk.de", "*.br", "*.tr", "*.xyz", "*.jp", "*.ro", "*.click", "*.pl", "*.cn", "*.tk", "*.buzz", "*.top", "*.ga", "*.cf", "*.gq", "*.icu", "*.wang", "*.host", "*.ir", "*.mg", "*.au", "*.ca", "*.ltd", "*.pro", "*.ru", "*.mx", "*.id"]
{
reject "REJECTED";
stop;
}
if header :contains "from" ["huusk", "tfbank", "servicekarte", "doktor", "freenet", "fisteraser", "comdirect", "lidl", "wholesale", "emura"]
{
reject "REJECTED";
stop;
}
if header :contains "subject" ["info ", "spende", "invest", "info,", "$user_name$", "keto", "wachstum", "geld", "bersetz", " KI ", "prosta", "reich", "schuppe", "schlank", "dividend", "messer der welt", "apotheke", "sex"]
{
reject "REJECTED";
stop;
}
#if body :content "text" :contains ["finds you well", "%User_Name%", "keto", "Achtung, info!", "finanzielle Probleme", "manneskraft", "antibiotika", "prostat", "stehkraft", "liebesleben", "wie es frueher noch der fall war", "schuppen", "erektion", "arznei", "diskret in den briefkasten", "appetit", "apotheke", "fitnes", "sex", "schmerzen", "unbehagen"]
# {
# #reject "REJECTED"
# fileinto :create "Body Test";
# stop;
# }