Spam function seems to be abnormal

Discussion in 'Installation/Configuration' started by Dy-2024, Aug 30, 2024.

  1. Dy-2024

    Dy-2024 Member

    Good morning, everyone.

    There are two domains on the server with the same spam policy “Normal”.
    One of the domains seems to be performing normally, with more than a fraction of the emails, the automated email subject is tagged and moved to “Junk”.
    However, the other domain does not seem to be performing correctly.

    Also, in the RSPAMD interface I see that the “rewrite subject” value is empty, is this normal?

    The above is attached.

    Thank you.
     

    Attached Files:

  2. Dy-2024

    Dy-2024 Member

    I also checked “/etc/rspamd/local.d/users/”
    The conf parameter for the domain name is the same as the ISPCONFIG setting.

    Code:
    ispc_spamfilter_user_14 {
        priority = 17;
        rcpt = "@(Domain names that seem to perform properly)";
    
        apply {
                CLAM_VIRUS = 1010;
            JUST_EICAR = 1010;
                actions {
                        "rewrite subject" =  6;
                "add header" = null;
                                reject = 10;
                            greylist = null;
                        }
        }
    
    }
    Code:
    ispc_spamfilter_user_113 {
        priority = 20;
        rcpt = "@(Domains that seem to be abnormal)";
    
        apply {
                CLAM_VIRUS = 1010;
            JUST_EICAR = 1010;
                actions {
                        "rewrite subject" =  6;
                "add header" = null;
                                reject = 10;
                            greylist = null;
                        }
        }
    
    }
     
    Last edited: Aug 30, 2024
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Filters can be set on mailbox and domain levels. Check that no other filter is set on mailbox level, as this overrides the domain-level filter.
     
  4. Dy-2024

    Dy-2024 Member

    Hello.

    Thank you for your help.

    "Filters can be set on mailbox and domain levels."
    Does this mean I need to set up other filters once for each email ID?
    If so, it is assumed to work, but may not be the way to find the cause of the current problem.

    "Check that no other filter is set on mailbox level, as this overrides the domain-level filter."
    I have confirmed all the mailbox IDs, the spam filtering policy is inherited from the domain name settings, no additional filtering settings, both domain IDs are the same settings.
    But the feedback result, is it indicate that there is something abnormal?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    No, It means that a filter on the mailbox level overrides the filter on the domain level as it's more specific for the incoming email.
     
  6. Dy-2024

    Dy-2024 Member

    Thank you.
    I'll check out the issue you're talking about.


    Also, I seem to have found a different setting for the IDs under the two domains.

    The seemingly normal domain ID.
    “Mail Filter” - ‘Move Spam to Junk Folder’ = ”Move After Custom Filters”

    Abnormal-looking domain ID:
    “Mail Filter” - ‘Move Spam to Junk’ = ‘Move before custom filters’ (this is the default setting when adding a new mailbox)

    Maybe it has something to do with this?
    I'll confirm this as well.
     
    Last edited: Aug 30, 2024
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This should not make any difference as long as you did not define any custom filters plus filters are sieve rules, so they do not affect Rspamd directly. And as you report that Rspamd reports emails for this domain differently, it can not be related to Sieve filters. What you should check is what the generated config file in the Rspamd folder looks like and what the generated .sieve file of the user looks like, as that's what defines how the mail system works in the end.
     
  8. Dy-2024

    Dy-2024 Member

    Okay, I'll check.
    Thank you.
     

Share This Page