hi,<br><br> The <a title="" href="http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+voicemail2">VoiceMail</a> application uses <b>/usr/sbin/sendmail</b> to mail voicemail messages to users. This can be any sendmail-compatible MTA. In practice you can use 
<a class="external" href="http://sendmail.org/">Sendmail</a>, <a class="external" href="http://postfix.org/">Postfix</a>, <a class="external" href="http://www.exim.org/">Exim</a> or any other  <a class="create" href="http://www.voip-info.org/wiki/edit.php?page=Asterisk+voicemail+MTA">
MTA</a>. It is recommended to use the default one that comes with your distribution.<br><br>I would say if you just create your &quot;own&quot; sendmail.sh and place it /usr/sbin/sendmail, asterisk will execute it by default, do not forget to give permissions for asterisk user to execute it.
<br><br><br><div><span class="gmail_quote">On 7/27/07, <b class="gmail_sendername">GNUbie</b> &lt;<a href="mailto:gnubie@gmail.com">gnubie@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br><br>I am running Asterisk-1.4.5 on my Debian GNU/Linux Etch here and I want to send the voicemails as attachment to e-mails and delete the voicemails from my PBX once it has been sent.&nbsp; But, I don&#39;t have a running MTA here even on the PBX itself.&nbsp; I just want to send the e-mails to my GMail account from my PBX.&nbsp; Can I just use the mail or mailx command to send the e-mail and attach the voicemail message?
<br><br>Below are snippets of my voicemail.conf and extensions.conf configuration files.&nbsp; Please advice whatever you think I need to change with my current configurations.<br><br>Thank you in advance.<br><br>GNUbie<br><br>

- - - &lt; s n i p &gt; - - -<br><br># cat /etc/asterisk/voicemail.conf<br><br>[general]<br>format=wav49<br>serveremail=<a href="mailto:pbx@gnubie.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pbx@gnubie.com</a> ; bogus e-mail address<br>attach=yes<br>delete=yes
<br>maxmsg=50<br>maxmessage=180<br>minmessage=5<br>maxgreet=60<br>skipms=3000<br>maxsilence=10<br>silencethreshold=128<br>maxlogins=3<br>fromstring=The PBX<br>usedirectory=yes<br>emaildateformat=%A, %B %d, %Y at %r<br>sendvoicemail=yes
<br>emailbody=Hi, ${VM_NAME}!\n\nYou have a new voicemail message from ${VM_CALLERID} attached to this e-mail message.\n\nHave a nice day!\n\nThe PBX<br>mailcmd=/usr/bin/exim -t ; not sure about this line<br><br>[zonemessages]
<br>eastern=America/New_York|&#39;vm-received&#39; Q &#39;digits/at&#39; IMp<br><br>[default]<br>101 =&gt; 11011,GNUbie,<a href="mailto:gnubie@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gnubie@gmail.com</a><br><br><br># grep 10 /etc/asterisk/extensions.conf
<br><br>exten =&gt; 101,1,Dial(Zap/1,20,rt)<br>exten =&gt; 101,2,VoiceMail(101,u)<br>exten =&gt; 100,1,VoiceMailMain(${CALLERID(num)},s)<br>
<br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--
</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial para uso exclusivo do destinatário. Se não for o destinatário pretendido, não deverá usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado.
<br><br>This e-mail message is intended only for individual(s) to whom it is addressed and may contain information that is privileged, confidential, proprietary, or otherwise exempt from disclosure under applicable law. If you believe you have received this message in error, please advise the sender by return e-mail and delete it from your mailbox. Thank you.