Mail flagged as spam not getting delivered

Discussion in 'General' started by m4xx, Jul 20, 2022.

  1. m4xx

    m4xx New Member

    I've got a fresh install of ispconfig. I've got most things working but spam doesn't seem to get delivered. In the rspamd history i see lots of things getting rejected which is great, but i also see thing that have the "header added" flag. Those with the header don't get delivered.

    I see log lines similar to this around the time those come in and i'm wondering if it has something to do with it:

    Code:
    Jul 20 10:59:34 blinken amavis[980485]: (980485-15) (!)connect to 127.0.0.1:* failed, attempt #1: Can't connect to socket 127.0.0.1:* using module IO::Socket::IP: Connection refused
    
    Jul 20 10:59:34 blinken amavis[980485]: (980485-15) (!)fNOs19ckp4Ch FWD from <[email protected]> -> <[email protected]>,  451 4.5.0 From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:127.0.0.1:*): id=980485-15
    
    Jul 20 10:59:34 blinken amavis[980485]: (980485-15) Blocked MTA-BLOCKED {TempFailedInternal}, ORIGINATING LOCAL [127.0.0.1] [47.19.105.250] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: fNOs19ckp4Ch, Hits: -1, size: 615, 96 ms
    I've made sure that amavis is running, it's allowed in the firewall and i've successfully connected to port 10024 using telnet.

    Any suggestions would be very much appreciated :)

    -matt
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not run amavis and rspamd together, you should use rspamd only.

    1) Take care amavis is stopped.
    2) Go to system > server config > mail in ispconfig and check which spam filter is selected there. If it's amavis, then switch to rspamd. if it's rspamd, then switch to amavis, save settings, go back and switch to rspamd again and then press save.
     
    m4xx likes this.
  3. m4xx

    m4xx New Member

    thanks for the insanely quick response! i've done as suggested and am now monitoring logs. i'll report back when i know more :)
     
  4. m4xx

    m4xx New Member

    Code:
    Jul 20 12:04:17 blinken postfix/lmtp[999802]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
    Jul 20 12:04:17 blinken postfix/lmtp[999802]: 6471A30545D: to=<[email protected]>, relay=none, delay=425139, delays=425139/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    Jul 20 12:04:17 blinken postfix/lmtp[999804]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
    Jul 20 12:04:17 blinken postfix/lmtp[999804]: 64CA830545F: to=<[email protected]>, relay=none, delay=424296, delays=424296/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    my-domain.com
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely there are still emails in the mail queue with the old settings, try to run these commands to requeue and deliver the emails:

    postsuper -r ALL && postqueue -f
     
    m4xx likes this.
  6. m4xx

    m4xx New Member

    you're an amazing human
     

Share This Page