<?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>edafe.org &#187; postfix</title>
	<atom:link href="http://edafe.org/tag/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://edafe.org</link>
	<description>edafe.org is the personal site of Edafe Knabe.</description>
	<lastBuildDate>Wed, 30 Jun 2010 20:54:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Redirecting mail for the local root user</title>
		<link>http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/</link>
		<comments>http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 12:46:23 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=5768</guid>
		<description><![CDATA[postfix is Ubuntu&#8217;s default mail transfer agent (MTA) and can be configured to deliver mail using a relay host that requires SMTP authentication.
Get the necessary packages with the following command:
user@ubuntu:~$ sudo apt-get install postfix bsd-mailx
Begin to configure your postfix installation by choosing satellite system as the general type of configuration. Enter the local machine name [...]]]></description>
			<content:encoded><![CDATA[<p><em>postfix</em> is Ubuntu&rsquo;s default mail transfer agent (MTA) and can be configured to deliver mail using a <a href="http://en.wikipedia.org/wiki/SMTP-AUTH" target="_blank">relay host that requires SMTP authentication</a>.</p>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install postfix bsd-mailx</code></p>
<p>Begin to configure your <em>postfix</em> installation by choosing <em>satellite system</em> as the general type of configuration. Enter the local machine name as the mail name (eg mycomputer.edafe.org) and the SMTP server address of your email service provider as the SMTP relay host (eg smtp.relayhost.com).</p>
<p>Edit the file <em>/etc/postfix/main.cf</em> and add the following:</p>
<p><code>smtp_sasl_auth_enable = yes<br />smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br />smtp_sasl_security_options =<br />relay_domains =</code></p>
<p>Create the file <em>/etc/postfix/sasl_passwd</em> and make the following entries:</p>
<p><code>smtp.relayhost.com user:password</code></p>
<p>Substitute <em>smtp.relayhost.com</em> with the address of the SMTP relay host and <em>user:password</em> with your login details.</p>
<p>Continue by executing the following three commands:</p>
<p><code>user@ubuntu:~$ sudo chown root.root /etc/postfix/sasl_passwd<br />user@ubuntu:~$ sudo chmod 600 /etc/postfix/sasl_passwd<br />user@ubuntu:~$ sudo postmap hash:/etc/postfix/sasl_passwd</code></p>
<p>Instruct <em>postfix</em> to reload its settings with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/postfix reload</code></p>
<h4>Making changes to the alias table</h4>
<p>The aliases table provides a system-wide mechanism to redirect mail for local recipients.</p>
<p>Edit the file <em>/etc/aliases</em> to contain the following entries:</p>
<p><code>postmaster: root<br />root: user@yourdomain.com</code></p>
<p>Substitute <em>user@yourdomain.com</em> with the email address that you would like mail for the root user to be redirected to.</p>
<p>Finally, update <em>/etc/aliases.db</em> using the following command:</p>
<p><code>user@ubuntu:~$ sudo newaliases</code></p>
<p>Mail for the local root user from now on will automatically be forwarded to <em>user@yourdomain.com</em> , using <em>smtp.relayhost.com</em> as the relay host.<br /><a href="http://www.postfix.org/BASIC_CONFIGURATION_README.html" target="_blank">www.postfix.org</a>, <a href="https://help.ubuntu.com/community/Postfix" target="_blank">help.ubuntu.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting mail for the local root user</title>
		<link>http://edafe.org/2006/09/redirecting-mail-for-the-local-root-user/</link>
		<comments>http://edafe.org/2006/09/redirecting-mail-for-the-local-root-user/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 22:18:59 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1188</guid>
		<description><![CDATA[This post has been updated.
]]></description>
			<content:encoded><![CDATA[<p>This post <a href="./2010/01/redirecting-mail-for-the-local-root-user-2/">has been updated</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/09/redirecting-mail-for-the-local-root-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
