Täglich mehrmals die selbe Spam - wie filtern?

Wahnsinn! Da ich das jetzt kurz sehe, schaue ich mir morgen das gleich mal an!
Geil, es gibt ja doch jemanden der sich da auch ne Platte mal gemacht hat!
@Thorashh - Super
Das mit der Firewall blocken scheint mir die beste Methode zu sein! Das andere verschiebst Du aber in die Blacklist von Spam. Besser wäre das in die Blacklist der Domain zu verlagern. Solche Frechdachse sollten nicht mal in die Nähe vom Server kommen und voll zurückberfeuert werden. Was hast Du für ein System (Ubuntu ... mit Plesk O)?
 
@Thorashh
Ich bekomme das nicht hin in Plesk, wie hast du das mit dem Regelwerk umgesetzt? Wo und in welchen Verzeichnis....
So an für sich ne feine Sache! Aber ich werde doch wohl die Mailadresse ändern. Überall wo ich mich registriert hatte, habe ich immer fein Buch geführt. Vorgestern kamen alleine schon wieder 8 neue Mails von PKV... Tarif ... mit neuen Domainnamen rein. Insgesamt hatte ich schon 45 verschiedene Blockiert. Wahnsinn wa?
 
Moin

Ich verwende kein Plesk.
Bei mir läuft das ganze auf einem CentOS und die Administraion mache ich per Skript/Editor.

#1 ist ein Spamassassin Regelwerk, das packst Du in eine .cf Datei im SA Verzeichnis, damit die geladen wird.

#2 das selbe + loadplugin
Code:
loadplugin Mail::SpamAssassin::Plugin::SaveHits plugins/SaveHits.pm

Ich bin bei >780 Domains in der Blockliste
 
Ich hab ‪Ubuntu, mmm mal schauen, wie ich das umsetz. Guten Ansatz haste mir ja gegeben!
geblockt - Domain (da wird die Mal als unzustellbar zurückgefeuert) oder in/für Spam (das wäre ja nur die halbe Miete)
.... bei >780 Domains ..... - Unglaublich! (fassungslos)
 
Bei mir bringt das Regelwerk leider nichts. Es kommen immer noch ohne Ende Spams rein.

Ich bekomme seit dem auch immer diese Meldung im Log:

Code:
May 29 13:57:28 server spamd[7459]: config: invalid expression for rule MY_INSURANCE_0002: "(( __MY_INSURANCE_0002_01 + __MY_INSURANCE_0002_02 + __MY_INSURANCE_0002_03 + __MY_INSURANCE_0002_04 + __MY_INSURANCE_0002_05 + __MY_INSURANCE_0002_06 + __PS_INSURANCE_0002": syntax error
May 29 13:57:28 server spamd[7459]: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": _07 + __MY_INSURANCE_0002_08 + __MY_INSURANCE_0002_09 ) > 3)

Das ist meine /etc/spamassassin/local.cf im Moment:

Code:
body SPAM_LIVE_RULE           /LIVE\s+FREE/i
score SPAM_LIVE_RULE           8.0
describe SPAM_LIVE_RULE       Block spam LIVE

body SPAM_Centuren           /Centuren\s+OnlineMethode/i
score SPAM_Centuren           8.0
describe SPAM_Centuren       Block spam LIVE

body SPAM_Betriebshaftpflicht           /BHV\s+Leserinnen/i
score SPAM_Betriebshaftpflicht           8.0
describe SPAM_Betriebshaftpflicht       Block spam LIVE

body SPAM_Investitionen           /Investitionen\s+Statistiken/i
score SPAM_Investitionen           8.0
describe SPAM_Investitionen       Block spam LIVE

body SPAM_Leserinnen           /Leserinnen\s+Leser/i
score SPAM_Leserinnen           8.0
describe SPAM_Leserinnen       Block spam LIVE

body SPAM_Betriebshaftpflicht           /Betriebshaftpflicht\s+BHV/i
score SPAM_Betriebshaftpflicht           8.0
describe SPAM_Betriebshaftpflicht       Block spam LIVE

body LOCAL_DEMONSTRATION_RULE   /Pflegeversicherung/
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

body LOCAL_DEMONSTRATION_RULE   /\Leserinnen\b/i
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

body LOCAL_DEMONSTRATION_RULE   /Gratisleistungen/
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

body LOCAL_DEMONSTRATION_RULE   /Krankenversicherung/
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

header          __MY_INSURANCE_0002_01  From =~ /info\@/
header          __MY_INSURANCE_0002_02  From =~ /(vergleich|uebersicht|ubersicht|uberblick|ueberblick|aktuell|gewinn|sieger|guenstig|pflege)/i
header          __MY_INSURANCE_0002_03  From =~ /versicherung/
header          __MY_INSURANCE_0002_04  From =~ /tarif/
header          __MY_INSURANCE_0002_05  From =~ /(angebot|auskunft|schnell|neuer|test)/i
header          __MY_INSURANCE_0002_06  From =~ /(pkv|buv|bhv|zzv|pzv|rlv)/i
header          __MY_INSURANCE_0002_07  Subject =~ /(Betriebshaft|Krankenversicherung)/i
header          __MY_INSURANCE_0002_08  X-Mailer =~ /nodemailer/
body            __MY_INSURANCE_0002_09  /(betriebshaft|krankenversicherung)/i

meta              MY_INSURANCE_0002     (( __MY_INSURANCE_0002_01 + __MY_INSURANCE_0002_02 + __MY_INSURANCE_0002_03 + __MY_INSURANCE_0002_04 + __MY_INSURANCE_0002_05 + __MY_INSURANCE_0002_06 + __PS_INSUR$
_07 + __MY_INSURANCE_0002_08  + __MY_INSURANCE_0002_09 ) > 3)
describe          MY_INSURANCE_0002     My Anti Spam Rule Insurance-0002
score             MY_INSURANCE_0002     10

rewrite_header subject *****SPAM*****
required_score 3.0

Solch eine Spam kam gerade wieder rein:

Code:
Return-Path: <info@ideale-versicherung.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on server.meinedomain.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,
	HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,RP_MATCHES_RCVD,SPF_PASS,T_DKIM_INVALID,
	URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0
X-Original-To: meine@email.de
Delivered-To: meine@email.de
Received: from mx-1.ideale-versicherung.org (mx-1.ideale-versicherung.org [94.177.204.193])
	by mail.meinedomain.de (Postfix) with ESMTPS id 8F5215E2008A
	for <meine@email.de>; Mon, 29 May 2017 13:56:54 +0200 (CEST)
Content-Type: multipart/alternative;
 boundary="----sinikael-?=_1-14960590102700.2712005736162444"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=ideale-versicherung.org; s=2016; t=1496059010;
	bh=mu7a3J1J1BIHgiSyq7mIyUVW4QJc8aMUKEHuzWNLEfc=;
	h=Content-Type:List-Unsubscribe:From:Sender:To:Reply-To:Message-ID:
	 Date:MIME-Version;
	b=Aey2hzgGu1wM2a8Hf/s7DJGmZ3xAJZwXVH+cyL4t1oJ72/keV6mLsS5rwgA0s1DKa
	 1PRjjSU1UZ2ov3xd3e74031MURNCrMk33ou2TnTERkz+vMj+d4+DEHQykpv1icshRw
	 2cUxqtQaMZAQ8GAt2z1O+9jR6OWQVb0tIJdKUOLE=
List-Unsubscribe: 
 <http://ideale-versicherung.org/mail/unsubscribe/7CThnQaSM99UzgkQEHms2iokZj56m4PSht8gLFCJ4vD6q25C6>
X-Report-Abuse: <abuse@ideale-versicherung.org>
From: Josephine Seilgreif <info@ideale-versicherung.org>
Sender: Josephine Seilgreif <info@ideale-versicherung.org>
To: meine@email.de
Reply-To: Josephine Seilgreif <info@ideale-versicherung.org>
Subject: So treffen Sie jetzt die richtige Entscheidung!
Message-ID: <cd535a9d-fac3-d75e-60d3-7cf4563b5a08@ideale-versicherung.org>
X-Mailer: nodemailer (2.6.4; +https://nodemailer.com/;
 SMTP/2.7.2[client:2.12.0])
Date: Mon, 29 May 2017 11:56:50 +0000
MIME-Version: 1.0

------sinikael-?=_1-14960590102700.2712005736162444
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Guten Tag,

beim Vergleich der Tarifangebote sollte stets die eigene=20
Lebenssituation im Mittelpunkt stehen. So gibt es f=C3=BCr bestimmte=20
Berufsgruppen (Beamte, Selbst=C3=A4ndige, Angestellte, =C3=84rzte etc.)=20
entsprechende Sondertarife, deren Eignung es zu =C3=BCberpr=C3=BCfen gilt.=
=20
Grunds=C3=A4tzlich sollten sowohl Preise, Leistungen als auch Service=20
und Beitragsstabilit=C3=A4t der Versicherer gepr=C3=BCft werden:

http://ideale-versicherung.org/mail/link/7CThnQaSM99UzgkQEHms2iokZj56m4PSht=
8gLFCJ4vD6q25C6


Noch ein Tipp

Machen Sie die Entscheidung nicht nur vor einem einzigen Parameter=20
abh=C3=A4ngig, sondern achten Sie darauf, dass die Kriterien in einem=20
ausgewogenen Verh=C3=A4ltnis stehen. Wem g=C3=BCnstige Kosten und =
stabile=20
Beitr=C3=A4ge wichtig sind, sollte dennoch die Leistungen des Anbieters=20
analysieren, damit keine =C3=9Cber- oder Unterversicherung entsteht.=20
Unzureichender Service kann langfristig zu Unzu=C2=ADfriedenheit =
f=C3=BChren,=20
weshalb auch dieses Kriterium nicht unbeachtet bleiben sollte.

Herzliche Gr=C3=BC=C3=9Fe von

Josephine Seilgreif
Abteilung V&I
Sonnenstra=C3=9Fe 12
44139 Dortmund=20




Unseren aktuellen Informationen sind hilfreich,=20
k=C3=B6nnen aber hier abbestellt werden:
http://ideale-versicherung.org/mail/unsubscribe/7CThnQaSM99UzgkQEHms2iokZj5=
6m4PSht8gLFCJ4vD6q25C6
------sinikael-?=_1-14960590102700.2712005736162444
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!doctype html>
<html lang=3D"DE">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html charset=3DUTF-8">
<!--[if !mso]><!-- --><meta http-equiv=3D"X-UA-Compatible" =
content=3D"IE=3Dedge"><!--<![endif]-->
<meta content=3D"width=3Ddevice-width" name=3D"viewport">
<title></title>
<style type=3D"text/css">
.ya-content {
	font-family: Trebuchet MS, Arial, Helvetica, sans-serif;=20
	font-weight: normal;=20
	font-size: 13px;=20
	line-height: 1.8;=20
	color: #4B637F;
	margin:0;
	padding:0 0 16px 0;
}
.ya-body {
	background-color: #EFEFEF;=20
	padding: 0;=09
	margin: 0
}
.ya-subheadline {
	font-size:14px;=20
	font-weight:bold
}
.ya-table {
	font-family: Arial, Helvetica, sans-serif;=20
	font-weight: normal;=20
	font-size: 14px;=20
	line-height: 1.6;=20
	color: #4B637F;
	margin:0;
	padding:0 0 0 0;
	border:1px solid #eeeeee;
	border-radius:5px
}
.ya-headline {font-size:19px; font-weight:bold}

.ya-button-placeholder {
	background-color:#FF867B;color:#ffffff;font-size:15px;font-family: =
Trebuchet MS, Arial, Helvetica, sans-serif;font-weight:bold;padding:14px =
30px;margin:0;text-align:center; border-radius:2px
}
.ya-button {
	background-color:#FF867B;color:#ffffff;font-size:18px;font-family: =
Trebuchet MS, Arial, Helvetica, sans-serif;text-align:center;text-decoratio=
n:none!important;
}
.ya-spacer {
	line-height:1px; height:1px; font-size:0
}
.footer {
	font-size:13px=09
}
p {margin:0; padding:0}
@media only screen and (max-width: 460px) {
	.ya-body-table-wrapper {width:100%!important}
}
a {color:#698AB2; text-decoration:none}
.italic {font-style:italic; }
.al-c {text-align:center}
</style>
</head>
<body class=3D"ya-body" style=3D"background-color: #EFEFEF;padding: =
0;margin: 0;">
<br>
<table class=3D"ya-body-table" width=3D"100%" border=3D"0" =
cellspacing=3D"0" cellpadding=3D"0" bgcolor=3D"#EFEFEF">
	<tr>
		<td align=3D"center" valign=3D"top">
			<table class=3D"ya-body-table-wrapper" width=3D"460" border=3D"0" =
cellspacing=3D"0" cellpadding=3D"20" bgcolor=3D"#FFFFFF">
				<tr>
					<td align=3D"left" valign=3D"top">
						<p class=3D"ya-headline ya-content" style=3D"margin: 0;padding: 0 0 =
16px 0;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;font-weight:=
 bold;font-size: 19px;line-height: 1.8;color: #4B637F;"> Guten Tag, </p>
 						<p class=3D"ya-content" style=3D"margin: 0;padding: 0 0 16px =
0;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;font-weight: =
normal;font-size: 13px;line-height: 1.8;color: #4B637F;">beim Vergleich der=
 Tarifangebote sollte stets die eigene=20
Lebenssituation im Mittelpunkt stehen. So gibt es f=C3=BCr bestimmte=20
Berufsgruppen (Beamte, Selbst=C3=A4ndige, Angestellte, =C3=84rzte etc.)=20
entsprechende Sondertarife, deren Eignung es zu =C3=BCberpr=C3=BCfen gilt.=
=20
Grunds=C3=A4tzlich sollten sowohl Preise, Leistungen als auch Service=20
und Beitragsstabilit=C3=A4t der Versicherer gepr=C3=BCft werden:</p>
 					=09
						<table cellpadding=3D"0" cellspacing=3D"0" align=3D"center">
							<tbody>
								<tr>
									<td align=3D"center" valign=3D"middle">
										<p class=3D"ya-button-placeholder" style=3D"margin: 0;padding: =
14px 30px;background-color: #FF867B;color: #ffffff;font-size: =
15px;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;font-weight: =
bold;text-align: center;border-radius: 2px;"> <a title=3D"Jetzt =
pr=C3=BCfen" class=3D"ya-button" href=3D"http://ideale-versicherung.=
org/mail/link/7CThnQaSM99UzgkQEHms2iokZj56m4PSht8gLFCJ4vD6q25C6" =
style=3D"color: #ffffff;text-decoration: none!important;background-color: =
#FF867B;font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, =
sans-serif;text-align: center;"><font color=3D"#FFFFFF"><span =
class=3D"ya-button" style=3D"background-color: #FF867B;color: =
#ffffff;font-size: 18px;font-family: Trebuchet MS, Arial, Helvetica, =
sans-serif;text-align: center;text-decoration: none!important;">Jetzt =
pr=C3=BCfen</span></font></a> </p> 					=09
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td align=3D"left" valign=3D"top">
						<p class=3D"ya-content" style=3D"margin: 0;padding: 0 0 16px =
0;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;font-weight: =
normal;font-size: 13px;line-height: 1.8;color: #4B637F;">
							<strong>Noch ein Tipp</strong></p>
						<p class=3D"ya-content" style=3D"margin: 0;padding: 0 0 16px =
0;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;font-weight: =
normal;font-size: 13px;line-height: 1.8;color: #4B637F;">Machen Sie die =
Entscheidung nicht nur vor einem einzigen Parameter=20
							abh=C3=A4ngig, sondern achten Sie darauf, dass die Kriterien in =
einem=20
							ausgewogenen Verh=C3=A4ltnis stehen. Wem g=C3=BCnstige Kosten und =
stabile=20
							Beitr=C3=A4ge wichtig sind, sollte dennoch die Leistungen des =
Anbieters=20
							analysieren, damit keine =C3=9Cber- oder Unterversicherung entsteht.=
=20
							Unzureichender Service kann langfristig zu Unzu=C2=ADfriedenheit =
f=C3=BChren,=20
							weshalb auch dieses Kriterium nicht unbeachtet bleiben sollte.</p>
						<p class=3D"ya-content" style=3D"margin: 0;padding: 0 0 16px =
0;font-family: Trebuchet MS, Arial, Helvetica, sans-serif;font-weight: =
normal;font-size: 13px;line-height: 1.8;color: #4B637F;"><em>Herzliche =
Gr=C3=BC=C3=9Fe von Josephine Seilgreif</em></p>
					</td>
				</tr>
			</table>

		</td>
	</tr>
	<tr>
		<td align=3D"center" valign=3D"top">
			<table class=3D"ya-body-table-wrapper my-table-border" width=3D"460" =
border=3D"0" cellspacing=3D"0" cellpadding=3D"20" bgcolor=3D"#393C41">
				<tr>
					<td align=3D"left" valign=3D"top">
						<span class=3D"ya-content footer" style=3D"font-family: Trebuchet MS,=
 Arial, Helvetica, sans-serif;font-weight: normal;font-size: =
13px;line-height: 1.8;color: #4B637F;margin: 0;padding: 0 0 16px 0;">
							<font color=3D"#FFFFFF">
								<center>
									Josephine Seilgreif
Abteilung V&I
Sonnenstra=C3=9Fe 12
44139 Dortmund
								</center>
							</font>
						</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td align=3D"center" valign=3D"top">
			<table class=3D"ya-body-table-wrapper" width=3D"460" border=3D"0" =
cellspacing=3D"0" cellpadding=3D"20">
				<tr>
					<td align=3D"center" valign=3D"top">
						<span class=3D"ya-content footer" style=3D"font-family: Trebuchet MS,=
 Arial, Helvetica, sans-serif;font-weight: normal;font-size: =
13px;line-height: 1.8;color: #4B637F;margin: 0;padding: 0 0 16px 0;">
							Unseren aktuellen Informationen sind hilfreich,=20
k=C3=B6nnen aber <a href=3D"http://ideale-versicherung.=
org/mail/unsubscribe/7CThnQaSM99UzgkQEHms2iokZj56m4PSht8gLFCJ4vD6q25C6" =
style=3D"color: #698AB2;text-decoration: none;"><font =
color=3D"#698AB2"><strong>hier</strong></font></a> abbestellt werden.=20
						</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<img src=3D"http://ideale-versicherung.org/picture/7CThnQaSM99UzgkQEHms2iok=
Zj56m4PSht8gLFCJ4vD6q25C6.gif" width=3D"1" height=3D"1" border=3D"0">
</body>
</html>
------sinikael-?=_1-14960590102700.2712005736162444--
 

Attachments

  • Bildschirmfoto 2017-05-29 um 14.05.07.jpg
    Bildschirmfoto 2017-05-29 um 14.05.07.jpg
    162.1 KB · Views: 121
Last edited by a moderator:
Moin
Bei mir bringt das Regelwerk leider nichts. Es kommen immer noch ohne Ende Spams rein.
Wenn die Regel nicht angewendet wird, ....

Weil Du
Code:
May 29 13:57:28 server spamd[7459]: config: invalid expression for rule MY_INSURANCE_0002: "(( __MY_INSURANCE_0002_01 + __MY_INSURANCE_0002_02 + __MY_INSURANCE_0002_03 + __MY_INSURANCE_0002_04 + __MY_INSURANCE_0002_05 + __MY_INSURANCE_0002_06 + __PS_INSURANCE_0002": syntax error
May 29 13:57:28 server spamd[7459]: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": _07 + __MY_INSURANCE_0002_08 + __MY_INSURANCE_0002_09 ) > 3)
die Zeile nicht zusammen geschrieben hast.

... kann das ja auch nicht funktionieren.


Regelwerke zu übernehmen ohne diese zu verstehen ist nie sinnvoll.

Und hör bitte auf deine SPAM-Mails zu posten. Das nervt, bringt aber nichts.
 
Ich weiß auch nicht, bei mir ist es auch so. Welche Zeilen müssen zusammen geschrieben werden? Kann es bitte jemand erklären. Danke sehr
 
Moin

1) Steht im Logfile, welche beiden Zeilen zusammen geschrieben werden müssen
2) Ich hab den Beitrag inzwischen korrigiert.
 
Hallo,

die Meldung erscheint aber immer noch

Code:
May 30 01:02:16 server spamd[16329]: Unrecognized escape \L passed through in regex; marked by <-- HERE in m/(?i)\L <-- HERE eserinnen\b/ at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 1386.
 
Moin

Nein. Es erscheint eine andere Fehlermeldung und das ist ein Fehler in deiner Konfiguration.

SA schreibt sogar genau, was Du falsch geschrieben hast.
Code:
\L <-- HERE eserinnen\b/
Wenn Du jetzt den Marker auf den Fehler wegnimmst, hast Du deine Fehlerhaften Eintrag.

Code:
\Leserinnen\b/
 
Hallo,

muss die SaveHits.cf und SaveHits.pm noch angepasst werden vom Inhalt und an eine bestimmte Stelle kopiert werden?

Welche Rechte (chmod) sollte die SaveHits.pm auf dem Server haben?

Danke sehr
 
Last edited by a moderator:
Ich habe den Inhalt der Datei "SaveHits.cf":

Code:
loadplugin Mail::SpamAssassin::Plugin::SaveHits /etc/mail/spamassassin/SaveHits.pm
savehits_dir /var/spool/savehits

in die "/etc/spamassassin/local.cf" eingefügt:
(.....Auszug.....)
Code:
.....
#   and a well-trained bayes DB can save running rules, too
#
# shortcircuit BAYES_99                spam
# shortcircuit BAYES_00                ham

loadplugin Mail::SpamAssassin::Plugin::SaveHits /etc/mail/spamassassin/SaveHits.pm
savehits_dir /var/spool/savehits

endif # Mail::SpamAssassin::Plugin::Shortcircuit
.....

Die Datei "SaveHits.pm" habe ich in den Ordner "/etc/spamassassin/" kopiert.

Die Datei "SaveHits.pm" hat diese Rechte "-rwxr-xr-x"

Das sollte doch so richtig gewesen sein, oder?

Danke
 
Last edited by a moderator:
Moin

Ich würde das etwas ändern.
Code:
...
endif # Mail::SpamAssassin::Plugin::Shortcircuit

loadplugin Mail::SpamAssassin::Plugin::SaveHits /etc/mail/spamassassin/SaveHits.pm
ifplugin Mail::SpamAssassin::Plugin::SaveHits 
    savehits_dir /var/spool/savehits

    savehits_rule MY_INSURANCE_0002
endif # Mail::SpamAssassin::Plugin::SaveHits

Bei deiner cfg funktioniert das SaveHits nur, wenn du auch Shortcircuit aktiviert hast.
 
Habe es jetzt geändert, aber irgendwas scheint nicht zu stimmen, oder?:

Code:
May 30 14:43:13 server spamd[18318]: spamd: server killed by SIGTERM, shutting down
May 30 14:43:13 server spamd[5410]: logger: removing stderr method
May 30 14:43:14 server spamd[5413]: Can't locate Digest/SHA1.pm in @INC (you may need to install the Digest::SHA1 module) (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at /etc/mail/spamassassin/SaveHits.pm line 54.
May 30 14:43:14 server spamd[5413]: plugin: failed to parse plugin /etc/mail/spamassassin/SaveHits.pm: Can't locate Digest/SHA1.pm in @INC (you may need to install the Digest::SHA1 module) (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at /etc/mail/spamassassin/SaveHits.pm line 54.
May 30 14:43:14 server spamd[5413]: BEGIN failed--compilation aborted at /etc/mail/spamassassin/SaveHits.pm line 54.
May 30 14:43:14 server spamd[5413]: Compilation failed in require at /usr/share/perl5/Mail/SpamAssassin/PluginHandler.pm line 109.
May 30 14:43:14 server spamd[5413]: zoom: able to use 315/360 'body_0' compiled rules (87.5%)
May 30 14:43:14 server spamd[5413]: spamd: server started on IO::Socket::IP [127.0.0.1]:783, IO::Socket::IP [::1]:783 (running version 3.4.0)
May 30 14:43:14 server spamd[5413]: spamd: server pid: 5413
May 30 14:43:14 server spamd[5413]: spamd: server successfully spawned child process, pid 5414
May 30 14:43:14 server spamd[5413]: spamd: server successfully spawned child process, pid 5415
May 30 14:43:14 server spamd[5413]: prefork: child states: IS
May 30 14:43:14 server spamd[5413]: prefork: child states: II

Hier mal meine komplette local.cf:

Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
###########################################################################

#   Add *****SPAM***** to the Subject header of spam e-mails
#
# rewrite_header Subject *****SPAM*****


#   Save spam messages as a message/rfc822 MIME attachment instead of
#   modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1


#   Set which networks or hosts are considered 'trusted' by your mail
#   server (i.e. not spammers)
#
# trusted_networks 212.17.35.


#   Set file-locking method (flock is not safe over NFS, but is faster)
#
# lock_method flock


#   Set the threshold at which a message is considered spam (default: 5.0)
#
# required_score 5.0


#   Use Bayesian classifier (default: 1)
#
# use_bayes 1


#   Bayesian classifier auto-learning (default: 1)
#
# bayes_auto_learn 1


#   Set headers which may provide inappropriate cues to the Bayesian
#   classifier
#
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status


#   Some shortcircuiting, if the plugin is enabled
# 
ifplugin Mail::SpamAssassin::Plugin::Shortcircuit
#
#   default: strongly-whitelisted mails are *really* whitelisted now, if the
#   shortcircuiting plugin is active, causing early exit to save CPU load.
#   Uncomment to turn this on
#
# shortcircuit USER_IN_WHITELIST       on
# shortcircuit USER_IN_DEF_WHITELIST   on
# shortcircuit USER_IN_ALL_SPAM_TO     on
# shortcircuit SUBJECT_IN_WHITELIST    on

#   the opposite; blacklisted mails can also save CPU
#
# shortcircuit USER_IN_BLACKLIST       on
# shortcircuit USER_IN_BLACKLIST_TO    on
# shortcircuit SUBJECT_IN_BLACKLIST    on

#   if you have taken the time to correctly specify your "trusted_networks",
#   this is another good way to save CPU
#
# shortcircuit ALL_TRUSTED             on

#   and a well-trained bayes DB can save running rules, too
#
# shortcircuit BAYES_99                spam
# shortcircuit BAYES_00                ham

endif # Mail::SpamAssassin::Plugin::Shortcircuit

loadplugin Mail::SpamAssassin::Plugin::SaveHits /etc/mail/spamassassin/SaveHits.pm
ifplugin Mail::SpamAssassin::Plugin::SaveHits 
    savehits_dir /var/spool/savehits

    savehits_rule MY_INSURANCE_0002
endif # Mail::SpamAssassin::Plugin::SaveHits

body SPAM_FINTECH_RULE           /FINTECH\s+LTD/i
score SPAM_FINTECH_RULE           8.0
describe SPAM_FINTECH_RULE       Block spam FINTECH

body SPAM_FinTech_RULE           /FinTech\s+$/i
score SPAM_FinTech_RULE           8.0
describe SPAM_FinTech_RULE       Block spam FinTech

body SPAM_LIVE_RULE           /LIVE\s+FREE/i
score SPAM_LIVE_RULE           8.0
describe SPAM_LIVE_RULE       Block spam LIVE

body SPAM_Centuren           /Centuren\s+OnlineMethode/i
score SPAM_Centuren           8.0
describe SPAM_Centuren       Block spam LIVE

body SPAM_Betriebshaftpflicht           /BHV\s+Leserinnen/i
score SPAM_Betriebshaftpflicht           8.0
describe SPAM_Betriebshaftpflicht       Block spam LIVE

body SPAM_Investitionen           /Investitionen\s+Statistiken/i
score SPAM_Investitionen           8.0
describe SPAM_Investitionen       Block spam LIVE

body SPAM_Leserinnen           /Leserinnen\s+Leser/i
score SPAM_Leserinnen           8.0
describe SPAM_Leserinnen       Block spam LIVE

body SPAM_Betriebshaftpflicht           /Betriebshaftpflicht\s+BHV/i
score SPAM_Betriebshaftpflicht           8.0
describe SPAM_Betriebshaftpflicht       Block spam LIVE

body LOCAL_DEMONSTRATION_RULE   /Pflegeversicherung/
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

body LOCAL_DEMONSTRATION_RULE   /Leserinnen\b/i
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

body LOCAL_DEMONSTRATION_RULE   /Gratisleistungen/
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

body LOCAL_DEMONSTRATION_RULE   /Krankenversicherung/
score LOCAL_DEMONSTRATION_RULE 8.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule

header __MY_INSURANCE_0002_01  From =~ /info\@/
header __MY_INSURANCE_0002_02  From =~ /(vergleich|uebersicht|ubersicht|uberblick|ueberblick|aktuell|gewinn|sieger|guenstig|pflege)/i
header __MY_INSURANCE_0002_03  From =~ /versicherung/
header __MY_INSURANCE_0002_04  From =~ /tarif/
header __MY_INSURANCE_0002_05  From =~ /(angebot|auskunft|schnell|neuer|test)/i
header __MY_INSURANCE_0002_06  From =~ /(pkv|buv|bhv|zzv|pzv|rlv)/i
header __MY_INSURANCE_0002_07  Subject =~ /(Betriebshaft|Krankenversicherung)/i
header __MY_INSURANCE_0002_08  X-Mailer =~ /nodemailer/
body __MY_INSURANCE_0002_09  /(betriebshaft|krankenversicherung)/i

meta MY_INSURANCE_0002     (( __MY_INSURANCE_0002_01 + __MY_INSURANCE_0002_02 + __MY_INSURANCE_0002_03 + __MY_INSURANCE_0002_04 + __MY_INSURANCE_0002_05 + __MY_INSURANCE_0002_06 + __PS_INSURANCE_0002_07 + __MY_INSURANCE_0002_08  + __MY_INSURANCE_0002_09 ) > 3)
describe MY_INSURANCE_0002     My Anti Spam Rule Insurance-0002
score MY_INSURANCE_0002     10

rewrite_header subject _SCORE_
required_score 3.0
blacklist_from *@andsonabla.eu sayhellotonene@sina.cn nitrile@peter-pohl.de lperson4@cox.net heiko.kersten@online.de *@swsidx.com *@shopping.de.cc *@roommmf.com *@retroactively.decess.org *@nl.vip-shopping-deals.com *@nl.preise-vergleichen.de *@logofax.it *@emesports.es *@darlene.s6t7.net *@bigscoots.com *@aktueller-testsieger-2106.org *@neue-versicherungen.com

Danke für deine Hilfe!
 
Moin
Code:
May 30 14:43:14 server spamd[5413]: Can't locate Digest/SHA1.pm in @INC (you may need to install the Digest::SHA1 module) (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at /etc/mail/spamassassin/SaveHits.pm line 54.
Perl Modul Digest-sha1 fehlt.
 
Habe es jetzt mal gegooglet, es war bestimmt eine Lösung dabei, aber ich habe es nicht erkannt. Hast Du eine Lösung dafür?

Die local.cf ist vom Aufbau so in Ordnung?

Danke
 
Last edited by a moderator:
Das funktioniert leider nicht:

Code:
apt install libdigest-sha1-perl

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libdigest-sha1-perl
 
Back
Top