<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 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> apt-get install libwww-perl<br> apt-get install openssl<br> apt-get install libcrypt-ssleay<br> apt-get install libnet-ssleay-perl<br> apt-get install libcrypt-ssleay-perl<br><br><br>Step 2 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 /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. You may redistribute copies of it under the terms of<br>the GNU General Public License <<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 (the name of the symlink is sendmail)<br><br># 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 <a href="mailto:xxxx@gmail.com">xxxx@gmail.com</a> account). This way it works for a gmail account<br><br><br>defaults<br>logfile /var/log/msmtp.log<br><br>account default<br>from <xxxxxx>@gmail.com<br>protocol smtp<br>host smtp.gmail.com<br>port 587<br>user <xxxxxxx>@gmail.com<br>password <password><br>auth on<br>tls on<br>tls_certcheck on<br>tls_trust_file /root/cert.pem<br><br><br><br>Step 8 certificate file<br><br>copy the certificate file to the root directory<br>/root/cert.pem copied on system (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 <your_gemail_name>@gmail.com<br><br>and uncomment "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,<name>,<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. 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> <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>