Re: [Asterisk-Users] Voice mail messages aren't sent to e-mail

2006-01-07 Thread James Armstrong

I added:

mailcmd=/usr/bin/sendmail -f hostname -t

to the voicemail.conf file under [general]

- James

On Jan 6, 2006, at 10:31 PM, Pisac wrote:


Yes, I found that this is problem with my server. Second server is
connected through second provider, and first server and my domain is
hosted at fist provider. My (first) provider has some stupid logic  
that

reject e-mails from mailservers which don't have public hostname but
private (my second server has server.local), but accepting all e- 
mails

from it's IP address space (first server).

So, my temporary solution was that I set up fake (but existing)  
hostname

for second server (gmail.com), and now my (first) provider accepting
e-mails. Very stupid.

How you changed mailcmd to add a -f? Did you used nail/mail instead of
sendmail, in voicemail.conf? Or maybe some .c source changing?

Thanks
Pisac




I had a similar problem, but I was able to see the message getting
rejected to rr.com because they were looking up the hostname pbx
and rejecting it. I changed the mailcmd to add a -f realhostname.com
and it started working.

- James


___
--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


___
--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


[Asterisk-Users] Voice mail messages aren't sent to e-mail

2006-01-06 Thread Pisac
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,[EMAIL PROTECTED]

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


Re: [Asterisk-Users] Voice mail messages aren't sent to e-mail

2006-01-06 Thread Moises Silva
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-XX where XX 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 [EMAIL PROTECTED] 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,[EMAIL PROTECTED]

 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;
___
--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


Re: [Asterisk-Users] Voice mail messages aren't sent to e-mail

2006-01-06 Thread James Armstrong
I had a similar problem, but I was able to see the message getting  
rejected to rr.com because they were looking up the hostname pbx  
and rejecting it. I changed the mailcmd to add a -f realhostname.com  
and it started working.


- James

On Jan 6, 2006, at 4:24 PM, Pisac 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,[EMAIL PROTECTED]

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


___
--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


Re: [Asterisk-Users] Voice mail messages aren't sent to e-mail

2006-01-06 Thread Pisac
Yes, I found that this is problem with my server. Second server is
connected through second provider, and first server and my domain is
hosted at fist provider. My (first) provider has some stupid logic that
reject e-mails from mailservers which don't have public hostname but
private (my second server has server.local), but accepting all e-mails
from it's IP address space (first server).

So, my temporary solution was that I set up fake (but existing) hostname
for second server (gmail.com), and now my (first) provider accepting
e-mails. Very stupid.

How you changed mailcmd to add a -f? Did you used nail/mail instead of
sendmail, in voicemail.conf? Or maybe some .c source changing?

Thanks
Pisac



 I had a similar problem, but I was able to see the message getting
 rejected to rr.com because they were looking up the hostname pbx
 and rejecting it. I changed the mailcmd to add a -f realhostname.com
 and it started working.

 - James

___
--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