<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Problem receive/send]]></title>
		<link>https://forum.iredmail.org/topic5472-problem-receivesend.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic5472.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Problem receive/send.]]></description>
		<lastBuildDate>Wed, 13 Jan 2016 07:51:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problem receive/send]]></title>
			<link>https://forum.iredmail.org/post45573.html#p45573</link>
			<description><![CDATA[<p>just an update on this post which i came to as a result of searching for the very same error (now 2016).</p><p>other posts on this site lead me to believe that the owner of clamd.log was clam:clam</p><p>this does not appear to be the case at least in iredmail version 0.8.6.</p><p>i am not sure when it happened (probably when i ran a yum update recently) but the new log file (which was empty) had a permissions problem.</p><p>i deleted the file and reused an old log file - not great practice i know.</p><p>in any case clamd restarted without a problem. i then ran</p><p> </p><div class="codebox"><pre><code>ls -lh /var/log/clamav/clamd.log</code></pre></div><p>and got the output</p><div class="codebox"><pre><code>-rw-r--r-- 1 amavis amavis 10K Jan 13 07:26 /var/log/clamav/clamd.log</code></pre></div><p>so it appears that amavis owns the file</p><p>i then put the old log file back and created a new clamd.log file&nbsp; like this in the /var/log/clamav directory:</p><div class="codebox"><pre><code># touch clamd.log
# chmod 0755 clamd.log
# chown amavis:amavis clamd.log
# service clamd restart
Stopping Clam AntiVirus Daemon:                            [  OK  ]
Starting Clam AntiVirus Daemon:                              [  OK  ]</code></pre></div><p>it is now all working ok.</p><p>hope this helps someone</p><p>rs</p><p>*************************************************<br />UPDATE<br />*************************************************</p><p>i just checked another iredmail server that i am running (0.9.1) and noticed that clamd had stopped as well, although on restart it fired up ok without the errors of the other system.</p><p>i also noticed that the ownership of the clamd.log file there was clam:clam.</p><p>so as a result take my advice above with extreme caution.</p><p> i would be checking the permissions of the old log files first before taking any action.</p><p>rs</p>]]></description>
			<author><![CDATA[null@example.com (raystrach)]]></author>
			<pubDate>Wed, 13 Jan 2016 07:51:22 +0000</pubDate>
			<guid>https://forum.iredmail.org/post45573.html#p45573</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem receive/send]]></title>
			<link>https://forum.iredmail.org/post24724.html#p24724</link>
			<description><![CDATA[<p>Yes it seems so:</p><p>[root@mail ~]# yum repolist<br />Loaded plugins: fastestmirror<br />Loading mirror speeds from cached hostfile<br /> * base: mi.mirror.garr.it<br /> * epel: ftp-stud.hs-esslingen.de<br /> * extras: mi.mirror.garr.it<br /> * updates: mi.mirror.garr.it<br />repo id&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;repo name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;status<br />base&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CentOS-5 - Base&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2770<br />epel&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Extra Packages for Enterprise Linux 5 - i386&nbsp; &nbsp; &nbsp; &nbsp; 6040<br />extras&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CentOS-5 - Extras&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 276<br />iRedMail&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iRedMail&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;179<br />iRedMail-Dovecot-12&nbsp; &nbsp;iRedMail-Dovecot-12&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;17<br />newrelic&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; New Relic packages for Enterprise Linux 5 - i386&nbsp; &nbsp; &nbsp; &nbsp;5<br />updates&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CentOS-5 - Updates&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;508<br />repolist: 9795</p>]]></description>
			<author><![CDATA[null@example.com (posa68)]]></author>
			<pubDate>Sat, 28 Sep 2013 07:40:48 +0000</pubDate>
			<guid>https://forum.iredmail.org/post24724.html#p24724</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem receive/send]]></title>
			<link>https://forum.iredmail.org/post24720.html#p24720</link>
			<description><![CDATA[<p>Did you enable EPEL yum repository to upgrade ClamAV?<br />ClamAV packages in EPEL are different from the one installed by iRedMail-0.8.4 and earlier releases, but we use EPEL by default in iRedMail-0.8.5.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 28 Sep 2013 00:13:33 +0000</pubDate>
			<guid>https://forum.iredmail.org/post24720.html#p24720</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem receive/send]]></title>
			<link>https://forum.iredmail.org/post24717.html#p24717</link>
			<description><![CDATA[<p>I solve for the moment deleting file /var/log/clamav/clamd.log, create a new one with touch and chmod to clam, then restart manually: service clamd restart.<br />SAME thing with freshclam (same error on freshclam log file).</p><p>I don&#039;t understand why this happened, in a stable and working server...</p>]]></description>
			<author><![CDATA[null@example.com (posa68)]]></author>
			<pubDate>Fri, 27 Sep 2013 20:26:06 +0000</pubDate>
			<guid>https://forum.iredmail.org/post24717.html#p24717</guid>
		</item>
		<item>
			<title><![CDATA[Problem receive/send]]></title>
			<link>https://forum.iredmail.org/post24716.html#p24716</link>
			<description><![CDATA[<p>==== Required information ====<br />- iRedMail version: <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />- Linux/BSD distribution name and version: <br />- Related log if you&#039;re reporting an issue: <br />====</p><p>Hi I&#039;m on centos, latest iredmail.<br />I have trouble to send and receive mail, I have serious error in maillog involving amavis and clamav:</p><p>Sep 27 22:14:43 posta postfix/smtpd[8193]: disconnect from unknown[62.129.232.247]<br />Sep 27 22:14:44 posta amavis[8053]: (08053-04) (!)ClamAV-clamd: Can&#039;t connect to UNIX socket /tmp/clamd.socket: No such file or directory, retrying (2)<br />Sep 27 22:14:45 posta amavis[8052]: (08052-05) (!)ClamAV-clamd: Can&#039;t connect to UNIX socket /tmp/clamd.socket: No such file or directory, retrying (2)<br />Sep 27 22:14:50 posta amavis[8053]: (08053-04) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (Can&#039;t connect to UNIX socket /tmp/clamd.socket: No such file or directory) at (eval 104) line 373.\n<br />Sep 27 22:14:50 posta amavis[8053]: (08053-04) (!!)WARN: all primary virus scanners failed, considering backups<br />Sep 27 22:14:50 posta amavis[8053]: (08053-04) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output=&quot;WARNING: Ignoring deprecated option --disable-summary\nERROR: Option --tempdir requires a non-empty string argument\nERROR: Can&#039;t parse command line options&quot;<br />Sep 27 22:14:50 posta amavis[8053]: (08053-04) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output=&quot;WARNING: Ignoring deprecated option --disable-summary\nERROR: Option --tempdir requires a non-empty string argument\nERROR: Can&#039;t parse command line options&quot; at (eval 104) line 594.<br />Sep 27 22:14:50 posta amavis[8053]: (08053-04) (!!)TROUBLE in check_mail: virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED<br />Sep 27 22:14:50 posta amavis[8053]: (08053-04) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20130927T221443-08053<br />Sep 27 22:14:50 posta postfix/smtp[8152]: 096681F6800C: to=&lt;xxx@xxx.it&gt;, relay=127.0.0.1[127.0.0.1]:10024, delay=7.2, delays=0.05/0/0/7.2, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=08053-04, virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED (in reply to end of DATA command))<br />Sep 27 22:14:51 posta amavis[8052]: (08052-05) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (Can&#039;t connect to UNIX socket /tmp/clamd.socket: No such file or directory) at (eval 104) line 373.\n<br />Sep 27 22:14:51 posta amavis[8052]: (08052-05) (!!)WARN: all primary virus scanners failed, considering backups<br />Sep 27 22:14:51 posta amavis[8052]: (08052-05) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output=&quot;WARNING: Ignoring deprecated option --disable-summary\nERROR: Option --tempdir requires a non-empty string argument\nERROR: Can&#039;t parse command line options&quot;<br />Sep 27 22:14:51 posta amavis[8052]: (08052-05) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output=&quot;WARNING: Ignoring deprecated option --disable-summary\nERROR: Option --tempdir requires a non-empty string argument\nERROR: Can&#039;t parse command line options&quot; at (eval 104) line 594.<br />Sep 27 22:14:51 posta amavis[8052]: (08052-05) (!!)TROUBLE in check_mail: virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED<br />Sep 27 22:14:51 posta amavis[8052]: (08052-05) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20130927T221443-08052<br />Sep 27 22:14:51 posta postfix/smtp[8064]: D2CC21F6800D: to=&lt;xxx@xxx.it&gt;, relay=127.0.0.1[127.0.0.1]:10024, delay=7.3, delays=0.17/0/0/7.1, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=08052-05, virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED (in reply to end of DATA command))</p><p>How can I solve this?<br />The machine is working well about 2 years from now...</p><p>If I try to manually start clamd:</p><p>[root@posta ~]# service clamd restart<br />Stopping Clam AntiVirus Daemon:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [FALLITO]<br />Starting Clam AntiVirus Daemon: ERROR: Can&#039;t open /var/log/clamav/clamd.log in append mode (check permissions!).<br />ERROR: Can&#039;t initialize the internal logger<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[FALLITO]</p>]]></description>
			<author><![CDATA[null@example.com (posa68)]]></author>
			<pubDate>Fri, 27 Sep 2013 20:18:45 +0000</pubDate>
			<guid>https://forum.iredmail.org/post24716.html#p24716</guid>
		</item>
	</channel>
</rss>
