Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] voicemail not sending emails

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
roberto.milani at sbcg...
Guest





PostPosted: Tue May 13, 2008 6:48 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

Hello list users

I have a very nice installation of asterisk on a mac mini.
Everything seems to work fine, call works, vm works, even message
transfer works but asterisk doesn't send any email.
this is my voicemail.conf:

[general]

mailcmd=/opt/local/bin/msmtp -t; --from=myemail at server.ext
;mailcmd=cat \> /tmp/asteriskvm-mail
format=wav
attach=yes
serveremail=from=myemail at server.ext
emailsubject=New message from ${VM_CALLERID}
emailbody=Hi, ${VM_NAME}!\n\nYou have a new message from $
{VM_CALLERID} in mailbox ${VM_MAILBOX}.
fromstring=My Telephone System

;max and min length of a message
maxmessage = 180

maxlogins = 3
[default]
100 => 4711,Front Desk,roberto.milani at sbcglobal.net

as you can see I'm using msmtp for mail and I tested it outside
asterisk an it works.
from the commented line you can se that I tried to cat the output to a
file but that never happens.
It really seems that asterisk don't send the emails.

any suggestions?

Thanks
Roberto
Back to top
support at ocg.ca
Guest





PostPosted: Tue May 13, 2008 9:28 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

Permissions? Try running msmtp from the asterisk account? (Assuming that
is how you have it setup)
I don't know msmtp - but is there a maillog equivalent?

MD

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Roberto Milani
Sent: May 13, 2008 7:49 PM
To: Asterisk Users List
Subject: [asterisk-users] voicemail not sending emails

Hello list users

I have a very nice installation of asterisk on a mac mini.
Everything seems to work fine, call works, vm works, even message
transfer works but asterisk doesn't send any email.
this is my voicemail.conf:

[general]

mailcmd=/opt/local/bin/msmtp -t; --from=myemail at server.ext
;mailcmd=cat \> /tmp/asteriskvm-mail
format=wav
attach=yes
serveremail=from=myemail at server.ext
emailsubject=New message from ${VM_CALLERID}
emailbody=Hi, ${VM_NAME}!\n\nYou have a new message from $
{VM_CALLERID} in mailbox ${VM_MAILBOX}.
fromstring=My Telephone System

;max and min length of a message
maxmessage = 180

maxlogins = 3
[default]
100 => 4711,Front Desk,roberto.milani at sbcglobal.net

as you can see I'm using msmtp for mail and I tested it outside
asterisk an it works.
from the commented line you can se that I tried to cat the output to a
file but that never happens.
It really seems that asterisk don't send the emails.

any suggestions?

Thanks
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
stotaro at totarotechn...
Guest





PostPosted: Tue May 13, 2008 10:04 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

Helpful? http://lists.digium.com/pipermail/asterisk-users/2005-April/097548.html

Thanks,
Steve Totaro

On Tue, May 13, 2008 at 10:28 PM, OCG Technical Support <support at ocg.ca> wrote:
Quote:
Permissions? Try running msmtp from the asterisk account? (Assuming that
is how you have it setup)
I don't know msmtp - but is there a maillog equivalent?

MD



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Roberto Milani
Sent: May 13, 2008 7:49 PM
To: Asterisk Users List
Subject: [asterisk-users] voicemail not sending emails

Hello list users

I have a very nice installation of asterisk on a mac mini.
Everything seems to work fine, call works, vm works, even message
transfer works but asterisk doesn't send any email.
this is my voicemail.conf:

[general]

mailcmd=/opt/local/bin/msmtp -t; --from=myemail at server.ext
;mailcmd=cat \> /tmp/asteriskvm-mail
format=wav
attach=yes
serveremail=from=myemail at server.ext
emailsubject=New message from ${VM_CALLERID}
emailbody=Hi, ${VM_NAME}!\n\nYou have a new message from $
{VM_CALLERID} in mailbox ${VM_MAILBOX}.
fromstring=My Telephone System

;max and min length of a message
maxmessage = 180

maxlogins = 3


[default]
100 => 4711,Front Desk,roberto.milani at sbcglobal.net

as you can see I'm using msmtp for mail and I tested it outside
asterisk an it works.
from the commented line you can se that I tried to cat the output to a
file but that never happens.
It really seems that asterisk don't send the emails.

any suggestions?

Thanks
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
brett at websmyths.com
Guest





PostPosted: Wed May 14, 2008 10:24 am    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

On Wed, 14 May 2008, Roberto Milani wrote:

Quote:
From: OCG Technical Support <support at ocg.ca>

Quote:
Permissions? Try running msmtp from the asterisk account? (Assuming
that is how you have it setup)
I don't know msmtp - but is there a maillog equivalent?

MD

thanks for the replies but the problem persist

to recap:

msmtp works just fine from the asterisk user, typing:
echo "hello." | msmtp --debug --account=myaccount --from=myadress at server.ext
roberto.milani at sbcglobal.net

I have a log and I receive the mail.

I renamed sendmail and linked msmtp and tried the above command with sendmail
and the link works too.

I removed the mailcmd from voicemail.conf
but no email on messages not even without attachment

It just does not get called from asterisk.

is there a way to debug it?

thanks
Roberto

Roberto - I noticed in your original email you had the lines something like

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Back to top
roberto.milani at sbcg...
Guest





PostPosted: Wed May 14, 2008 11:36 am    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

Quote:

Roberto - I noticed in your original email you had the lines
something like
Quote:

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Hi Brett
msmtp is a stand-in for sendmail (using another SMTP server) so it has
a -t option
the real problem is that it never get called.
even if I use the test mode:
mailcmd=cat \> /tmp/astvm-mail
to send the output to a file.
Ciao
Roberto
Back to top
david at linuxcrazy.com
Guest





PostPosted: Wed May 14, 2008 3:00 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

Roberto Milani wrote:
Quote:
Quote:

Roberto - I noticed in your original email you had the lines
something like
Quote:

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Hi Brett
msmtp is a stand-in for sendmail (using another SMTP server) so it has
a -t option
the real problem is that it never get called.
even if I use the test mode:
mailcmd=cat \> /tmp/astvm-mail
to send the output to a file.
Ciao
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Are you relaying the mail through your isp?
Are you using a system wide /etc/msmtprc
or for user asterisk
~.msmtprc

--
Powered by Gentoo GNU/Linux
http://linuxcrazy.com
Back to top
david at linuxcrazy.com
Guest





PostPosted: Wed May 14, 2008 3:18 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

david wrote:
Quote:
Roberto Milani wrote:

Quote:
Quote:

Roberto - I noticed in your original email you had the lines
something like
Quote:

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Hi Brett
msmtp is a stand-in for sendmail (using another SMTP server) so it has
a -t option
the real problem is that it never get called.
even if I use the test mode:
mailcmd=cat \> /tmp/astvm-mail
to send the output to a file.
Ciao
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



Are you relaying the mail through your isp?
Are you using a system wide /etc/msmtprc
or for user asterisk
~.msmtprc


Some more info may help;
ibm bin # cd /usr/sbin
ibm sbin # ls -l sendmail
lrwxrwxrwx 1 root root 14 Apr 21 08:26 sendmail -> /usr/bin/msmtp

I have nothing in /etc/voicemail.conf like;

mailcmd=/opt/local/bin/msmtp -t ; --from blah
I just use /etc/msmtprc, this is for bellsouth;

account default
host mail.bellsouth.net
auto_from on
maildomain bellsouth.net
syslog LOG_MAIL




--
Powered by Gentoo GNU/Linux
http://linuxcrazy.com
Back to top
roberto.milani at sbcg...
Guest





PostPosted: Wed May 14, 2008 3:27 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

On May 14, 2008, at 1:00 PM, david wrote:

Quote:
Roberto Milani wrote:
Quote:
Quote:

Roberto - I noticed in your original email you had the lines
something like
Quote:

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Hi Brett
msmtp is a stand-in for sendmail (using another SMTP server) so it
has
a -t option
the real problem is that it never get called.
even if I use the test mode:
mailcmd=cat \> /tmp/astvm-mail
to send the output to a file.
Ciao
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Are you relaying the mail through your isp?
Are you using a system wide /etc/msmtprc
or for user asterisk
~.msmtprc

--
Powered by Gentoo GNU/Linux
http://linuxcrazy.com

Yes I'm using my isp
I'm using ~.msmptrc
and it works, but not from asterisk
It seems that it doesn't get called at all.

Ciao
Roberto
Back to top
roberto.milani at sbcg...
Guest





PostPosted: Wed May 14, 2008 3:46 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

On May 14, 2008, at 1:18 PM, david wrote:

Quote:
david wrote:
Quote:
Roberto Milani wrote:

Quote:
Quote:

Roberto - I noticed in your original email you had the lines
something like
Quote:

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and
watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Hi Brett
msmtp is a stand-in for sendmail (using another SMTP server) so it
has
a -t option
the real problem is that it never get called.
even if I use the test mode:
mailcmd=cat \> /tmp/astvm-mail
to send the output to a file.
Ciao
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



Are you relaying the mail through your isp?
Are you using a system wide /etc/msmtprc
or for user asterisk
~.msmtprc


Some more info may help;
ibm bin # cd /usr/sbin
ibm sbin # ls -l sendmail
lrwxrwxrwx 1 root root 14 Apr 21 08:26 sendmail -> /usr/bin/msmtp

I have nothing in /etc/voicemail.conf like;

mailcmd=/opt/local/bin/msmtp -t ; --from blah
I just use /etc/msmtprc, this is for bellsouth;

account default
host mail.bellsouth.net
auto_from on
maildomain bellsouth.net
syslog LOG_MAIL
I have:
cd /usr/sbin/
ls -l sendmail
rwxr-xr-x 1 root wheel 20 May 14 07:28 sendmail -> /opt/local/bin/
msmtp

~/.msmtprc

defaults
logfile ~/msmtpLog
tls on
tls_certcheck off

tls_starttls off

account sbcglobal
host smtp.sbcglobal.yahoo.com
from myFrom
auth login
user myUserName
password myPassword
port 465

account default : sbcglobal

and this configuration works I tested it with the command line:

echo "hello." | msmtp --debug --account=sbcglobal --from=myFrom
myaddress
Back to top
roberto.milani at sbcg...
Guest





PostPosted: Wed May 14, 2008 5:19 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

I do have a mail transport agent configured

It is msmtp and it is working just fine I tested it on the command
line and I receive the test email

I have a link from sendmail pointing to msmtp.
but it never get called.

Ciao
Roberto


On May 15, 2008, at 12:54 AM, gres wrote:

Quote:
i think you have to have a mail transport agent like sendmail or
postfix
installed and configured on your asterisk box , however if you
forward the
mails to say hotmail or yahoo or gamil those servers will reject the
mail
transfere

----- Original Message -----
From: "david" <david at linuxcrazy.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Wednesday, May 14, 2008 1:00 PM
Subject: Re: [asterisk-users] voicemail not sending emails


Quote:
Roberto Milani wrote:
Quote:
Quote:

Roberto - I noticed in your original email you had the lines
something like
Quote:

mailcmd=/opt/local/bin/msmtp -t ; --from blah
AND
serveremail=from=blah

In mailcmd everything after the ; will be ignored as a comment
In serveremail - well - it should throw an error...

I would probably test by adding the --debug to the mailcmd and
watch
the logs. I also don't know mstmp but does it have a '-t' option?

Brett
Hi Brett
msmtp is a stand-in for sendmail (using another SMTP server) so it
has
a -t option
the real problem is that it never get called.
even if I use the test mode:
mailcmd=cat \> /tmp/astvm-mail
to send the output to a file.
Ciao
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Are you relaying the mail through your isp?
Are you using a system wide /etc/msmtprc
or for user asterisk
~.msmtprc

--
Powered by Gentoo GNU/Linux
http://linuxcrazy.com


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
gres.rasmy at gmail.com
Guest





PostPosted: Wed May 14, 2008 6:23 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

i think you have to have a mail transport agent like sendmail or postfix
installed and configured on your asterisk box , however if you forward the
mails to say hotmail or yahoo or gamil those servers will reject the mail
transfere
----- Original Message -----
From: "Roberto Milani" <roberto.milani at sbcglobal.net>
To: <asterisk-users at lists.digium.com>
Sent: Tuesday, May 13, 2008 4:48 PM
Subject: [asterisk-users] voicemail not sending emails
Quote:
Hello list users

I have a very nice installation of asterisk on a mac mini.
Everything seems to work fine, call works, vm works, even message
transfer works but asterisk doesn't send any email.
this is my voicemail.conf:

[general]

mailcmd=/opt/local/bin/msmtp -t; --from=myemail at server.ext
;mailcmd=cat \> /tmp/asteriskvm-mail
format=wav
attach=yes
serveremail=from=myemail at server.ext
emailsubject=New message from ${VM_CALLERID}
emailbody=Hi, ${VM_NAME}!\n\nYou have a new message from $
{VM_CALLERID} in mailbox ${VM_MAILBOX}.
fromstring=My Telephone System

;max and min length of a message
maxmessage = 180

maxlogins = 3


[default]
100 => 4711,Front Desk,roberto.milani at sbcglobal.net

as you can see I'm using msmtp for mail and I tested it outside
asterisk an it works.
from the commented line you can se that I tried to cat the output to a
file but that never happens.
It really seems that asterisk don't send the emails.

any suggestions?

Thanks
Roberto

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Wed May 14, 2008 7:11 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

On Wednesday 14 May 2008 17:19:09 Roberto Milani wrote:
Quote:
I do have a mail transport agent configured

It is msmtp and it is working just fine I tested it on the command
line and I receive the test email

I have a link from sendmail pointing to msmtp.
but it never get called.

I've noted that the times that you've tested this, you've used
msmtp on the command line. Some commands behave differently
if you call them with a different name. For example, if sh is linked to
bash and you call it, bash drops some of its features to more closely
match sh. Could it be that msmtp acts the same way, and you need
to test that behavior (calling it as sendmail)?

--
Tilghman
Back to top
roberto.milani at sbcg...
Guest





PostPosted: Wed May 14, 2008 7:45 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

Good hint but I tested that too

I sent the command line to the link called sendmail and I got my mail
just right
is there any other configuration in asterisk that might prevent it to
send mails?

Ciao
Roberto

On May 14, 2008, at 5:11 PM, Tilghman Lesher wrote:

Quote:
On Wednesday 14 May 2008 17:19:09 Roberto Milani wrote:
Quote:
I do have a mail transport agent configured

It is msmtp and it is working just fine I tested it on the command
line and I receive the test email

I have a link from sendmail pointing to msmtp.
but it never get called.

I've noted that the times that you've tested this, you've used
msmtp on the command line. Some commands behave differently
if you call them with a different name. For example, if sh is
linked to
bash and you call it, bash drops some of its features to more closely
match sh. Could it be that msmtp acts the same way, and you need
to test that behavior (calling it as sendmail)?

--
Tilghman

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Wed May 14, 2008 8:37 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

On Wednesday 14 May 2008 19:45:13 Roberto Milani wrote:
Quote:
Good hint but I tested that too

I sent the command line to the link called sendmail and I got my mail
just right
is there any other configuration in asterisk that might prevent it to
send mails?

The only reason why it wouldn't send an email is if an email address is
not configured (third field in voicemail.conf, "email" column in realtime):

123 => 456,Firstname Lastname,email at address.com,pager at address.com

The exact command that is run is:

sh -c "( /usr/sbin/sendmail -t < /tmp/astmail-123456 ;
rm -f /tmp/astmail-123456 ) &"

Or whatever you've substituted for "/usr/sbin/sendmail -t".

--
Tilghman
Back to top
roberto.milani at sbcg...
Guest





PostPosted: Wed May 14, 2008 10:34 pm    Post subject: [asterisk-users] voicemail not sending emails Reply with quote

That's what I thought,
and my voicemail.conf is:

[general]

format=wav
attach=yes
serveremail= roberto.milani at sbcglobal.net
emailsubject=New message from ${VM_CALLERID}
emailbody=Hi, ${VM_NAME}!\n\nYou have a new message from $
{VM_CALLERID} in mailbox ${VM_MAILBOX}.
fromstring=My Telephone System

;max and min length of a message
maxmessage = 180

maxlogins = 3
[default]
100 => 4711,Front Desk,roberto.milani at sbcglobal.net,,attach=yes


the voicemail works, I get also the MWI working perfectly
but no email

Roberto


On May 14, 2008, at 6:37 PM, Tilghman Lesher wrote:

Quote:
On Wednesday 14 May 2008 19:45:13 Roberto Milani wrote:
Quote:
Good hint but I tested that too

I sent the command line to the link called sendmail and I got my mail
just right
is there any other configuration in asterisk that might prevent it to
send mails?

The only reason why it wouldn't send an email is if an email address
is
not configured (third field in voicemail.conf, "email" column in
realtime):

123 => 456,Firstname Lastname,email at address.com,pager at address.com

The exact command that is run is:

sh -c "( /usr/sbin/sendmail -t < /tmp/astmail-123456 ;
rm -f /tmp/astmail-123456 ) &"

Or whatever you've substituted for "/usr/sbin/sendmail -t".

--
Tilghman

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services