<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Calibri">Hello,<br>
<br>
I have a platform with Amavis and ClamAV on two different hosts
(in fact, different containers): it works well with TCP
connection.<br>
But now I would to use DNS name of ClamAV host instead of IP
address but it doesn't work. The error from Amavis is:<br>
<br>
(!)ClamAV-clamd av-scanner FAILED: Unsupported AV protocol name:
clamav1:3310 at (eval 96) line 686.<br>
<br>
My Amavis/ClamAV configuration is:<br>
<br>
['ClamAV-clamd',<br>
\&ask_daemon, ["CONTSCAN {}\n", 'clamav1:3310'],<br>
qr/\bOK$/m, qr/\bFOUND$/m,<br>
qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],<br>
<br>
It works if I put IP instead of "clamav1".<br>
<br>
Is it supported to use DNS name instead of IP in this
configuration section?<br>
I'm using DNS names on other sections of Amavis configuration and
it works (for instance I use it for $forward_method).<br>
<br>
Thanks for your help.<br>
<br>
<br>
</font>
</body>
</html>