Spam Filter Policy don't seem to work

Discussion in 'Installation/Configuration' started by bmclean, Apr 15, 2010.

  1. bmclean

    bmclean New Member

    I am trying to test the different spam filter policies. When I change a mail user to the Uncensored or Wants All Spam policy, spam email still is being flagged as spam and put in quarantine.

    These are the settings that I have configured.

    Uncensored Tag-Level

    SPAM tag level : 3
    SPAM tag2 level: 999
    SPAM kill level: 999
    SPAM dsn cutoff level: 0
    SPAM quarantine cutoff level: 0

    I have the same settings for Wants all spam policy.

    I'm not sure if I'm missing something with these policies.

    Thanks for the help
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which linux distribution? What are the amavisd messages in the mail log?
  3. bmclean

    bmclean New Member

    We're running CentOs 5.3

    From the maillog

    Apr 15 13:56:20 bhm01ispc amavis[549]: (00549-08) Blocked SPAM, MYNETS LOCAL [] [] <[email protected]> -> <[email protected]>, quarantine: spam-poNnEfefl-oB.gz, Message-ID: <[email protected]>, mail_id: poNnEfefl-oB, Hits: 8.558, size: 11587, 6539 ms
    Apr 15 14:06:57 bhm01ispc amavis[549]: (00549-13) Blocked SPAM, [] [] <[email protected]> -> <[email protected]>, quarantine: spam-Z0jOFBiJIIgt.gz, Message-ID: <[email protected]>, mail_id: Z0jOFBiJIIgt, Hits: 15.157, size: 794, 6921 ms

    Thanks for you help.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks as if your system uses the wrong amavisd.conf file. Centos has a big problem, depending on the repositorys that you use, there are different amavisd packages and one uses /etc/amavisd.conf and the other one /etc/amavisd/amavisd.conf as configuration file. In your case you seem to have installed a package that uses /etc/amavisd/amavisd.conf but ISPConfig expects that the file /etc/amavisd.conf is used. So if you have thes etwo amavisd.conf files on your system, run the commands:

    mv /etc/amavisd/amavisd.conf /etc/amavisd/amavisd.conf.bak
    cp -pfr /etc/amavisd.conf /etc/amavisd/amavisd.conf

    and then restart amavisd.
  5. bmclean

    bmclean New Member


    Thanks for help. I did the install using the Perfect Server - CentOs 5.3. You were absolutely correct that there were 2 conf's one in /etc and the other in /etc/amavisd/ When I moved and copied the files I still had no changed. When I looked at the amavisd script it was looking for the conf file in /etc/amavisd.conf I basically went the other way with your instructions and used the original /etc/amavisd/amavisd.conf.bak and put it in /etc/amavisd.conf. This appears to have corrected the problem.


Share This Page