Compare commits

..

No commits in common. "2855bd7d3f6d83fdf32963885e4042cd6b6a4cc3" and "185662635265714d930665b82e588fea6d02f4b9" have entirely different histories.

3 changed files with 1 additions and 114 deletions

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2024 Marcel Naeve / www.naeve.info
Copyright (c) 2024 manae
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,40 +1,2 @@
# managesieve-rulesets
In diesem Repository befinden sich Sieve bzw. Managesieve Regeln,
welche ich in "Regelsätze" einteile.
## Aktuelle Regelsätze:
- spamfilter
## Verwendung
Bitte bedenke, dass die Zielordner angepasst werden müssen.
Zum Beispiel ist bei mir der Ordner `SPAM` ein Unterordner meines Postfaches `INBOX`,
sollte bei euch der `SPAM` Ordner ein Hauptordner sein, müsst ihr also `INBOX.SPAM` durch `SPAM` ersetzen.
## License
MIT License
## Contribute
Du kannst gerne helfen zum Beispiel insbesondere die `spamfilter.sieve` zu erweitern für eine bessere Spam erkennung.
Möglichkeiten zum beitragen sind hier auf meiner ForgeJo-Installation oder per Mail an `contribute-sieve@naeve.info`.
Wollt Ihr auf die Contributors-Liste, denkt daran in Mails oder auf Discord eure Informationen zu hinterlassen
einen Anzeigenamen und ggf. eine Referenz zu euch wie eine Webseite oder ein Social Media Profil.
Alternativ könnt Ihr auch gerne auf den `Serious Pro` Discord Server joinen: https://discord.gg/f5Shx6EftZ
Einige der Regeln stammen ursprünglich aus einem Guide auf: http://wiki.wiba10.de/doku.php/software:mail:dovecot_sieve
### Contributors:
- Marcel Naeve ' www.naeve.info

View File

@ -1,75 +0,0 @@
require ["body","fileinto","envelope"];
# rule:[SPAM - Flagged]
if header :contains "X-Spam-Flag" "YES"
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[known SPAM - SPF reply - from]
if anyof (header :contains "from" ["alpoz.com","beycloud.net"], header :contains "subject" ["Undelivered Mail Returned to Sender","Delivery Status Notification"])
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Mail was processed by an unknown host or a host that is often used for Spams]
if header :matches "Received" ["from *otvk.pl (*?)","from localhost.localdomain (*?)","from shawcable.net (*?)"]
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Message-ID contains a dot and @]
if not header :matches "Message-Id" "*?@*?.??*"
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Keywords that are contained in subject]
if header :contains "subject" ["Mr.Sung Lee","datingfuhildo.ru","firsteuro-consulting.com","uvipeliterubypalace.pl","Top money making industry","Buy shares under","Hottest top stock is S CX N","worldofconsult.com","avipeliterubypalace.pl","Josef Nakladal","Profit Generating Industry","datinglisa.ru","josefnak@yahoo.de","Oil player","Who is Making Money"]
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Keywords that are contained in message text]
if body :text :contains ["my intimate photos","viagra","cialis","Mr.Sung Lee","datingfuhildo.ru","firsteuro-consulting.com","uvipeliterubypalace.pl","Top money making industry","Buy shares under","Hottest top stock is S CX N","worldofconsult.com","avipeliterubypalace.pl","Josef Nakladal","Profit Generating Industry","datinglisa.ru","josefnak@yahoo.de","Oil player","Who is Making Money","ask that you keep this award away from public"]
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Keywords that matches]
if anyof (header :matches "subject" ["S?C?X?N","GT?RL"], body :text :contains ["S?C?X?N","GT?RL"])
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Field Message-ID is empty]
if header :is "Message-Id" ""
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[Received from unknown]
if header :contains "Received" ["unknown","User"]
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[well-known SPAM X-Mailer]
if header :contains "X-Mailer" ["The Bat","Microsoft Outlook Express","JavaMailer"]
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[known SPAM User-Agents]
if header :contains "User-Agent" ["The Bat","Microsoft Outlook Express","JavaMailer"]
{
fileinto "INBOX.SPAM";
stop;
}
# rule:[well-known SPAM Newsletters]
if header :contains "to" ["dasistgut.net"]
{
fileinto "INBOX.SPAM";
stop;
}