Spamassassin&anachron:failed to parse line rewrite_subject 1

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Darkentik
Beiträge: 13
Registriert: 03.04.2013 14:04:00

Spamassassin&anachron:failed to parse line rewrite_subject 1

Beitrag von Darkentik » 28.10.2015 07:47:57

Guten Morgen,

ich habe bei mir zuhause einen kleinen Debianserver vor 2 Jahren eingerichtet auf dem diverse Dienste drauf laufen.
Unter anderem betreibe ich seit längerer Zeit einen exim4 Mailserver kombiniert mit fetchmail, dovecot, Roundcube, spamassassin und clamav.

Seit Sonntag den 25.10.15 schickt mir mein Server jeden früh eine E-Mail hier die ersten Zeilen:

Absender: Cron Daemon <root@Server.workgroup>
Betreff: Cron <root@Servername> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Code: Alles auswählen

/etc/cron.daily/spamassassin:
Oct 25 07:20:51.317 [5474] warn: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": rewrite_subject 1
Oct 25 07:20:52.238 [5474] warn: lint: 1 issues detected, please rerun with debug enabled for more information
Oct 25 07:20:52.469 [5477] dbg: logger: adding facilities: all
Oct 25 07:20:52.469 [5477] dbg: logger: logging level is DBG
Oct 25 07:20:52.469 [5477] dbg: generic: SpamAssassin version 3.3.2
Hier meine SA config:

Code: Alles auswählen

# 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
#
###########################################################################
#Eigene Einstellungen
#wird benötigt damit Spamassassine den Betreff ändert
 rewrite_subject 1
#   Add *****SPAM***** to the Subject header of spam e-mails
#
 rewrite_header Subject ***SPAM (_SCORE_ points)***

#   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
#  required_score 4.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

#eigene whitelist zum testen, weil manche E-mails komplett weiß sind vorallem von ebay
#whitelist_from member@ebay.com
Da ich auch erst seit 2 Jahren einen Debianserver betreibe, bin ich noch lange kein Profi und habe den Mailserver logischerweise anhand von Anleitungen in Ergänzung mit den Dokumentationen der Dienste installiert.
Da ich es nicht hinbekommen habe, dass exim4 den Betreff von SPAM Mails ändert wenn der gewisse SPAM Score erreicht ist, habe ich das so eingestellt, dass Spamassassin das macht.
Das funktioniert auch trotz der Warnung von Anachron weiterhin ganz prima.
Habt ihr eine Idee oder einen Hinweis wo der Fehler liegt?
Wenn ihr noch mehr Info benötigt sagt es bitte.
Danke euch schon mal.

VG
Darkentik
Unreal Engine 4 Spieleschmiede - www.freakylabs.de
Deutsche Unreal Engine 4 Community - www.unrealengine4.de

Dimejo
Beiträge: 503
Registriert: 21.07.2014 13:37:23

Re: Spamassassin&anachron:failed to parse line rewrite_subje

Beitrag von Dimejo » 28.10.2015 12:09:15

Darkentik hat geschrieben:

Code: Alles auswählen

/etc/cron.daily/spamassassin:
Oct 25 07:20:51.317 [5474] warn: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": rewrite_subject 1

Code: Alles auswählen

#Eigene Einstellungen
#wird benötigt damit Spamassassine den Betreff ändert
 rewrite_subject 1
Die Warnung ist eigentlich recht eindeutig. Im Wiki von Spamassassin findet man auch gleich einen Eintrag, der einen darauf hinweist, dass diese Konfigurationsoption veraltet ist.
https://wiki.apache.org/spamassassin/SubjectRewrite

Darkentik
Beiträge: 13
Registriert: 03.04.2013 14:04:00

Re: Spamassassin&anachron:failed to parse line rewrite_subje

Beitrag von Darkentik » 28.10.2015 14:14:37

Jetzt wo du es sagst und es es lese verstehe ich nicht wieso ich das überhaupt da reingeschrieben habe....denn in der Default config steht ja schon die neue Syntax drin. :hail:
Tut mir leid.
Aber über deinen Link bin ich ehrlich gesagt noch gar nicht gestolpert. 8O :?
Ich danke dir vielmals, ich habe es bereinigt und sage morgen Bescheid ob es Warnungsfrei funktioniert, was es ja jetzt müsste.
Unreal Engine 4 Spieleschmiede - www.freakylabs.de
Deutsche Unreal Engine 4 Community - www.unrealengine4.de

Antworten