<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote type="cite" class=""><font class="Apple-style-span" color="#000000"><blockquote type="cite" class=""><span class="Apple-style-span" style="color: rgb(0, 0, 0); "></span></blockquote></font></blockquote><div><br>I have it up and running o my system with this line in voicemail.conf and a symlink named sendmail to the actual msmtp program.</div><div><br></div><div><div>mailcmd=/usr/sbin/sendmail -v -t -f l<my e-ail name>@gmail.com</div><div><br></div><div><br></div><div>This is the install log based on info provided by others and the install process itself. Hope it is useful</div><div><br></div><div>/Erik</div><div><br></div><div><br></div><div>>>>>>>></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: 'Lucida Grande'; line-height: 18px; ">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/" style="color: rgb(67, 105, 118); text-decoration: none; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; background-image: url(http://192.168.1.200:8080/Plone/link_icon.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; padding-top: 1px; padding-right: 0px; padding-bottom: 1px; padding-left: 16px; background-position: 0px 1px; ">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<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" style="color: rgb(67, 105, 118); text-decoration: none; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; background-image: url(http://192.168.1.200:8080/Plone/link_icon.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; padding-top: 1px; padding-right: 0px; padding-bottom: 1px; padding-left: 16px; background-position: 0px 1px; ">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" style="color: rgb(67, 105, 118); text-decoration: none; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; background-image: url(http://192.168.1.200:8080/Plone/mail_icon.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; padding-top: 1px; padding-right: 0px; padding-bottom: 1px; padding-left: 16px; background-position: 0px 1px; ">xxxx@gmail.com</a> account). This way it works for a gmail account<br><div><br></div><div>defaults</div>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></span></div></div><div><br></div><div>>>>>>>>>>></div><br><blockquote type="cite" class=""><font class="Apple-style-span" color="#000000"><blockquote type="cite" class=""><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">Message: 2<br>Date: Sat, 16 May 2009 21:47:58 +0200<br>From: jonas kellens <<a href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>><br>Subject: Re: [asterisk-users] Not receiving voicemail message in<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>mailbox<br>To: Asterisk Users Mailing List - Non-Commercial Discussion<br><span class="Apple-tab-span" style="white-space: pre; ">        </span><<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>Message-ID: <<a href="mailto:1242503278.3667.4.camel@localhost.localdomain">1242503278.3667.4.camel@localhost.localdomain</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>I have put the following in my voicemail.conf-file :<br><br>mailcmd=/usr/local/bin/msmtp -d --syslog=on<br><br>-d and syslog=on are to debug some information, because I am still not<br>receiving my voicemail-messages via mail as an attachment !<br><br>I don't know which mailcommand I need to put here to make Asterisk use<br>msmtp as 'mailing server'.<br><br>It is currently not working... The logfile /root/.msmtp.log is not<br>mentioning anything. I think this is because Asterisk is really not<br>using msmtp to send the message.<br><br>Can someone help me figure this out... ?<br><br>Jonas.</span></blockquote></font></blockquote></body></html>