<?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>Christoffer Kjølbæk &#187; postfix</title>
	<atom:link href="http://ostehamster.dk/blog/index.php/tag/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostehamster.dk/blog</link>
	<description>I have a blog, therefore I am…</description>
	<lastBuildDate>Tue, 03 Jan 2012 22:37:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>postfix: forward root mails to non-local email</title>
		<link>http://ostehamster.dk/blog/index.php/2007/02/04/postfix-forward-root-mails-to-non-local-email/</link>
		<comments>http://ostehamster.dk/blog/index.php/2007/02/04/postfix-forward-root-mails-to-non-local-email/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 14:20:38 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/wordpress/?p=16</guid>
		<description><![CDATA[In order to make postfix forward all mails from "root", to a non-local email, the Postfix virtual alias table format must be used. Start by making a file called /etc/postfix/virtual, with this content root receiver_email@non_local_host Then run the below, to make a virtual lookup table. sudo postmap /etc/postfix/virtual To enable the virtual alias, insert the [...]]]></description>
			<content:encoded><![CDATA[<p>In order to make postfix forward all mails from "root", to a non-local email, the <a href="http://www.postfix.org/virtual.5.html">Postfix virtual alias table format</a> must be used.</p>
<p>Start by making a file called  /etc/postfix/virtual, with this content</p>
<pre><code>root    receiver_email@non_local_host</code></pre>
<p>Then run the below, to make a virtual lookup table.</p>
<pre><code>sudo postmap /etc/postfix/virtual</code></pre>
<p>To enable the virtual alias, insert the below into /etc/postfix/main.cf</p>
<pre><code>virtual_alias_maps = hash:/etc/postfix/virtual</code></pre>
<p>Now restart postfix, and send a mail to root</p>
<pre><code>sudo /etc/init.d/postfix restart
echo "hmm" | sendmail root</code></pre>
<p>This worked for me at Ubuntu Dapper and Ubuntu Edgy.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2007/02/04/postfix-forward-root-mails-to-non-local-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

