<?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>Martin Ahrer - Together we&#039;ll make IT &#187; postfix</title>
	<atom:link href="http://www.martinahrer.at/tag/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinahrer.at</link>
	<description>Java Enterprise Softwareentwicklung und Consulting</description>
	<lastBuildDate>Sun, 11 Dec 2011 16:19:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta name="generator" content="deSignum 0.8.1" />
		<item>
		<title>SASL + Postfix with Debian Lenny</title>
		<link>http://www.martinahrer.at/2010/01/19/sasl-postfix-with-debian-lenny/</link>
		<comments>http://www.martinahrer.at/2010/01/19/sasl-postfix-with-debian-lenny/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:03:03 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sasl]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=396</guid>
		<description><![CDATA[In the last days I have reinstalled a mail server on a new virtual host and upgraded from debian etch to Lenny. The initial set was done by a friend of mine following this instructions. With the upgrade to Lenny however a few adjustments were required. So I describe the new setup here. apt-get install [...]]]></description>
			<content:encoded><![CDATA[<p>In the last days I have reinstalled a mail server on a new virtual host and upgraded from debian etch to Lenny. The initial set was done by a friend of mine following this <a href="http://dertompson.com/2008/02/13/mail-server-setup-for-debian-etch/">instructions</a>. With the upgrade to Lenny however a few adjustments were required. So I describe the new setup here.<br />
<span id="more-396"></span></p>
<pre class="brush:bash">
apt-get install libsasl2-2 sasl2-bin libsasl2-modules
</pre>
<p>The postfix configuration requires the following update in<code>/etc/postfix/main.cf</code>.</p>
<pre  class="brush:bash">
# add permit_sasl_authenticated for SASL support
smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination,
        check_policy_service inet:127.0.0.1:60000

# add these options
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
</pre>
<p>Create <code> /etc/postfix/sasl/smtpd.conf</code> with this content</p>
<pre class="brush:bash">
pwcheck_method: saslauthd
mech_list: plain login
</pre>
<p>Then create directory <code>/var/spool/postfix/var/run/saslauthd</code></p>
<pre  class="brush:bash">
 mkdir -p /var/spool/postfix/var/run/saslauthd
</pre>
<p>Set permissions</p>
<pre  class="brush:bash">
dpkg-statoverride --add root sasl 710 /var/spool/postfix/var/run/saslauthd
</pre>
<p>And add postfix user to group sasl</p>
<pre  class="brush:bash">
adduser postfix sasl
</pre>
<p><code>/etc/default/saslauthd</code> Requires some modifications</p>
<pre  class="brush:bash">
START=yes
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
</pre>
<p>Finally restart some services.</p>
<pre   class="brush:bash">
/etc/init.d/saslauthd restart
/etc/init.d/postfix restart
</pre>
<p><strong>Upgrading from debian etch</strong></p>
<p>If you are upgrading and getting permission errors then you can fix these by berforming the steps above where permissions for <code>/var/spool/postfix/var/run/saslauthd</code> are set and the user group sasl is updated.</p>
<pre>
SASL authentication failure: Password verification failed
SASL PLAIN authentication failed: generic failure
SASL authentication failure: cannot connect to saslauthd server: Permission denied
SASL LOGIN authentication failed: generic failure
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2010/01/19/sasl-postfix-with-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

