<div>Greetings all,</div>
<div> </div>
<div>I figured I'd just post this to the listserv, so it's archived for others to search on.</div>
<div> </div>
<div> </div>
<div>If you ever want to change sendmail to use an external SMTP so that RT can just be configured to use sendmail, and the rest will flow easily after...</div>
<div> </div>
<div>*****</div>
<div>Change directory to where your sendmail configuration files (<a href="http://sendmail.mc">sendmail.mc</a> and <a href="http://sendmail.cf">sendmail.cf</a>) are located, usually /etc/mail/. <br><br>Create a safe subdirectory (suggested name auth/): <br>
# mkdir auth<br># chmod 700 auth<br><br>Create a <a id="KonaLink3" class="kLink" href="http://www.linuxforums.org/forum/debian-linux-help/32459-how-set-up-sendmail-use-external-smtp.html#" target="undefined"><font style="POSITION: static; FONT-FAMILY: Verdana,Helvetica, Arial, sans-serif; COLOR: blue !important; FONT-SIZE: 12px; FONT-WEIGHT: 400" color="blue"><span style="BORDER-BOTTOM: blue 1px solid; POSITION: relative; BACKGROUND-COLOR: transparent; FONT-FAMILY: Verdana,Helvetica, Arial, sans-serif; COLOR: blue !important; FONT-SIZE: 12px; FONT-WEIGHT: 400" class="kLink">file</span></font></a> with your authentication information (suggested name auth/client-info): <br>
<br>#cd auth<br>#touch client-info<br><br>INSIDE THAT FILE PLACE THE FOLLOWING:<br><br>AuthInfo:<a href="http://your.isp.net">your.isp.net</a> "U:root" "I:user" "P<img class="inlineimg" title="Razz" border="0" alt="" src="http://www.linuxforums.org/forum/images/smilies/icon_razz.gif">assword"<br>
<br>filling in your ISP's mail server, your user name, and your password. (Note: Earthlink, and perhaps other ISP's, requires your full e-mail address as a user name.) <br><br>Generate the authentication <a id="KonaLink2" class="kLink" href="http://www.linuxforums.org/forum/debian-linux-help/32459-how-set-up-sendmail-use-external-smtp.html#" target="undefined"><font style="POSITION: static; FONT-FAMILY: Verdana,Helvetica, Arial, sans-serif; COLOR: blue !important; FONT-SIZE: 12px; FONT-WEIGHT: 400" color="blue"><span style="POSITION: relative; FONT-FAMILY: Verdana,Helvetica, Arial, sans-serif; COLOR: blue !important; FONT-SIZE: 12px; FONT-WEIGHT: 400" class="kLink">database</span></font></a> and make both files readable only by root:<br>
<br># makemap hash client-info < client-info<br># chmod 600 client-info*<br># cd ..<br><br>Add the following lines to your <a href="http://sendmail.mc">sendmail.mc</a> file, filling in your ISP's mail server: <br><br>
define(`SMART_HOST',`<a href="http://your.isp.net">your.isp.net</a>')dnl<br>define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl<br>FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl<br>
<br>Generate <a href="http://sendmail.cf">sendmail.cf</a>: <br># m4 <a href="http://sendmail.mc">sendmail.mc</a> > <a href="http://sendmail.cf">sendmail.cf</a><br><br>Restart the sendmail daemon, e.g., (this depends on your OS, this works for redhat and CentOS): <br>
# service sendmail restart</div>
<div> </div>
<div> </div>
<div>****</div>
<div> </div>
<div>This was from <a href="http://www.linuxforums.org/forum/debian-linux-help/32459-how-set-up-sendmail-use-external-smtp.html">http://www.linuxforums.org/forum/debian-linux-help/32459-how-set-up-sendmail-use-external-smtp.html</a> but I thought I'd copy/paste should the resource not exist in the future.<br clear="all">
<br>-- <br>Mike Johnson<br>Datatel Programmer/Analyst<br>Northern Ontario School of Medicine<br>955 Oliver Road<br>Thunder Bay, ON P7B 5E1<br>Phone: (807) 766-7331<br>Email: <a href="mailto:mike.johnson@nosm.ca">mike.johnson@nosm.ca</a><br>
</div>