[Asterisk-Users] Voice mail messages aren't sent to e-mail
Moises Silva
moises.silva at gmail.com
Fri Jan 6 18:25:11 MST 2006
In 1.2.1 The mail is sent, according to app_voicemail.c, with:
/* Default mail command to mail voicemail. Change it with the
mailcmd= command in voicemail.conf */
#define SENDMAIL "/usr/sbin/sendmail -t"
as it says, you can change the behaviour through "mailcmd" parameter
in voicemail.conf
basically asterisk creates all the headers and stuff writing to file
/tmp/astmail-XXXXXX where XXXXXX is a random string. If you want to
see really what asterisk is trying to send, just go to app_voicemail.c
and change in line 1008:
snprintf(tmp2, sizeof(tmp2), "( %s < %s ; rm -f %s ) &", mailcmd, tmp, tmp);
for this:
snprintf(tmp2, sizeof(tmp2), "( %s < %s ; ) &", mailcmd, tmp);
so the temporary file wont be deleted, go to /tmp/ and see whats
trying to send. You can even issue:
/usr/sbin/sendmail -t < /tmp/astmail-blah
Best Regards
On 1/6/06, Pisac <pisacc at gmail.com> wrote:
> Voice-mail messages aren't sent to e-mail address.
>
> I have two Asterisk servers, first one is upgraded from 1.0.RC2 to
> 1.0.9, and second one is from 1.0.7 to 1.0.9. Both Asterisk have EXACTLY
> same "voicemail.conf" configuration, but second Asterisk don't sending
> voice mail messages through e-mail!
>
> I'm using almost default "voicemail.conf" with just one mailbox addedd:
> 1234 => 1234,MyName,MyMail at MyDomain.com
>
> Why second Asterisk don't sending e-mails? I tested nail program, and I
> can send any mail without problems.
>
> How Asterisk sending mail, through some other program (nail, mail) or by
> itself?
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
More information about the asterisk-users
mailing list