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
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
Are you certain Asterisk is not sending the emails, rather than them not being received? i have had problems in the past with spam filters rejecting the emails. On Tue, May 13, 2008 at 4:48 PM, Roberto Milani < roberto.milani at sbcglobal.net> wrote:> 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080513/e776b2ba/attachment.htm
Date: Tue, 13 May 2008 22:28:33 -0400 From: OCG Technical Support <support at ocg.ca> Subject: Re: [asterisk-users] voicemail not sending emails To: 'Asterisk Users List' <asterisk-users at lists.digium.com> Message-ID: <004801c8b56a$34fd3770$9ef7a650$@ca> Content-Type: text/plain; charset="us-ascii" 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080514/53426009/attachment.htm
>>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 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
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> 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 >
did that and still no email is asterisk logging something somewhere about errors in saving files or so? nothing shows up in the /tmp directory anyway I have verbose and debug set to 100 in the CLI but I see no error messages HELP! Roberto On May 15, 2008, at 1:29 AM, Tzafrir Cohen wrote:> On Wed, May 14, 2008 at 09:14:44PM -0700, Roberto Milani wrote: >> does the /tmp directory need to have some specific kind of mode/ >> ownership? >> mine is linked to /private/tmp and is lrwxr-xr-x root admin > > Yes, It is normally 1777 (all readable/writable/executable, but with > the > sticy bit, which means htat only the user who has created a > file/directory in the directory may delete it. > > -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir.cohen at xorcom.com > +972-50-7952406 mailto:tzafrir.cohen at xorcom.com > http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir > > _______________________________________________ > -- 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