<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Tumbleweed Rants</title>
  <subtitle>Stefano's World</subtitle>
  <link rel="alternate" type="text/html" href="http://tumbleweed.org.za/2007/02/23/postfix-smtp-auth"/>
  <link rel="self" type="application/atom+xml" href="http://tumbleweed.org.za/node/60/atom/feed"/>
  <id>http://tumbleweed.org.za/node/60/atom/feed</id>
  <updated>2008-09-19T09:18:56+00:00</updated>
  <entry>
    <title>Postfix + SMTP-AUTH</title>
    <link rel="alternate" type="text/html" href="http://tumbleweed.org.za/2007/02/23/postfix-smtp-auth" />
    <id>http://tumbleweed.org.za/2007/02/23/postfix-smtp-auth</id>
    <published>2007-02-23T15:18:12+00:00</published>
    <updated>2008-09-19T09:18:56+00:00</updated>
    <author>
      <name>tumbleweed</name>
    </author>
    <category term="debian" />
    <category term="postfix" />
    <category term="sasl" />
    <category term="software" />
    <summary type="html"><![CDATA[<p>I finally found a <a href="http://www.jimmy.co.at/weblog/?p=52">good blog post</a> on the subject of getting Postfix to do <span class="caps"><span class="caps">SMTP</span></span>-<span class="caps"><span class="caps">AUTH</span></span> via&nbsp;<span class="caps"><span class="caps">SASL</span></span>.</p>

<p>I went one step further, and instead of moving <span class="geshifilter"><code class="geshifilter-text">/var/run/saslauthd/</code></span> to the Postfix chroot, I did a&nbsp;bind&nbsp;mount:</p>

<p><span class="geshifilter"><code class="geshifilter-text">/etc/fstab</code></span>:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;">/var/run/saslauthd /var/spool/postfix/var/run/saslauthd none bind 0 &nbsp; &nbsp; 0</div></div>

<p>Postfix was announcing methods like <span class="caps"><span class="caps">CRAM</span></span>-<span class="caps"><span class="caps">MD5</span></span> which can&#8217;t be supported by the <span class="caps"><span class="caps">PAM</span></span> backend, so I restricted them down to <span class="caps"><span class="caps">PLAIN</span></span> and <span class="caps"><span class="caps">LOGIN</span></span> (over <span class="caps"><span class="caps">TLS</span></span>&nbsp;only,&nbsp;obviously):</p>

<p><span class="geshifilter"><code class="geshifilter-text">/etc/postfix/sasl/smtpd.conf</code></span>:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;">pwcheck_method: saslauthd<br />
mech_list: plain login</div></div>

<p>Now, it&#8217;s working nicely, and I can <span class="caps"><span class="caps">IMAPS</span></span> and <span class="caps"><span class="caps">SMTP</span></span>-<span class="caps"><span class="caps">AUTH</span></span>-<span class="caps"><span class="caps">TLS</span></span> to my mail server&nbsp;from&nbsp;anywhere.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>I finally found a <a href="http://www.jimmy.co.at/weblog/?p=52">good blog post</a> on the subject of getting Postfix to do <span class="caps">SMTP</span>-<span class="caps">AUTH</span> via&nbsp;<span class="caps">SASL</span>.</p>

<p>I went one step further, and instead of moving <code>/var/run/saslauthd/</code> to the Postfix chroot, I did a bind&nbsp;mount:</p>

<p><code>/etc/fstab</code>:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;">/var/run/saslauthd /var/spool/postfix/var/run/saslauthd none bind 0 &nbsp; &nbsp; 0</div></div>

<p>Postfix was announcing methods like <span class="caps">CRAM</span>-<span class="caps">MD5</span> which can&#8217;t be supported by the <span class="caps">PAM</span> backend, so I restricted them down to <span class="caps">PLAIN</span> and <span class="caps">LOGIN</span> (over <span class="caps">TLS</span> only,&nbsp;obviously):</p>

<p><code>/etc/postfix/sasl/smtpd.conf</code>:</p>

<div class="geshifilter"><div class="text geshifilter-text" style="font-family:monospace;">pwcheck_method: saslauthd<br />
mech_list: plain login</div></div>

<p>Now, it&#8217;s working nicely, and I can <span class="caps">IMAPS</span> and <span class="caps">SMTP</span>-<span class="caps">AUTH</span>-<span class="caps">TLS</span> to my mail server from&nbsp;anywhere.</p>
    ]]></content>
  </entry>
</feed>
