<?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>Dotdeb &#187; smtpauth</title>
	<atom:link href="http://www.dotdeb.org/tag/smtpauth/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotdeb.org</link>
	<description>The repository for Debian-based LAMP servers</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:52:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to enable the SMTP authentification on your Qmail server</title>
		<link>http://www.dotdeb.org/2008/08/24/howto-enable-the-smtp-authentification-on-your-qmail-server/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=howto-enable-the-smtp-authentification-on-your-qmail-server</link>
		<comments>http://www.dotdeb.org/2008/08/24/howto-enable-the-smtp-authentification-on-your-qmail-server/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 12:44:02 +0000</pubDate>
		<dc:creator>Guillaume Plessis</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[smtpauth]]></category>

		<guid isPermaLink="false">http://www.dotdeb.org/?p=41</guid>
		<description><![CDATA[The Qmail package from Dotdeb has been built with SMTP- [...]]]></description>
			<content:encoded><![CDATA[<p>The Qmail package from Dotdeb has been built with SMTP-auth features (but disabled by default). Here is the way to use them&#8230;</p>
<p><strong>Installation</strong></p>
<p>First of all, we suppose that :</p>
<ul>
<li>you installed the last Qmail and Vpopmail packages from Dotdeb</li>
<li>you&#8217;re launching them using the bundled init scripts (with tcpserver)</li>
</ul>
<p><strong>Configuration</strong></p>
<p>To enable SMTP-auth, you just have to edit the <em>/etc/init.d/qmail</em> init script and replace these lines :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;start-stop-daemon --start --quiet --user qmaild
  --pidfile /var/run/tcpserver_smtpd.pid --make-pidfile
  --exec /usr/bin/tcpserver -- -R
  -u <span style="color: #780078;">`id -u qmaild`</span> -g <span style="color: #780078;">`id -g nobody`</span> -x /etc/tcp.smtp.cdb 0 smtp
  <span style="color: #007800;">$rblsmtpd</span> /usr/sbin/qmail-smtpd 2&amp;gt;&amp;amp;1
  | <span style="color: #007800;">$logger</span> &amp;amp;&quot;</span></pre></div></div>

<p>by these ones :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;start-stop-daemon --start --quiet --user qmaild
    --pidfile /var/run/tcpserver_smtpd.pid --make-pidfile
    --exec /usr/bin/tcpserver -- -R
    -u <span style="color: #780078;">`id -u qmaild`</span> -g <span style="color: #780078;">`id -g nobody`</span> -x /etc/tcp.smtp.cdb 0 smtp
    <span style="color: #007800;">$rblsmtpd</span> /usr/sbin/qmail-smtpd /usr/sbin/vchkpw /bin/true 2&amp;gt;&amp;amp;1
    | <span style="color: #007800;">$logger</span> &amp;amp;&quot;</span></pre></div></div>

<p>Then, we have to setuid <em>/usr/sbin/vchkpw</em> :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> u+s <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>vchkpw</pre></div></div>

<p>and restart Qmail :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>qmail stop
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>qmail start</pre></div></div>

<p><strong>The result</strong></p>
<p>You will now be able to use the SMTP PLAINTEXT authentification. You just have to configure your favorite mail transport agent&#8230;</p>
 <p>Feel free to Flattr this post at <a href="http://flattr.com/" title="Flattr" target="_blank">flattr.com</a>, if you like it.</p> <p><a href="http://flattr.com/" title="Flattr" target="_blank"><img src="http://www.dotdeb.org/wp-content/plugins/flattrss/button-compact-static-100x17.png" alt="flattr this!"/></a></p><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2008/08/24/howto-enable-the-smtp-authentification-on-your-qmail-server/&via=dotdeb&text=How to enable the SMTP authentification on your Qmail server&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.dotdeb.org/2008/08/24/howto-enable-the-smtp-authentification-on-your-qmail-server/&via=dotdeb&text=How to enable the SMTP authentification on your Qmail server&related=w_a_s_t_e:Dotdeb's maintainer&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotdeb.org/2008/08/24/howto-enable-the-smtp-authentification-on-your-qmail-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
