<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GeeK`s Lifez &#187; SPF</title>
	<atom:link href="http://blog.cannibalz.net/category/spf/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cannibalz.net</link>
	<description>GeeK`s Lifez</description>
	<lastBuildDate>Mon, 16 Jan 2012 21:00:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Postfix &#8211; SPF</title>
		<link>http://blog.cannibalz.net/2008/04/03/postfix-spf/</link>
		<comments>http://blog.cannibalz.net/2008/04/03/postfix-spf/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:22:58 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SPF]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/2008/04/03/postfix-spf/</guid>
		<description><![CDATA[Ce tutorial a pour but de permettre l'installation de SPF (Sender Policy Framework). SPF est tres utile car il permets par exemple a vos e-mails de ne pas être considéré comme des spams par Gmail. Dans un premier temps il faut installer un module perl: Mail::SPF Pour cela lancer le shell perl: # perl -MCPAN [...]]]></description>
			<content:encoded><![CDATA[<p>Ce tutorial a pour but de permettre l'installation de SPF (Sender Policy Framework).<br />
SPF est tres utile car il permets par exemple a vos e-mails de ne pas être considéré comme des spams par Gmail.</p>
<p><span id="more-35"></span><br />
Dans un premier temps il faut installer un module perl: Mail::SPF</p>
<p>Pour cela lancer le shell perl:</p>
<ul>
<li># perl -MCPAN -e shell</li>
</ul>
<p>Et installez le module qui nous intéresse Mail::SPF :</p>
<ul>
<li>cpan&gt; install Mail::SPF</li>
</ul>
<p>Pour quitter le shell utilisez 'q'</p>
<ul>
<li>cpan&gt; q</li>
</ul>
<p>Installez a present postfix-policyd-spf-perl:</p>
<ul>
<li>#cd /usr/src</li>
<li>#wget http://www.openspf.org/blobs/postfix-policyd-spf-perl-2.001.tar.gz</li>
<li>#tar xvfz postfix-policyd-spf-perl-2.001.tar.gz</li>
<li>#cd postfix-policyd-spf-perl-2.001</li>
<li>#cp postfix-policyd-spf-perl /usr/lib/postfix/policyd-spf-perl</li>
</ul>
<p>Éditez le fichier master.cf:</p>
<ul>
<li># nano /etc/postfix/master.cf</li>
</ul>
<p>Et rajoutez a la fin:</p>
<blockquote><p>policy  unix  -       n       n       -       -       spawn<br />
user=nobody argv=/usr/bin/perl /usr/lib/postfix/policyd-spf-perl</p></blockquote>
<p>Puis éditez le fichier main.cf et modifier la ligne smtpd_recipient_restrictions pour mettre apres reject_unauth_destination la directive check_policy_service unix:private/policy :</p>
<ul>
<li># nano  /etc/postfix/main.cf</li>
</ul>
<blockquote><p>smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,check_policy_service unix:private/policy</p></blockquote>
<p>Redémarrez postif:</p>
<ul>
<li># /etc/init.d/postfix restart</li>
</ul>
<p>Vous pouvez vérifier que postfix-policyd-spf-perl fonctionne en le lançant:</p>
<ul>
<li># perl /usr/lib/postfix/policyd-spf-perl</li>
</ul>
<p>(vous devriez avoir un genre de "shell")</p>
<p>Pour vérifiez que SPF est bien active regardez vos logs postifx, vous devriez y trouver quelque chose du genre:</p>
<blockquote><p>postfix/policy-spf[18924]: handler sender_policy_framework: is decisive.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2008/04/03/postfix-spf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

