How to send voicemail + notifications to emaisl in Elastix

Posted on 2009-12-28
Last Modified: 2013-12-21
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:

Question by:shirubia

    Author Comment

    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!
    LVL 16

    Expert Comment


    yes you need to relay to your smtp server

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


    Author Comment

    I tried that, yet it still doesn't work...
    LVL 16

    Expert Comment


    check the follwowing filr

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


    Author Comment

    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?

    LVL 16

    Expert Comment


    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




    Accepted Solution

    Didn't have to edit that file, the DNS entry was incorrect and Elastix wasn't able to talk to my DNS server.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn ( because of bad weather. This article was c…
    Article by: user_n
    How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now