<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Problem with setting up SPF check (and a solution)]]></title>
		<link>http://www.iredmail.org/forum/topic4149-problem-with-setting-up-spf-check-and-a-solution.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic4149.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Problem with setting up SPF check (and a solution).]]></description>
		<lastBuildDate>Tue, 13 Nov 2012 12:26:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problem with setting up SPF check (and a solution)]]></title>
			<link>http://www.iredmail.org/forum/post19060.html#p19060</link>
			<description><![CDATA[<div class="quotebox"><cite>jarkkolinnanvirta wrote:</cite><blockquote><p>Hi, I followed this guide to setup SPF check for iRedMail: <a href="http://www.iredmail.org/wiki/index.php?title=Postfix_SPF_check">http://www.iredmail.org/wiki/index.php? … _SPF_check</a></p></blockquote></div><p>Oh, this wiki tutorial was contributed by iRedMail user &quot;Maxie_ro&quot;.<br />iRedMail implements SPF checking with Amavisd + SpamAssassin (with perl module perl-SPF-Query), so you don&#039;t need this tutorial at all, it&#039;s enabled by default.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 13 Nov 2012 12:26:57 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19060.html#p19060</guid>
		</item>
		<item>
			<title><![CDATA[Problem with setting up SPF check (and a solution)]]></title>
			<link>http://www.iredmail.org/forum/post19043.html#p19043</link>
			<description><![CDATA[<p>==== Required information ====<br />- iRedMail version: 0.8.3<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL):&nbsp; MySQL<br />- Linux/BSD distribution name and version: Ubuntu 12.04<br />- Related log if you&#039;re reporting an issue: <br />====</p><p>Hi, I followed this guide to setup SPF check for iRedMail: <a href="http://www.iredmail.org/wiki/index.php?title=Postfix_SPF_check">http://www.iredmail.org/wiki/index.php? … _SPF_check</a></p><p>After everything was set up I tried to send an email from an external mailserver to iRedMail, but it failed. I checked /var/log/mail.log and noticed the following errors:<br /></p><div class="quotebox"><blockquote><p>warning: command /usr/bin/python exit status 2<br />warning: premature end-of-input on private/spfpolicy while reading input attribute name<br />warning: problem talking to server private/spfpolicy: Connection reset by peer</p></blockquote></div><p>I spent some time googling around and found almost nothing related to my case, but somebody mentioned trying to run &quot;/usr/bin/python /usr/bin/policyd-spf&quot; manually from command line. That&#039;s when I found out that the file didn&#039;t exist. The guide mentioned above is for CentOS and in Ubuntu the path is a little different.</p><p>Solution: Edit /etc/postfix/master.cf and go to the end:<br /></p><div class="quotebox"><blockquote><p># SPF check<br />spfpolicy unix&nbsp; -&nbsp; &nbsp; &nbsp; &nbsp;n&nbsp; &nbsp; &nbsp; &nbsp;n&nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; &nbsp;spawn<br />&nbsp; &nbsp; user=nobody argv=/usr/bin/python /usr/bin/policyd-spf</p></blockquote></div><p>In here, change &quot;/usr/bin/policyd-spf&quot; to &quot;/usr/local/bin/policyd-spf&quot; and then reload postfix.</p><p>Just wanted to share this solution if somebody else has the same problem with an Ubuntu based server. Imo the error message in mail.log is not very clear at this point.</p>]]></description>
			<author><![CDATA[null@example.com (jarkkolinnanvirta)]]></author>
			<pubDate>Mon, 12 Nov 2012 12:34:16 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post19043.html#p19043</guid>
		</item>
	</channel>
</rss>
