Amavis und Spamassissin läßt sich nicht mehr starten

kopano

#1

Hallo,

nach einem Neustart meines UCS 4.3.3-errata390 werden keine Mail mehr empfangen. ich habe Kopano 8.6.8.2 am laufen.
Nach genauerem Hinsehen habe ich bemerkt, dass die Systemdienste amavis und spamassassin gestoppt sind. Somit kann postfix die per fetchmail empfangenen Mail auch intern nicht weiterverteilen.
Sie lassen sich vom mir aber auch nicht mehr starten.

Hat jemand einen Tip, wie man den Dienst ansonsten starten kann.

VG Stephan


#2

Hallo @StephanT,

hier wäre es sinnvoll die Fehlermeldung zu wissen.


#3

Eine spezielle log-Datei für amavis finde ich nicht und ist mir auch nicht bekannt.

In der Datei mail.err steht bei einem Startversuch des amavis-Dienst folgendes:

Jan 2 15:09:17 server amavis[19556]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run ‘sa-update’?
Jan 2 15:09:34 server spamd[19570]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 2 15:09:35 server spamd[19568]: child process [19570] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 2 15:09:35 server spamd[19575]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 2 15:09:36 server spamd[19573]: child process [19575] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 2 15:09:37 server spamd[19580]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 2 15:09:38 server spamd[19577]: child process [19580] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 2 15:09:38 server spamd[19586]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 2 15:09:39 server spamd[19584]: child process [19586] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 2 15:09:39 server spamd[19590]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 2 15:09:40 server spamd[19588]: child process [19590] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 3 11:20:43 server amavis[14658]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run ‘sa-update’?

Beim Neustart von spamassassin gibt mit dir Managementkonsole folgenden Fehler aus:

Der Dienst spamassassin konnte nicht neugestartet werden:
● spamassassin.service - Perl-based spam filter using text analysis
Loaded: loaded (/lib/systemd/system/spamassassin.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2019-01-03 11:25:35 CET; 13ms ago
Process: 14770 ExecStart=/usr/sbin/spamd -d --pidfile=/var/run/spamd.pid $OPTIONS (code=exited, status=255)
CPU: 197ms

Jan 03 11:25:35 server systemd[1]: spamassassin.service: Control process exited, code=exited status=255
Jan 03 11:25:35 server systemd[1]: Failed to start Perl-based spam filter using text analysis.
Jan 03 11:25:35 server systemd[1]: spamassassin.service: Unit entered failed state.
Jan 03 11:25:35 server systemd[1]: spamassassin.service: Failed with result ‘exit-code’.

In der mail.info ist folgende Meldung zu finden:

Jan 3 11:24:55 server postfix/smtp[14722]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:24:55 server postfix/smtp[14722]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jan 3 11:24:55 server postfix/smtp[14723]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:24:55 server postfix/smtp[14723]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Jan 3 11:24:55 server postfix/smtp[14722]: DACE79C4C8A: to=xxx@xxxxxxxl.de, relay=none, delay=185266, delays=185266/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Die Datei mail.warn enthält folgende Problemmeldungen:

Jan 3 11:20:43 server amavis[14658]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:20:43 server amavis[14658]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:24:55 server postfix/smtp[14722]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:24:55 server postfix/smtp[14723]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:25:34 server spamd[14772]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:25:35 server spamd[14770]: child process [14772] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 3 11:25:35 server spamd[14777]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:25:36 server spamd[14775]: child process [14777] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 3 11:25:37 server spamd[14781]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:25:38 server spamd[14779]: child process [14781] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 3 11:25:38 server spamd[14785]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:25:39 server spamd[14783]: child process [14785] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 3 11:25:40 server spamd[14790]: config: no rules were found! Do you need to run ‘sa-update’?
Jan 3 11:25:41 server spamd[14788]: child process [14790] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Jan 3 11:29:55 server postfix/smtp[14862]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:29:55 server postfix/smtp[14863]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:34:55 server postfix/smtp[15069]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:34:55 server postfix/smtp[15070]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:39:55 server postfix/smtp[15277]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy
Jan 3 11:39:55 server postfix/smtp[15278]: warning: database /etc/postfix/tls_policy.db is older than source file /etc/postfix/tls_policy

Ich hoffe, diese Fehlermeldungen helfen weiter.

VG
Stephan


#4

Das hier schon probiert?


#5

Ja, mit folgendem Ergebnis:

root@server:~# sa-update
channel: no ‘mirrors.updates.spamassassin.org’ record found, channel failed


#6

eventuell hilft dann Channel: no 'mirrors.updates.spamassassin.org' record found, channel failed


#7

Hallo,

es war wohl ein DNS-Problem.
Nachdem ich den 9.9.9.9 als DNS-Server eingetragen habe, funktioniert wieder alles .
Dennoch ist mir der Zusammenhang nicht klar.

Danke


#8

Aus der Spamassassin Mailinglist:

The DNS zone doesn’t have an A or CNAME record for
updates.spamassassin.org. Sa-update uses a TXT record under this zone
to detect when an update is ready to be downloaded and applied.

$ dig +short 1.4.3.updates.spamassassin.org txt
3.3.3.updates.spamassassin.org.
“1799552”

Also macht Dein bisher verwendeter DNS Server Probleme beim Auflösen von TXT records.

/CV