Postfix + Amavis + SpamAssassin + ClamAV

Discussion in 'HOWTO-Related Questions' started by michele, Jun 21, 2006.

  1. michele

    michele New Member

    Hello,

    I have read and followed the instructions in the HowTo "Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV)", but I have problems with SpamAssassin and ClamAV.
    All incomming email aren't fetched by SpamAssassin and ClamAV.

    Al configurations files are the same of the HowTo.
    On the syslog, on restarting Amavis, I cann see this lines:

    Code:
    Jun 21 00:53:02 mtetamaro amavis[3452]: ANTI-VIRUS code      NOT loaded
    Jun 21 00:53:02 mtetamaro amavis[3452]: ANTI-SPAM code       NOT loaded
    Jun 21 00:53:02 mtetamaro amavis[3452]: ANTI-SPAM-SA code    NOT loaded
    
    How can I resolve this problem? Are people with the same problems?

    Thank you for any your effort.

    Michele
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Does your /etc/amavis/amavisd.conf look like the one from the tutorial? Please have a look at the linebreaks, etc. There seems to be a problem when you copy that file with the Internet Explorer.
     
  3. michele

    michele New Member

    Hello Falko...

    I have copied the same amavisd.conf file and correct it.
    Today I have reinstalled but always with the same problem:
    without AntiVirus and AntiSpam Check...

    I don't know how to solve this problem...
    All your HowTo has worked good for me... only this... doesn't... :(

    Sorry for my english and thank you for your time and your help.

    Michele
     
  4. michele

    michele New Member

    Hello,

    finally I have resolved my problem... after 4 day...
    I have a Debian Sarge server and I have installed the last stable amavis-new
    from debian repository.

    On this debian version (amavisd-new-2.4.1 (20060508)), the amavisd.conf file is ignored. All configuration need to be made in the files in the "/etc/amavis/conf.d/" directory.
    In the "/etc/amavis/conf.d/15-content_filter_mode" file, I have removed the # on the two lines @bypass_virus_checks_maps and @bypass_spam_checks_maps.

    Now all work.
    I need only to check in the 20-debian_defaults if all settings are good and properly configurated for my system.

    The next time will be better to read the documentation well before beginning… ;)

    I hope this can help if anyone has the same problem.
    (perhaps it is the case to point out it in the guide)

    Regards,

    Michele
     
    Last edited: Jun 22, 2006
  5. j005u

    j005u New Member

    using testing here and i have the same problem. i moved the config.d and made a new one inserting the sample config file you gave. no go, virus checks are still disabled.

    going to try with the default config.

    edit:
    adding the lines

    @bypass_virus_checks_maps = (
    \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);

    @bypass_spam_checks_maps = (
    \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);

    enables virus checks on debian testing and guessing by the previous poster also on the latest sarge.
     
    Last edited: Jul 1, 2006

Share This Page