<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Outbound SMTPAuth</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Outbound SMTPAuth</h1>
</div>
<div id="content">



<div class="wikitext"><h2>Outbound SMTP Auth</h2>
<p class="tightenable">Many ISPs require authentication before routing mail through their mail servers. This was a minor annoyance years ago when running ones own mail server, since you could simply bypass theirs. On today's internet, with dynamic IPs appearing in blacklists, and ISPs themselves blocking port 25 unless it's to/from their servers, this capability is now a requirement.</p>
<p class="tightenable">This document will tell you how to set up outbound SMTP Auth using development versions of the relevant packages for SME 6.0 from Mitel. As always, there is more than one way to do it, but this way does not require you to rebuild qmail, or use another MTA with the capability built in.</p>
<h3>Step One: Obtain the updated packages</h3>
<p class="tightenable top">(due to this page being pretty much empty, consider this a rough draft copied from <a href="http://web.archive.org/web/20040214112450/http://www.powerframe.com/e-smith/qmail-remote-auth-smtp/" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://web.archive.org/web/20040214112450/http://www.powerframe.com/e-smith/qmail-remote-auth-smtp/</span></a>)</p>
<p class="tightenable">qmail remote authenticated SMTP</p>
<p class="tightenable">This customization enables your server to send outgoing email through your Internet provider's SMTP server using authenticated SMTP (required by some Internet providers such as Rogers High Speed in Canada).</p>
<p class="tightenable">Technically it supports only the Simple Authentication Security Layer (SASL) LOGIN authentication method. It does not support STARTTLS or other authentication methods.</p>
<p class="tightenable">It works with the Mitel 6000 Managed Application Server version 5.6.
Step-by-step instructions</p>
<dl><dt class="tightenable bottom">1. Download the following three files into the /root directory on your server</dt>
<dd class="tightenable top"><ul><li class="tightenable top bottom"><a href="http://web.archive.org/web/20040214112450/http://www.powerframe.com/e-smith/qmail-remote-auth-smtp/qmail-1.03-08jdm.i386.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />qmail-1.03-08jdm.i386.rpm</span></a></li>
<li class="tightenable top bottom"><a href="http://web.archive.org/web/20040214112450/http://www.powerframe.com/e-smith/qmail-remote-auth-smtp/qmail-1.03-08jdm.src.rpm" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />qmail-1.03-08jdm.src.rpm</span></a></li>
<li class="tightenable top bottom"><a href="http://web.archive.org/web/20040214112450/http://www.powerframe.com/e-smith/qmail-remote-auth-smtp/20SMTPSmartHost" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />20SMTPSmartHost</span></a></li>
</ul>
</dd>
</dl>
<blockquote class="tightenable"><p class="tightenable top bottom">2. Update qmail by running the following command from the /root directory:</p>
</blockquote>
<p class="tightenable"><code>
rpm -Uvh qmail-1.03-08jdm.i386.rpm<br />
/etc/rc.d/init.d/qmail restart
</code></p>
<blockquote class="tightenable"><p class="tightenable top bottom">3. Install the updated <u title="Empty link to: SmartHost" onmouseover="window.status=&quot;Empty link to: SmartHost&quot;; return true;" onmouseout="window.status='';return true;" class="wikiunknown">SmartHost</u> template by running the following command from the /root directory:</p>
</blockquote>
<p class="tightenable"><code>
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/smtproutes<br />
cp 20SMTPSmartHost /etc/e-smith/templates-custom/var/qmail/control/smtproutes
</code></p>
<blockquote class="tightenable"><p class="tightenable top">4. Use the &quot;Other e-mail settings&quot; function from the server manager to specify the Internet provider's SMTP server.</p>
<p class="tightenable bottom">5. Enter the username and password required by your Internet provider for authenticated SMTP, by running the following commands (substitute your account name and password where it says myaccount and mypass):</p>
</blockquote>
<p class="tightenable"><code>
/sbin/e-smith/db configuration set SMTPSmartHostAccount myaccount<br />
/sbin/e-smith/db configuration set SMTPSmartHostPassword mypass<br />
/sbin/e-smith/expand-template /var/qmail/control/smtproutes
</code></p>
<blockquote class="tightenable"><p class="tightenable top">6. Verify that everything worked by reviewing the file /var/qmail/control/smtproutes. You should see a base64 encoded username and password at the end of the line where your Internet provider's SMTP server is specified.</p>
<p class="tightenable bottom">7. Try sending some email messages to people at various sites other than yours. Use the command:</p>
</blockquote>
<p class="tightenable"><code>
tail -f /var/log/qmail/current
</code></p>
<blockquote class="tightenable"><blockquote class="tightenable"><p class="tightenable top bottom">to see whether the outgoing mail is being accepted by your Internet provider's mail server.</p>
</blockquote>
<p class="tightenable top bottom">8. If you ever want to disable authenticated SMTP, run the following commands:</p>
</blockquote>
<p class="tightenable"><code>
/sbin/e-smith/db configuration delete SMTPSmartHostAccount<br />
/sbin/e-smith/db configuration delete SMTPSmartHostPassword<br />
/sbin/e-smith/expand-template /var/qmail/control/smtproutes
</code></p>
<blockquote class="tightenable bottom"><p class="tightenable top bottom">You can re-enable the feature at any time by returning to step 5.</p>
</blockquote>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;dwater&quot;  Last edited on March 11, 2005 12:36 am by &quot;dwater&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
