<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Issue with spf_to_greylist_whitelists.py not importing all SPF network]]></title>
		<link>https://forum.iredmail.org/topic20991-issue-with-spftogreylistwhitelistspy-not-importing-all-spf-network.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20991.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Issue with spf_to_greylist_whitelists.py not importing all SPF network.]]></description>
		<lastBuildDate>Thu, 25 Sep 2025 06:48:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Issue with spf_to_greylist_whitelists.py not importing all SPF network]]></title>
			<link>https://forum.iredmail.org/post91300.html#p91300</link>
			<description><![CDATA[<p>I have updated iRedAPD to the latest version, and now the SPF script correctly adds all records from the domain.<br />The issue is resolved. Thank you for your help!</p>]]></description>
			<author><![CDATA[null@example.com (tech)]]></author>
			<pubDate>Thu, 25 Sep 2025 06:48:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91300.html#p91300</guid>
		</item>
		<item>
			<title><![CDATA[Re: Issue with spf_to_greylist_whitelists.py not importing all SPF network]]></title>
			<link>https://forum.iredmail.org/post91299.html#p91299</link>
			<description><![CDATA[<p>Which iRedAPD release are you running? Please upgrade iRedAPD to at least 5.9.0 which fixes this issue.<br />FYI<br />- <a href="https://github.com/iredmail/iRedAPD/blob/master/ChangeLog#L9">https://github.com/iredmail/iRedAPD/blo … angeLog#L9</a><br />- <a href="https://docs.iredmail.org/upgrade.iredapd.html">https://docs.iredmail.org/upgrade.iredapd.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 25 Sep 2025 06:38:54 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91299.html#p91299</guid>
		</item>
		<item>
			<title><![CDATA[Issue with spf_to_greylist_whitelists.py not importing all SPF network]]></title>
			<link>https://forum.iredmail.org/post91298.html#p91298</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): <br />- Deployed with iRedMail Easy or the downloadable installer?<br />- Linux/BSD distribution name and version: <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />- Web server (Apache or Nginx):<br />- Manage mail accounts with iRedAdmin-Pro?<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====<br />Hello,</p><p>I have an issue with the script spf_to_greylist_whitelists.py when trying to import SPF records into greylist whitelist.</p><p>For example, running:</p><p>python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py icloud.com</p><br /><p>Output:</p><p>* 1 mail domains in total.<br />&nbsp; &nbsp; &nbsp; &nbsp; + [icloud.com]</p><br /><p>When I check with:</p><p>python3 /opt/iredapd/tools/greylisting_admin.py --list-whitelists | grep icloud</p><br /><p>I only see a subset of IP ranges added, for example:</p><p>112.19.199.64/29 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />112.19.242.64/29 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />144.178.36.0/24 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />144.178.38.0/24 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />157.255.1.64/29 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />17.142.0.0/15 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />17.41.0.0/16 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />17.57.155.0/24 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />17.57.156.0/24 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />17.58.0.0/16 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;<br />222.73.195.64/29 -&gt; @., &#039;AUTO-UPDATE: icloud.com&#039;</p><br /><p>But the SPF record for icloud.com actually contains more networks, for example:</p><p>icloud.com text = &quot;v=spf1 ip4:17.41.0.0/16 ip4:17.58.0.0/16 ip4:17.142.0.0/15 ip4:17.57.155.0/24 ip4:17.57.156.0/24 ip4:144.178.36.0/24 ip4:144.178.38.0/24 ip4:112.19.199.64/29 ip4:112.19.242.64/29 ip4:222.73.195.64/29 ip4:157.255.1.64/29&quot; <br />&quot; ip4:106.39.212.64/29 ip4:123.126.78.64/29 ip4:183.240.219.64/29 ip4:39.156.163.64/29 ip4:57.103.64.0/18&quot;<br />&quot; ip6:2a01:b747:3000:200::/56 ip6:2a01:b747:3001:200::/56 ip6:2a01:b747:3002:200::/56 ip6:2a01:b747:3003:200::/56 ip6:2a01:b747:3004:200::/56 ip6:2a01:b747:3005:200::/56 ip6:2a01:b747:3006:200::/56 ~all&quot;</p><br /><p>As you can see, these ranges (like 106.39.212.64/29, 123.126.78.64/29, 183.240.219.64/29, 39.156.163.64/29, 57.103.64.0/18) are missing in the greylist whitelist.</p><p>Is this a bug or is there a limitation in the script when handling multi-part SPF records (long TXT split across several strings)?</p><p>Any advice on how to import all networks from SPF correctly would be appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (tech)]]></author>
			<pubDate>Thu, 25 Sep 2025 06:05:41 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91298.html#p91298</guid>
		</item>
	</channel>
</rss>
