Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-2009, 12:43 PM
Partner (VAR/HSP)
 
Posts: 30
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
Reply With Quote
  #2 (permalink)  
Old 10-21-2009, 04:47 AM
Moderator
 
Posts: 7,928
Default

Have you tried
Code:
su - zimbra
zmamavisdctl stop ; zmamavisdctl start
__________________
Reply With Quote
  #3 (permalink)  
Old 10-21-2009, 04:53 AM
Partner (VAR/HSP)
 
Posts: 30
Default

Yes, the whole server has been down and up again..
Reply With Quote
  #4 (permalink)  
Old 10-21-2009, 04:55 AM
Moderator
 
Posts: 7,928
Default

Check clamd.log in /opt/zimbra/log for any error messages.
__________________
Reply With Quote
  #5 (permalink)  
Old 01-13-2010, 11:45 AM
Zimbra Employee
 
Posts: 11
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:
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.