Spam Filtering with Amavis

Discussion in 'Installation/Configuration' started by Bob White, Sep 24, 2020.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    There is a header and body filter option: Mail > Global Filters > Content Filter. This is a filter that works directly in Postfix and not in amavis though. Some more details about postfix header and body filters can be found here: http://www.postfix.org/header_checks.5.html

    Just look at the mail headers to find out why. Maybe you received the email trough an alias which has no spamfilter policy applied. I recommend to always set a spamfilter policy for the domain, set a policy for a mailbox only in case it differs for the one that you selected for the domain. And lower the spam score as I mentioned earlier.
     
  2. Bob White

    Bob White Member

    Thanks, Till!
    I've been using the Postfix header/body filters directly in the Postfix body_checks file, and they do work. The problem is that for encoded messages, I have to create 3 filters per term because you don't know where the string will start in the base-64 encoded stream. That's why I was trying to use SA - it works after decoding, so all I have to do is look for the decoded string. It probably takes me longer to set up the 3 strings and make sure they work than it would to just delete the spam as it comes in. It's just annoying...
    I don't think it's an alias issue. I have several email addresses set up via Spectrum and was sending from one to the other. They all come into the same mailbox when I pull them down from Spectrum with fetchmail/getmail. The other day, I sent two emails from the same account from Spectrum's web mail site to my main account - one was flagged, the other wasn't. Then, the next day, I got real spam and it didn't flag it. Weird.
    I can't lower the spam score very much. I get emails from my kids' colleges about billing and stuff - these things are pushing the 4.5 limit already.
    Thanks!
    Bob
     

Share This Page