<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Problem with setting up SPF check (and a solution)]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic4149.xml" />
	<updated>2012-11-13T12:26:57Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic4149-problem-with-setting-up-spf-check-and-a-solution.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Problem with setting up SPF check (and a solution)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19060.html#p19060" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-11-13T12:26:57Z</updated>
			<id>http://www.iredmail.org/forum/post19060.html#p19060</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem with setting up SPF check (and a solution)]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19043.html#p19043" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jarkkolinnanvirta]]></name>
				<uri>http://www.iredmail.org/forum/user32135.html</uri>
			</author>
			<updated>2012-11-12T12:34:16Z</updated>
			<id>http://www.iredmail.org/forum/post19043.html#p19043</id>
		</entry>
</feed>
