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: