How to send voicemail + notifications to emaisl in Elastix

Hello all,

Im hoping someone can help me get Elastix configured so as to forward voicemails to email accounts.

My Situation: The Company Im working for wants a simple answering machine, we decided to set up Elastix to do just that. So far Ive been able to get Elastix to accept calls from a PSTN trunk line and it directs these calls to an extension. If this extension does not pick up, it goes straight to the extentions voicemail. Voicemails are being recorded but the voicemails are not being emailed out.

Ive installed 1 x100p clone from It has one FXO and no FXS. Ive set up another computer as a softphone.

I think the reason its not emailing out the voicemails is because I do not fully understand how to edit the /etc/postfix/ file.

Can someone please help me find the correct information and where to put it so as to get emails working?

We want to send out these emails through our exchange server we have on our network.

Any help is much appreciated! Im completely new to this VoIP stuff.

For reference, please look at pg. 119 and 197 of Elastix without Tears:

Who is Participating?
shirubiaConnect With a Mentor Author Commented:
Didn't have to edit that file, the DNS entry was incorrect and Elastix wasn't able to talk to my DNS server.
shirubiaAuthor Commented:
So I reinstalled Elastix, but even after restarting I still cant get emails to send out...  I tried it first without configuring any email settings, then I edited the "relayhost" and "myorigin" properties of the file

here is my maillog file:

Dec 28 16:43:05 elastix postfix/smtp[3033]: A59F74B6672: to=<>, relay=none, delay=-.16, delays=0.15/0.01/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for type=MX: Host not found, try again)

This is driving me nuts!! any help is much appreciated!

yes you need to relay to your smtp server

edit this file
and add the follwing
relayhost = >>> being your or your ISP smtp server

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

shirubiaAuthor Commented:
I tried that, yet it still doesn't work...

check the follwowing filr

what DNS's defined
plus is the relayed domain in a real public or not?

shirubiaAuthor Commented:
Sorry for my noobness.. how do I open /etc/resolv.conf?

vi /etc/resolv.conf? when I try this, only a blank screen shows up
less /etc/resolv.conf? when I try this, only a blank screen shows up
PBX>tools>file editor? I dont see a resolv.conf file

public? I don't think so

Is there something in MS exchange that I need to configure?


then add your DNS to this file as the following

vi /etc/resolv.conf
then press insert and copy and past this line

nameserver your.DNS.IP >> you can add more than one DNS



Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.