Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: edeganay on February 06, 2008, 01:04:34 PM
-
Hello there,
I'd like to be able to send the messages left in voicemails to users by email.
I know this is possible, but the server is sending the email to the right (outside) email address, but with a wrong enveloppe, which makes SMTP refuse the mail.
Let me explain more :
a client is calling extension 5002, nobody here, then leaves a message on the voicemail. an email has to be sent on the external email address of the user of extension 5002 (let's say tata@gmail.com)
Asterisk (or selintra I don't know), creates a msg, and send it as anonymous@myserver.mydomain.local, and of course, gmail doesn't like this.
yes, the domain of my server is mydomain.local, and that's fine because I'm not using qmail and horde with this SME (and I don't have internal mail server)
how can I change this ?
Thanks in advance.
edd
sail-2.2.1-587
Asterisk 1.4 something (the one which comes with the upper)
-
Hi Edeganay
You set this in each extension. Edit the extension and fill out the e-mail address in the "User to Receive E-mail" box.
See here
http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter102
Kind Regards
S
-
I didn't find the right words then.
The problem doesn't come from the email address to send to, but the email address FROM it comes, which is anonymous@myserver.mydomain.local
am I clear ?
Thanks anyway,
Edd
-
ah,
Sorry, I did not read properly.
you can set
serveremail => mail@mydomain.com
in headers->voicemail.conf
For a list of all voicemail parameters in voicemail.conf see here
http://www.voipforo.com/en/asterisk/voicemail-conf-configuration.php
Kind Regards
S
-
It’s been years since I played with Asterisk/Trixbox behind the Firewall, looks like the same principles apply with Sail.
gmail is looking at the 'Return-Path' in the email header, not 'From' which is changed by editing the servermail option.
Add this to /etc/asterisk/voicemail.conf (change the email address to FQDN)
mailcmd=/usr/sbin/sendmail -v -t -f tata_at_gmail.com
and edit
serveremail=tata_at_gmail.com
should look like this in the [general] section
[general]
format=wav49
serveremail=tata_at_gmail.com
mailcmd=/usr/sbin/sendmail -v -t -f tata_at_gmail.com
attach=yes
maxmessage=300
maxgreet=30
minmessage=2
maxsilence=6
operator=yes
callback=internal
then set the voicemail extention email to ie: tata_at_gmail.com via server-manager
restart asterisk for the changes
# /etc/init.d/asterisk restart
The changes WILL be overwriten with signal-event, so a template is needed for them to stick. (Sing out if need a hand)
Let us know how you go...
Regards
Steve
-
no need for a template
change the e-mail header in headers=>voicemail.conf
signal event will catch this and replicate it through
Best S
-
no need for a template
change the e-mail header in headers=>voicemail.conf
signal event will catch this and replicate it through
why did I not think of that?
ah, yes...was doing things the old fashion [long] way. Lots of catching up to do ;)