<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Senín ( con n ) &#187; postfix</title>
	<atom:link href="http://www.senin.org/weblog/category/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.senin.org/weblog</link>
	<description>Mis notas rápidas de perl y shell</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:14:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Can&#8217;t connect to UNIX socket /var/run/clamav/clamd.ctl</title>
		<link>http://www.senin.org/weblog/2006/03/29/cant-connect-to-unix-socket-varrunclamavclamdctl/</link>
		<comments>http://www.senin.org/weblog/2006/03/29/cant-connect-to-unix-socket-varrunclamavclamdctl/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 16:38:46 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[postfix]]></category>
		<category><![CDATA[servidores de correo]]></category>

		<guid isPermaLink="false">http://senin.org/weblog/cant-connect-to-unix-socket-varrunclamavclamdctl</guid>
		<description><![CDATA[Este error se debe a que no tenemos el directorio creado, puede que nos falte tambien el paquete clamav-daemon. Mar 29 17:26:23 front5 amavisd-new[24950]: (24950-01) Clam Antivirus-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No existe el fichero o el directorio, retrying (1) Otro error de amavis, falla al chequear los mails con el antivirus amavisd-new[27386]: [...]]]></description>
			<content:encoded><![CDATA[<p>Este error se debe a que no tenemos el directorio creado, puede que nos falte tambien el paquete clamav-daemon.</p>
<pre>
Mar 29 17:26:23 front5 amavisd-new[24950]: (24950-01) Clam Antivirus-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No existe el fichero o el directorio, retrying (1)
</pre>
<p>Otro error de amavis, falla al chequear los mails con el antivirus</p>
<pre>
amavisd-new[27386]: (27386-01) TROUBLE in check_mail: virus_scan FAILED: ALL VIRUS SCANNERS FAILED: 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: No existe el fichero o el directorio) at (eval 40) line 180
</pre>
<p>El problema es que clamav corren chroot y no consigue acceder al demonio. Hay que verificar la configuracion de clamav:</p>
<p>/etc/clamav/clamd.conf y buscar LocalSocket /var/run/clamav/clamd</p>
<p>vemos que el socket está corriendo en  /var/run/clamav/clamd , ahora comprobamos la configuracion de amavis en /etc/amavis/amavis.conf y vemos que por defecto :</p>
<pre>
@av_scanners = (
### http://www.clamav.net/
['Clam Antivirus-clamd',
  \&#038;ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
  qr/\bOK$/, qr/\bFOUND$/,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ]
</pre>
<p>No coincide la ruta, la cambiamos para que sea /var/run/clamav/clamd y reiniciamos el demonio</p>
<pre>
/etc/init.d/amavis restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.senin.org/weblog/2006/03/29/cant-connect-to-unix-socket-varrunclamavclamdctl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
