[asterisk-users] voicemail not sending emails
Roberto Milani
roberto.milani at sbcglobal.net
Sun May 18 22:26:51 CDT 2008
Problem solved!
msmtp from the command line was using the config file ~/.msmtprc (the
one I configured) when called from asterisk msmtp uses /opt/local/etc/
msmtprc
so I copied the config in there and voila the emails worked as a champ.
Ciao
Roberto
On May 14, 2008, at 9:14 PM, 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
>
> Ciao
> Roberto
>
> On May 14, 2008, at 8:34 PM, Roberto Milani wrote:
>
>> 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:
>>
>>> On Wednesday 14 May 2008 19:45:13 Roberto Milani wrote:
>>>> 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
>>
>>
>> _______________________________________________
>> -- 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
More information about the asterisk-users
mailing list