<?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/"
	xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>spf &#8211; Random thoughts</title>
	<atom:link href="https://random.sphere.ro/tag/spf/feed/" rel="self" type="application/rss+xml" />
	<link>https://random.sphere.ro</link>
	<description>for when you get older and memory does&#039;t help you further</description>
	<lastBuildDate>Thu, 17 Sep 2020 12:32:31 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
	<item>
		<title>DMARC / Spamassassin / Qmail</title>
		<link>https://random.sphere.ro/dmarc-on-spamassassin/</link>
					<comments>https://random.sphere.ro/dmarc-on-spamassassin/#comments</comments>
		
		<dc:creator><![CDATA[iulian]]></dc:creator>
		<pubDate>Mon, 12 Aug 2019 09:10:03 +0000</pubDate>
				<category><![CDATA[Uncategorised]]></category>
		<category><![CDATA[dkim]]></category>
		<category><![CDATA[dmarc]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[qpsmtpd]]></category>
		<category><![CDATA[spamassassin]]></category>
		<category><![CDATA[spf]]></category>
		<guid isPermaLink="false">https://random.sphere.ro/?p=93</guid>

					<description><![CDATA[<p>There are a lot of articles regarding DMARC so i will not start again about what it is and what is useful for. Also i will not talk about the drawbacks when it&#8217;s implemented. I will instead give you a hint about where to generate a DMARC policy  and where to verify it. Until you&#8230;</p>
<p class="read-more"><a class="readmore-btn" href="https://random.sphere.ro/dmarc-on-spamassassin/">Read More<span class="screen-reader-text">  Read More</span></a></p>
<p>The post <a rel="nofollow" href="https://random.sphere.ro/dmarc-on-spamassassin/">DMARC / Spamassassin / Qmail</a> appeared first on <a rel="nofollow" href="https://random.sphere.ro">Random thoughts</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are a lot of articles regarding DMARC so i will not start again about what it is and what is useful for. Also i will not talk about the drawbacks when it&#8217;s implemented. I will instead give you a hint about where to <a href="https://mxtoolbox.com/DMARCRecordGenerator.aspx" target="_blank" rel="noopener">generate a DMARC</a> policy  and <a href="https://mxtoolbox.com/dmarc.aspx" target="_blank" rel="noopener">where to verify it</a>.</p>
<p>Until you understand the essence please also be very conservative about the policies that you apply. The example of deployment<a href="https://support.google.com/a/answer/2466563?hl=en" target="_blank" rel="noopener"> found it on google</a> it provides the way you should do it as well. More exactly:</p>
<ol>
<li>p=none pct=100</li>
<li>p=quarantine pct=1</li>
<li>p=quarantine pct=5</li>
<li>p=quarantine pct=10</li>
<li>p=quarantine pct=25</li>
<li>p=quarantine pct=50</li>
<li>p=quarantine pct=100</li>
<li>p=reject pct=1</li>
<li>p=reject pct=5</li>
<li>p=reject pct=10</li>
<li>p=reject pct=25</li>
<li>p=reject pct=50</li>
<li>p=reject pct=100</li>
</ol>
<p>Now that you already implemented it you might receive reports(if you provided rua/ruf) about what is happening with your domains.</p>
<p>But what about implementing DMARC in your MTA? Usually the straight answer will be opendmarc but depending your MTA the installation will not be very  easy. Since here we will talk about Qmail the solutions found by me in this moment are:</p>
<p>1) <a href="https://en.wikipedia.org/wiki/Qpsmtpd" target="_blank" rel="noopener">Qpsmtpd</a> and opendmarc. Please <a href="https://github.com/msimerson/mail-dmarc/wiki" target="_blank" rel="noopener">also see.</a></p>
<p>2)<a href="https://metacpan.org/pod/Mail::AuthenticationResults::SpamAssassin" target="_blank" rel="noopener"> A perl plugin</a> written for spam-assassin.</p>
<p>3) Using AskDNS plugin already available in spamassasin like this:</p>
<pre>ifplugin Mail::SpamAssassin::Plugin::AskDNS
askdns __DMARC_POLICY_NONE _dmarc._AUTHORDOMAIN_ TXT /^v=DMARC1;.*\bp=none;/
askdns __DMARC_POLICY_QUAR _dmarc._AUTHORDOMAIN_ TXT /^v=DMARC1;.*\bp=quarantine;/
askdns __DMARC_POLICY_REJECT _dmarc._AUTHORDOMAIN_ TXT /^v=DMARC1;.*\bp=reject;/

meta DMARC_REJECT !(DKIM_VALID_AU || SPF_PASS) &amp;&amp; __DMARC_POLICY_REJECT
score DMARC_REJECT 10
meta DMARC_QUAR !(DKIM_VALID_AU || SPF_PASS) &amp;&amp; __DMARC_POLICY_QUAR
score DMARC_QUAR 5
meta DMARC_NONE !(DKIM_VALID_AU || SPF_PASS) &amp;&amp; __DMARC_POLICY_NONE
score DMARC_NONE 0.1
endif</pre>
<p>Obviously edit the scores according to you needs.</p>
<p>4) After this article was written I&#8217;ve found out from <a href="https://notes.sagredo.eu/en/qmail-notes-185/configuring-dkim-for-qmail-92.html#comment1379" target="_blank" rel="noopener">here</a> (btw great blog about qmail)  there is another tool to use it. You can find it <a href="https://github.com/fany/App-Qmail-DMARC" target="_blank" rel="noopener">here.</a></p>
<p>So, what was your solution for Qmail and DMARC ? What do you use ? How do you use it ?</p>
<p>&nbsp;</p>
<p>Later edit(17/09/2020): A plugin for spamassassin was created. This is maintained and i believe it will introduced in core in the next releases. You can find references <a href="https://github.com/bigio/spamassassin-dmarc" target="_blank" rel="noopener">here</a> and <a href="https://cwiki.apache.org/confluence/display/SPAMASSASSIN/CustomPlugins" target="_blank" rel="noopener">here.</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://random.sphere.ro/dmarc-on-spamassassin/">DMARC / Spamassassin / Qmail</a> appeared first on <a rel="nofollow" href="https://random.sphere.ro">Random thoughts</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://random.sphere.ro/dmarc-on-spamassassin/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
