<?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>[ t h e f r a g g l e . c o m ] &#187; mta</title>
	<atom:link href="http://www.thefraggle.com/tag/mta/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thefraggle.com</link>
	<description>technology, photography and anything else that springs to mind.</description>
	<lastBuildDate>Tue, 13 Sep 2011 09:37:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Virtual domains in exim4</title>
		<link>http://www.thefraggle.com/2007/06/14/virtual-domains-in-exim4/</link>
		<comments>http://www.thefraggle.com/2007/06/14/virtual-domains-in-exim4/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 18:59:04 +0000</pubDate>
		<dc:creator>Chris Ganderton</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[mta]]></category>

		<guid isPermaLink="false">http://www.thefraggle.com/2007/06/14/virtual-domains-in-exim4/</guid>
		<description><![CDATA[I&#8217;ve been using exim for a while with virtual domain support, and thought it be best to document what I did somewhere. For a long time I wondered how I might actually support virtual domains in exim 4 and held off by just dumping all mail from all domains into my mailbox (how gosh darn [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using exim for a while with virtual domain support, and thought it be best to document what I did somewhere.</p>
<p>For a long time I wondered how I might actually support virtual domains in exim 4 and held off by just dumping all mail from all domains into my mailbox (how gosh darn lazy is that).</p>
<p>I finally got bothered enough to, and found a lot of easy to follow help on the internets (google), and came up with  the following additions to my exim4.conf :</p>
<p><code><br />
domainlist localdomains = dsearch;/etc/exim4/virtual : @ : localhost<br />
</code><br />
and in the routers section<br />
<code><br />
begin routers<br />
...<br />
vdom_aliases:<br />
driver = redirect<br />
allow_defer<br />
allow_fail<br />
domains = dsearch;/etc/exim4/virtual<br />
data = ${expand:${lookup{$local_part}lsearch*@{/etc/exim4/virtual/$domain}}}<br />
retry_use_local_part<br />
pipe_transport   = address_pipe<br />
file_transport   = address_file<br />
no_more<br />
</code></p>
<p>As you can see there is a directory called /etc/exim4/virtual, which contains several files, each of which define the aliases for a domain, an example file in that directory could look like:<br />
filename: thefraggle.com</p>
<p><code><br />
* : :fail:<br />
chris : chris@localhost<br />
</code></p>
<p>As you can see this looks pretty simalar to the sendmail aliases file, but requires no rebuilding (if you have used sendmail at some point, you&#8217;ll know that you need to issue a &#8220;newaliases&#8221; command.</p>
<p>Anyway, hopefully that wasn&#8217;t too painful, any improvements, suggestions and other observations welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thefraggle.com/2007/06/14/virtual-domains-in-exim4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

