<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail 开源邮件服务解决方案 - 通过网页添加的黑白名单第二天就不见了]]></title>
		<link>https://bbs.iredmail.org/topic3849-view.html</link>
		<atom:link href="https://bbs.iredmail.org/feed-rss-topic3849.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[通过网页添加的黑白名单第二天就不见了 里最新回复的文章]]></description>
		<lastBuildDate>Wed, 31 Jul 2019 06:34:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[回复: 通过网页添加的黑白名单第二天就不见了]]></title>
			<link>https://bbs.iredmail.org/post16316.html#p16316</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin 写道:</cite><blockquote><p>在最新版本的 iRedAdmin-Pro 里无法重现这个错误。是否考虑升级 iRedMail （到最新的 0.9.9）和 iRedAdmin-Pro？</p></blockquote></div><p>非常感谢回复！<br />这个问题就临时这样处理了，至于升级，先不折腾了（主要是我啥都不懂），等以后重新搭建服务器的时候，直接使用最新版本吧。<br />再次感谢。</p>]]></description>
			<author><![CDATA[null@example.com (xjsxjs197)]]></author>
			<pubDate>Wed, 31 Jul 2019 06:34:48 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16316.html#p16316</guid>
		</item>
		<item>
			<title><![CDATA[回复: 通过网页添加的黑白名单第二天就不见了]]></title>
			<link>https://bbs.iredmail.org/post16311.html#p16311</link>
			<description><![CDATA[<p>在最新版本的 iRedAdmin-Pro 里无法重现这个错误。是否考虑升级 iRedMail （到最新的 0.9.9）和 iRedAdmin-Pro？</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 25 Jul 2019 04:02:37 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16311.html#p16311</guid>
		</item>
		<item>
			<title><![CDATA[回复: 通过网页添加的黑白名单第二天就不见了]]></title>
			<link>https://bbs.iredmail.org/post16310.html#p16310</link>
			<description><![CDATA[<p>应该算是 iRedAdmin-Pro 这个脚本的 bug，我会在下一版本里修复掉。感谢反馈。</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 24 Jul 2019 09:26:58 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16310.html#p16310</guid>
		</item>
		<item>
			<title><![CDATA[回复: 通过网页添加的黑白名单第二天就不见了]]></title>
			<link>https://bbs.iredmail.org/post16295.html#p16295</link>
			<description><![CDATA[<p>通过查看管理员日志，发现每天会定时执行：cleanup_amavisd_db。<br />原因应该就在这里，先添加黑白名单，再手动执行cleanup_amavisd_db，黑白名单就不见了。<br />手动修改cleanup_amavisd_db.py中下面的代码：</p><p>#<br /># Delete unreferenced records from table `mailaddr`.<br />#<br />logger.info(&#039;Delete unreferenced records from table `mailaddr`.&#039;)</p><p># Get all `mailaddr.id`<br />mailaddr_ids = set()<br />qr = conn.select(&#039;mailaddr&#039;, what=&#039;id&#039;)<br />for i in qr:<br />&nbsp; &nbsp; mailaddr_ids.add(i.id)</p><p># Get all `wblist.sid` and `outbound_wblist.rid` (both refer to `mailaddr.id`)<br />wblist_ids = set()</p><p>qr = conn.select(&#039;wblist&#039;, what=&#039;sid&#039;)<br />for i in qr:<br />&nbsp; &nbsp; wblist_ids.add(i.sid)</p><p>try:<br />&nbsp; &nbsp; qr = conn.select(&#039;outbound_wblist&#039;, what=&#039;rid&#039;)<br />&nbsp; &nbsp; for i in qr:<br />&nbsp; &nbsp; &nbsp; &nbsp; wblist_ids.add(i.sid)<br />except:<br />&nbsp; &nbsp; # No outbound_wblist table<br />&nbsp; &nbsp; pass</p><p>invalid_mailaddr_ids = [id for id in mailaddr_ids if id not in wblist_ids]<br />#把下面注释掉<br />#removing_from_one_table(sql_table=&#039;mailaddr&#039;,<br />#&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; index_column=&#039;id&#039;,<br />#&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removed_values=invalid_mailaddr_ids)<br />#把上面注释掉</p><p>问题虽然算是解决，<br />但是上面的removing_from_one_table为什么会把黑白名单都删除了，以及注释掉这段代码会产生什么影响，就不太清楚了。<br />请教高手或前辈指点。</p>]]></description>
			<author><![CDATA[null@example.com (xjsxjs197)]]></author>
			<pubDate>Tue, 02 Jul 2019 06:02:55 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16295.html#p16295</guid>
		</item>
		<item>
			<title><![CDATA[通过网页添加的黑白名单第二天就不见了]]></title>
			<link>https://bbs.iredmail.org/post16292.html#p16292</link>
			<description><![CDATA[<p>版主好：<br />我通过iRedAdmin-Pro网页版追加了黑白名单，当天测试是生效的，黑名单可以阻止发信。<br />但是第二天再打开网页版的设置时，前一天的黑白名单不见了，还需要其他的什么操作吗？</p><p>iRedMail v0.9.4 <br />iRedAdmin-Pro v2.3.1 (PostgreSQL)</p>]]></description>
			<author><![CDATA[null@example.com (xjsxjs197)]]></author>
			<pubDate>Fri, 28 Jun 2019 06:08:19 +0000</pubDate>
			<guid>https://bbs.iredmail.org/post16292.html#p16292</guid>
		</item>
	</channel>
</rss>
