Results 1 to 5 of 5

Thread: Amavis want to connect to clamd through ipv6

  1. #1
    svendsen is offline Partner (VAR/HSP)
    Join Date
    Sep 2009
    Location
    Aarhus, Denmark
    Posts
    30
    Rep Power
    5

    Default Amavis want to connect to clamd through ipv6

    Hi guys,

    Because of some troubles we chose to disable ipv6 protocol on a client's server.
    Everything now runs fine, but we get some connection errors from Amavis. Seems as it still tries to connect to clamd through ipv6 - even though clamd is confirmed (netstat -tan) listening in ip4-mode only.

    How can we force Amavis to connect through ipv4? FYI they are running ZCS NE 6.0.1..


    log:

    Oct 20 21:34:17 zimbra amavis[39647]: (39647-01) ClamAV-clamd: Can't connect to INET6 socket 127.0.0.1:3310: Address family not supported by protocol family, retrying (1)
    Oct 20 21:34:17 zimbra postfix/smtpd[49533]: disconnect from unknown[189.100.224.80]
    Oct 20 21:34:18 zimbra amavis[39647]: (39647-01) (!)ClamAV-clamd: Can't connect to INET6 socket 127.0.0.1:3310: Address family not supported by protocol family, retrying (2)
    Oct 20 21:34:24 zimbra amavis[39647]: (39647-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to 127.0.0.1:3310 (Can't connect to INET6 socket 127.0.0.1:3310: Address family not supported by protocol family) at (eval 43) line 373.\n
    Oct 20 21:34:24 zimbra amavis[39647]: (39647-01) (!!)WARN: all primary virus scanners failed, considering backups

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Have you tried
    Code:
    su - zimbra
    zmamavisdctl stop ; zmamavisdctl start

  3. #3
    svendsen is offline Partner (VAR/HSP)
    Join Date
    Sep 2009
    Location
    Aarhus, Denmark
    Posts
    30
    Rep Power
    5

    Default

    Yes, the whole server has been down and up again..

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Check clamd.log in /opt/zimbra/log for any error messages.

  5. #5
    ppearl's Avatar
    ppearl is offline Zimbra Employee
    Join Date
    Jul 2007
    Location
    US
    Posts
    67
    Rep Power
    8

    Default

    This reply is way late, but hopefully still useful...

    Depending upon your server setup you may hae run into something like a situation I saw on a solaris server. The amavisd code uses a regex to see if a name looks like an ipv4 address but that regex is a little off. I submitted a minor patch to amavis-user mail list to work around this.

    Here's the change:
    < my($is_inet4) = $is_inet && $socketname=~/^\d+.\d+.\d+.\d+\z/ ? 1 : 0;
    > my($is_inet4) = $is_inet && $socketname=~/^\d+\.\d+\.\d+\.\d+/ ? 1 : 0;

    And here's a link to my email to the user list:
    SourceForge.net: AMaViS - A Mail Virus Scanner:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Daily mail report always reports "No messages found"
    By McPringle in forum Installation
    Replies: 42
    Last Post: 06-13-2011, 08:57 AM
  2. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  4. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 PM
  5. Can't send or receive mails from Zimbra
    By ppurama in forum Administrators
    Replies: 4
    Last Post: 11-14-2005, 10:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •