<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail 开源邮件服务解决方案 - logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15]]></title>
		<link>https://bbs.iredmail.org/topic3732-logwatch-varspoolamavisdquarantine-mtime-15.html</link>
		<atom:link href="https://bbs.iredmail.org/feed-rss-topic3732.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15 里最新回复的文章]]></description>
		<lastBuildDate>Sat, 12 May 2018 03:56:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[回复: logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15]]></title>
			<link>https://bbs.iredmail.org/post16030.html#p16030</link>
			<description><![CDATA[<p># logwatch --service cron --range 20180509<br /></p><div class="codebox"><pre><code>     User amavis:
       personal crontab edited: 1 Time(s)
       touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +15 | xargs rm -rf {}: 1 Time(s)
       touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +25 | xargs rm -rf {}: 1 Time(s)</code></pre></div><p>改為 -mtime +66<br /># logwatch --service cron --range 20180511<br /></p><div class="codebox"><pre><code>       touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +15 | xargs rm -rf {}: 1 Time(s)
       touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +66 | xargs rm -rf {}: 1 Time(s)</code></pre></div><p>查看:<br />/var/log/cron<br />這兩天的紀錄,是沒有<br />touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +15 | xargs rm -rf {}: 1 Time(s)</p><p>-mtime +25 及 +66 是有紀錄; <br />這實在說不過去 , logwatch 會抓以前的log 資料.</p>]]></description>
			<author><![CDATA[null@example.com (rain6966)]]></author>
			<pubDate>Sat, 12 May 2018 03:56:17 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16030.html#p16030</guid>
		</item>
		<item>
			<title><![CDATA[回复: logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15]]></title>
			<link>https://bbs.iredmail.org/post16019.html#p16019</link>
			<description><![CDATA[<p>find&nbsp; /etc/cron.* |xargs grep &#039;/var/spool/amavisd/quarantine&#039;<br />grep: /etc/cron.d: 是個目錄<br />grep: /etc/cron.daily: 是個目錄<br />grep: /etc/cron.hourly: 是個目錄<br />grep: /etc/cron.monthly: 是個目錄<br />grep: /etc/cron.weekly: 是個目錄</p><p># tree /etc/cron.*<br />/etc/cron.d<br />├── 0hourly<br />├── clamav-update<br />├── raid-check<br />└── sa-update<br />/etc/cron.daily<br />├── 0logwatch<br />├── logrotate<br />└── man-db.cron<br />/etc/cron.deny [error opening dir]<br />/etc/cron.hourly<br />├── 0anacron<br />└── awstats<br />/etc/cron.monthly<br />/etc/cron.weekly</p><p>0 directories, 9 files</p><p>沒有發現.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (rain6966)]]></author>
			<pubDate>Thu, 03 May 2018 03:29:03 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16019.html#p16019</guid>
		</item>
		<item>
			<title><![CDATA[回复: logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15]]></title>
			<link>https://bbs.iredmail.org/post16018.html#p16018</link>
			<description><![CDATA[<p>是不是 /etc/cron.* 里还有一个 task？</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 02 May 2018 09:27:13 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16018.html#p16018</guid>
		</item>
		<item>
			<title><![CDATA[logwatch 執行兩次:/var/spool/amavisd/quarantine/ -mtime +15]]></title>
			<link>https://bbs.iredmail.org/post16017.html#p16017</link>
			<description><![CDATA[<p>1).<br />logwatch:<br />&nbsp; &nbsp; &nbsp; &nbsp;touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +15 | xargs rm -rf {}: 1 Time(s)<br />&nbsp; &nbsp; &nbsp; &nbsp;touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +45 | xargs rm -rf {}: 1 Time(s)</p><p>2).<br /> crontab -e -u amavis<br />#<br /># File generated by iRedMail (2017.03.28.18.08.17):<br />#<br /># Version:&nbsp; 0.9.6<br /># Project:&nbsp; <a href="http://www.iredmail.org/">http://www.iredmail.org/</a><br />#<br /># Community: <a href="http://www.iredmail.org/forum/">http://www.iredmail.org/forum/</a><br />#</p><p># Delete virus mails which created 15 days ago.<br />## Delete virus mails which created 45 days ago.<br />1&nbsp; &nbsp;5&nbsp; &nbsp;*&nbsp; &nbsp;*&nbsp; &nbsp;*&nbsp; &nbsp;touch /var/spool/amavisd/quarantine; find /var/spool/amavisd/quarantine/ -mtime +45 | xargs rm -rf {}</p><br /><p>如何只執行一次 ?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (rain6966)]]></author>
			<pubDate>Wed, 02 May 2018 00:53:19 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16017.html#p16017</guid>
		</item>
	</channel>
</rss>
