<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>I used msmtp for delivering mail and this is the procedure I documented once, based on info I found on the internet. I hope it is of help.</div><div><br></div><div><br></div><div>Erik</div><div><br></div>Step 1 &nbsp;Installing needed packages/libs on your system<br><br>install this packages (I'm not sure if all the packages are needed but with this packages it works)<br><br>&nbsp;apt-get install libwww-perl<br>&nbsp;apt-get install openssl<br>&nbsp;apt-get install libcrypt-ssleay<br>&nbsp;apt-get install libnet-ssleay-perl<br>&nbsp;apt-get install libcrypt-ssleay-perl<br><br><br>Step 2 &nbsp;download msmtp<br><br>download msmtp van sourceforge (<a href="http://sourceforge.net/projects/msmtp/">http://sourceforge.net/projects/msmtp/</a>) to /usr/src/<br><br>Step 3<br><br>bunzip2 msmtp.tar.bz2<br><br>tar -xvf msmtp.tar<br>cd &nbsp;/usr/src/msmtp[tab]<br><br>Step 4<br><br>built msmtp<br><br>./configure<br>make<br>make install<br><br><br>Step 5<br><br>check if msmtp is on the system and if the output looks like below.<br><br># msmtp --version<br><br>msmtp version 1.4.9<br>TLS/SSL library: GnuTLS<br>Authentication library: GNU SASL<br>Supported authentication methods:<br>plain cram-md5 digest-md5 gssapi external login<br>IDN support: enabled<br>NLS: enabled, LOCALEDIR is /usr/share/locale<br>System configuration file name: /etc/msmtprc<br>User configuration file name: /root/.msmtprc<br><br>Copyright (C) 2006 Martin Lambers and others.<br>This is free software. &nbsp;You may redistribute copies of it under the terms of<br>the GNU General Public License &lt;<a href="http://www.gnu.org/licenses/gpl.html">http://www.gnu.org/licenses/gpl.html</a>>.<br>There is NO WARRANTY, to the extent permitted by law.<br><br>Step 6<br>Make a symlink from /usr/local/bin/msmtp to /usr/sbin/sendmail &nbsp;(the name of the symlink is sendmail)<br><br># &nbsp;ln -s /usr/local/bin/msmtp /usr/sbin/sendmail<br><br>Step 7<br>Add
/root/.msmtprc (be aware of the dot) to the system with only owner read
and write permissions and with this lines (adjust to your&nbsp;<a href="mailto:xxxx@gmail.com">xxxx@gmail.com</a>&nbsp;account). &nbsp;This way it works for a gmail account<br><br><br>defaults<br>logfile /var/log/msmtp.log<br><br>account default<br>from &lt;xxxxxx>@gmail.com<br>protocol smtp<br>host smtp.gmail.com<br>port 587<br>user &lt;xxxxxxx>@gmail.com<br>password &lt;password><br>auth on<br>tls on<br>tls_certcheck on<br>tls_trust_file /root/cert.pem<br><br><br><br>Step 8 &nbsp;certificate file<br><br>copy the certificate file to the root directory<br>/root/cert.pem copied on system &nbsp;(see attachement)<br><br><br>Step 9 configuration of /etc/asterisk/voicemail.conf<br><br>Add this to /etc/asterisk/voicemail.conf as a replacement of the "mailcmd =" line<br>mailcmd=/usr/sbin/sendmail -v -t -f &lt;your_gemail_name>@gmail.com<br><br>and uncomment &nbsp;"attach = yes<br><br>Add a vociemailbox to the system in [default] of voicemail.conf<br><br>[default]<br>; Define maximum number of messages per folder for a particular context.<br>;maxmsg=50<br><br>500 => 1234,&lt;name>,&lt;e-mail adress><br><br>step 10 adding a test extension to the system<br><br>Add an extension to /etc/asterisk/extension.conf to test de setup<br><br>something like<br><br>exten => 888,1,Answer()<br>exten => 888,n,Voicemail(500)<br><br>If
you call 888 with in internal phone you enter the voicemail routine and
a recording will be made. After finishing you will receive an e-mail
with the recording as an attachement.<br><br><br>And you are done<br><div><div><br></div><div>On 20 dec 2009, at 11:51, James Stocks wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 19 Dec 2009, at 16:20, Thomas Perron wrote:<br><br><blockquote type="cite">Anyone have a cookbook on configuring sendmail to work with Asterisk?<br></blockquote><blockquote type="cite">Or,a few config examples.<br></blockquote><br>Postfix is a drop-in replacement for sendmail. &nbsp;I find it to be far, far simpler to administer.<br><br>Take a look at <a href="http://www.postfix.org/documentation.html">http://www.postfix.org/documentation.html</a><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote></div><br></body></html>