Any emails are placed in Junk

Discussion in 'General' started by Steffen, Jul 7, 2021.

  1. Steffen

    Steffen New Member

    Hi Guys
    I have an Ubuntu 20.04 server with ispconfig 3.2.4 using dovecot with sieve. The server was originally installed with 16.04 and ispconfig 3.1.x, then upgraded a long the way.
    When creating a new mailbox a sieve filter is automatically created which checks if emails are spam, and places those into the Junk folder. For some reason this filter places any emails into the junk folder, even though the mail header doesn't state that this is a spam-mail, for instance:

    X-Spam-Flag: NO
    X-Spam-Score: -103.11
    X-Spam-Status: No, score=-103.11 tagged_above=-999.99 required=2.7

    I seem to have located the issue to be related to the if-statement in .ispconfig-before.sieve. If i manually change the if-statement from:

    if anyof (header :contains "X-Spam-Flag" "YES", header :contains ["X-Spam", "X-Spam-Status"] "Yes") {
    fileinto :create "Junk";
    # Stop here so that we do not reply on spams


    if header :contains "X-Spam-Flag" "YES" {
    fileinto :create "Junk";
    # Stop here so that we do not reply on spams

    Then the junk filter is working as expected, and only places spam emails into the Junk folder.

    Why is this happening and what can i do?
    Last edited: Jul 7, 2021
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's a bug in ISPConfig 3.2.4 which has been solved in ISPConfig 3.2.5.
    Steffen likes this.
  3. Steffen

    Steffen New Member

    Hi Till
    Sorry about that. I should have reread the release notes.
    3.2.5 seems to have fixed the issue by looking looking for "Yes, *" next to X-Spam-Status in the header.

Share This Page