clamav not working within amavisd-new config

Discussion in 'HOWTO-Related Questions' started by HoUsECAt, Jul 26, 2007.

  1. HoUsECAt

    HoUsECAt New Member

    Succesfully running virtual users and domains with spam and virusscanning on Ubuntu.

    After a dist-upgrade amavisd is giving errors on clamav, but mail is still delivered.

    Code:
    Jul 26 09:50:32 mail01 amavisd-new[14414]: (14414-02) Clam Antivirus-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Connection refused, retrying (2)
    Jul 26 09:50:38 mail01 amavisd-new[14414]: (14414-02) Clam Antivirus-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Connection refused) at (eval 43) line 180.
    Jul 26 09:50:38 mail01 amavisd-new[14414]: (14414-02) WARN: all primary virus scanners failed, considering backups
    
    Anyone a idea?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to restart the clamav daemon and afterwards the amavis daemon.
     
  3. HoUsECAt

    HoUsECAt New Member

    already did that, updated the amavisd-new from universe repository and works like a charm again!

    Only running into:

    Code:
    Jul 26 11:25:36 localhost postfix/smtpd[14206]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
    now :(
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the content of the file /etc/default/saslauthd
     
  5. HoUsECAt

    HoUsECAt New Member

    im getting the hang of this! replace :

    Code:
    PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
    by

    Code:
    OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
    and it works like before :) thanks for your effort till
     

Share This Page