Spamassassin funktioniert nicht

  • Ich weiss, blödes Subject 'funktioniert nicht'. Trifft aber den Kern der Sache.


    Es wird die aktuelle Version 1.5.3 von imscp eingesetzt.

    apt-get update und upgrade führe ich regelmässig durch, zuletzt heute.

    Spamassassin Plugin ist installiert und 'grün'. Auch sonst läuft alles scheints top.

    Ich verwende Courier & Postfix sowie clamav, amavis, spamassassin.

    Das ganze auf Debian 8.11 (Jessie)


    Im Webmail (Roundcube) landen seit längerer Zeit Spam-Mails. Ich hatte bisher keine Lust mich darum zu kümmern (privater server), aber so langsam nervt es.

    Diese werden nicht als Spam-Mails erkannt. **** spam **** flag z.b. fehlt.

    Auch im Header sind keine Hinweise auf Spam-Überprüfung.


    Spam-Mail Header:

    Code
    1. X-Mailer: PHPMailer [version 1.73]
    2. Content-Type: multipart/alternative; boundary=b1_e6p1frm3l0eak6oxrr-dQYZi9WC; charset="UTF-8"
    3. Content-Transfer-Encoding: 8bit
    4. X-Virus-Scanned: clamav-milter 0.100.2 at jupiter
    5. X-Virus-Status: Clean


    ../mail.err zeigt:

    Code
    1. Mar 29 16:06:18 jupiter spamc[18908]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused
    2. Mar 29 16:06:18 jupiter spamc[18908]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
    3. Mar 29 16:06:19 jupiter spamc[18908]: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Connection refused
    4. Mar 29 16:06:19 jupiter spamc[18908]: connect to spamd on ::1 failed, retrying (#2 of 3): Connection refused
    5. Mar 29 16:06:20 jupiter spamc[18908]: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection refused
    6. Mar 29 16:06:20 jupiter spamc[18908]: connect to spamd on ::1 failed, retrying (#3 of 3): Connection refused
    7. Mar 29 16:06:20 jupiter spamc[18908]: connection attempt to spamd aborted after 3 retries
    8. Mar 29 16:28:50 jupiter spamass-milter[1055]: spamass-milter 0.3.2 starting
    9. Mar 29 16:30:31 jupiter spamass-milter[1055]: Could not retrieve sendmail macro "i"!. Please add it to confMILTER_MACROS_ENVFROM for better spamassassin results
    10. Mar 29 16:30:54 jupiter clamav-milter[1193]: Timed out while reading clamd reply

    Eventuell gibt es einen Zusammenhang?


    Wenn es weitere Informationen braucht - einfach sagen.

    Ich habe versucht die Postfix master.cf anzupassen (gab bei google ein paar Hinweise), jedoch habe ich das schnell bleiben lassen, da in der Datei steht dass man sie nicht anpassen soll weil sie überschrieben wird von imscp.

    Eine "working" habe ich nicht gefunden.

    Bei einer Forum-Recherche war immer wieder die Rede von 'hooks', jedoch weiss ich nicht was das ist.


    Meine Kenntnisse im Bereich Linux / i-MSCP sind eher im niedrigen Bereich anzusiedeln, wäre also für Details und natürlich Hilfe dankbar.


    VIelen Dank für eventuelle Unterstützung.


    Gruss

    Dennis

  • Good evening,


    Mar 29 16:06:18 jupiter spamc[18908]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused

    The problem seem to be that the SpamAssassin service is not reachable.


    Please, what is the status of the SpamAssassin service: service spamassassin status

    Please, what is the status of the SpamAssassin MILTER service: service spamass-milter status


    Those both services should be running.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Nuxwin

    Added the Label awaiting Information
  • Hi Nuxwin


    heres the output from "service spamassassin status"


    and here from "service spamass-milter status"

    Code
    1. ● spamass-milter.service - LSB: milter for spamassassin
    2. Loaded: loaded (/etc/init.d/spamass-milter)
    3. Active: active (running) since Tue 2019-04-09 12:31:41 CEST; 7min ago
    4. Process: 880 ExecStart=/etc/init.d/spamass-milter start (code=exited, status=0/SUCCESS)
    5. CGroup: /system.slice/spamass-milter.service
    6. └─1063 /usr/sbin/spamass-milter -P /var/run/spamass/spamass.pid -f -p /var/spool/postfix/spamass/spamass.sock -e -f -u spamass-milter -r -1
    7. Apr 09 12:31:40 jupiter spamass-milter[1063]: spamass-milter 0.3.2 starting
    8. Apr 09 12:31:41 jupiter spamass-milter[880]: Starting Sendmail milter plugin for SpamAssassin: spamass-milter
    9. Apr 09 12:31:41 jupiter systemd[1]: Started LSB: milter for spamassassin.
  • And here is something from ../mail.err:

    Code
    1. Apr 9 12:17:43 jupiter spamc[11833]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused
    2. Apr 9 12:17:43 jupiter spamc[11833]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
    3. Apr 9 12:17:44 jupiter spamc[11833]: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Connection refused
    4. Apr 9 12:17:44 jupiter spamc[11833]: connect to spamd on ::1 failed, retrying (#2 of 3): Connection refused
    5. Apr 9 12:17:45 jupiter spamc[11833]: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection refused
    6. Apr 9 12:17:45 jupiter spamc[11833]: connect to spamd on ::1 failed, retrying (#3 of 3): Connection refused
    7. Apr 9 12:17:45 jupiter spamc[11833]: connection attempt to spamd aborted after 3 retries
    8. Apr 9 12:31:40 jupiter spamass-milter[1063]: spamass-milter 0.3.2 starting
    9. Apr 9 12:32:41 jupiter authdaemond: failed to connect to mysql server (server=localhost, userid=authdaemon_user): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
    10. Apr 9 12:33:45 jupiter clamav-milter[1201]: Timed out while reading clamd reply
  • Good evening,


    Result of ifconfig | grep -C 1 127 ?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • versuche mal das plugin ganz raus zu löschen und neu zu installieren - das hat bei mir etwas geholfen - derzeit funktioniert es wieder - hatte auch ähnliche herausforderungen bzw. laufen noch ähnliche fehler auch so auf - aber er erkennt wieder mails als spam

  • Was ergibt?

    Code
    1. netstat -tlpen | grep spam

    Bei mir kommt da:

    tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 0 98416866 13768/spamd child


    Gruss J