<?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>Libre Things &#187; Spam</title>
	<atom:link href="http://positon.org/tag/spam/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>Exim Router: recipient filter</title>
		<link>http://positon.org/exim-router-recipient-filter</link>
		<comments>http://positon.org/exim-router-recipient-filter#comments</comments>
		<pubDate>Tue, 09 Nov 2010 22:51:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=105</guid>
		<description><![CDATA[In a previous post, I explained how to setup a catchall with Exim. This to create multiple addresses all redirecting to the same destination: catchall_pub: driver = redirect domains = ads.mydomain.com data = user@mydomain.com Then, I wrote that on destination address we could setup a Sieve or Exim filter with a .forward file. If you [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In a previous post, I explained how to setup a catchall with Exim. This to create multiple addresses all redirecting to the same destination:</p>
<pre>
catchall_pub:
  driver = redirect
  domains = ads.mydomain.com
  data = user@mydomain.com
</pre>
<p>Then, I wrote that on destination address we could setup a Sieve or Exim filter with a <code>.forward</code> file.</p>
<p>If you want to do that directly in Exim, to have all config in one place, or simply if your destination mail box doesn&#8217;t supports filters&#8230;</p>
<p>Just add a <code>local_parts</code> option:</p>
<pre>
catchall_pub:
  driver = redirect
  domains = ads.mydomain.com
  local_parts = !/etc/exim4/ads.mydomain.com.blacklist
  data = user@mydomain.com
</pre>
<p>In <code>/etc/exim4/ads.mydomain.com.blacklist</code> we put all rejected addresses, one per line:</p>
<pre>
foo1
bar2
</pre>
<p>This way foo1@ads.mydomain.com and bar2@ads.mydomain.com will be rejected.</p>
<p><ins>Exim4 Doc</ins>:</p>
<ul>
<li><a href="http://www.exim.org/exim-html-4.30/doc/html/spec_22.html">The redirect router</a></li>
<li><a href="http://www.exim.org/exim-html-4.30/doc/html/spec_3.html#SECT3.11">Router preconditions</a></li>
<li><a href="http://www.exim.org/exim-html-4.30/doc/html/spec_10.html#SECT10.3">File names in lists</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/exim-router-recipient-filter/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Catch-all mail with Exim</title>
		<link>http://positon.org/catch-all-mail-with-exim</link>
		<comments>http://positon.org/catch-all-mail-with-exim#comments</comments>
		<pubDate>Mon, 24 May 2010 22:52:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=93</guid>
		<description><![CDATA[The main idea is to have a set of anything@ads.mydomain.com addresses, all redirecting to a single mailbox. Then I can use any address @ads.mydomain.com as an alias to my primary mailbox. This way, I give ebay@ads.mydomain.com to Ebay, amazon@ads.mydomain.com to Amazon and so on. This solutions allows me to disable an alias if unsubscribing on [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>The main idea is to have a set of <code>anything@ads.mydomain.com</code> addresses, all redirecting to a single mailbox. Then I can use any address <code>@ads.mydomain.com</code> as an alias to my primary mailbox.<br />
This way, I give <code>ebay@ads.mydomain.com</code> to Ebay, <code>amazon@ads.mydomain.com</code> to Amazon and so on.</p>
<p>This solutions allows me to disable an alias if unsubscribing on the site doesn&#8217;t work. I can also use this to track sites selling my address to other sites.</p>
<p>First, <a href="http://www.exim.org/">Exim</a> has to listen on the network, and accept mail to the <code>ads.mydomain.com</code> domain. Under Debian, put this in <code>/etc/exim4/update-exim4.conf.conf</code>:</p>
<pre>
dc_local_interfaces='0.0.0.0'
dc_relay_domains='ads.mydomain.com'
</pre>
<p>Note under Debian: each time Exim starts the <code>/etc/exim4/exim4.conf.template</code> file is filled with variables set in <code>/etc/exim4/update-exim4.conf.conf</code>, générating the <code>/var/lib/exim4/config.autogenerated</code> file. This is to ease Exim configuration in standard cases.</p>
<p>Then edit the <code>/etc/exim4/exim4.conf.template</code> file to add a new <em>router</em>, in first position just bellow <code>begin routers</code>:</p>
<pre>
catchall_pub:
  driver = redirect
  domains = ads.mydomain.com
  data = user@mydomain.com
</pre>
<p>The <em>router</em> will be called for any mail @ads.mydomain.com. It give all mails to the <em>redirect</em> transport sending them to the address set in <em>data</em>.</p>
<p>Finally, you can then use a <code>/home/user/.forward</code> file to disable aliases with a <a href="http://www.exim.org/exim-html-current/doc/html/filter.html">Sieve or Exim filter</a>.</p>
<p><strong>UPDATE 2010-11-10:</strong> <a href="/exim-router-recipient-filter">another way of disabling aliases</a></p>
<p><ins>References</ins>:</p>
<ul>
<li><a href="http://www.exim.org/exim-html-current/doc/html/spec_html/ch03.html">How Exim receives and delivers mail</a></li>
<li><a href="http://www.exim.org/exim-html-current/doc/html/spec_html/ch07.html#SECID55">Router configuration</a></li>
<li><code>man update-exim4.conf.conf</code></li>
<li><a href="http://www.exim-users.org/forums/showthread.php?t=42346" title="http://www.exim-users.org/forums/showthread.php?t=42346">http://www.exim-users.org/forums/showthread.php?t=42346</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/catch-all-mail-with-exim/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
