From GarantPlus Alvis Wiki
Jump to: navigation, search


Sending VoiceMail files to the email stay more and more popular these days. To enable this feature you need to have installed Asterisk, Exim and configure them all.

Preparations & Install

Install exim package from the package repository:

   apt-get update
   apt-get install exim

Be sure you have a smart host in your network. To check it is alive type (assuming it is

   telnet 25

If it is a live SMTP server you will have a message shows a version of this mail server.

Configure Exim

Configuration of Exim is placed at standart path: /etc/exim/exim.conf You should refer to Exim documentation to advanced Exim configuration:

In base cases for DNS-lookup delivery you does not need to additional configure of Exim - just install. If you use Smart Host (another SMTP server) for mail delivery you should add this route in configuration at first place:

   driver = manualroute
   domains = ! +local_domains
   transport = remote_smtp
   route_data = XXX.XXX.XXX.XXX 

Where XXX.XXX.XXX.XXX - IP address or host name of you SMTP server. Please remember to restart Exim after changing configuration:

 /etc/init.d/exim restart

Configure Asterisk

You should configure Asterisk to use Exim in /etc/asterisk/voicemail.conf :

 1. Replace mailcmd to:
      mailcmd=/usr/sbin/exim -t
 2. Specify mail sender for Asterisk mail in variable serveremail

After this you can setup voicemail mailboxes. Please remember to reload Asterisk after changing Voicemail configuration.

Configure simple voicemail enabled extens



To test Exim routes you can use command:

   exim -bt

Result is selected route to delivery mail to specified EMail. Also you can test mail delivery, example:

 root# exim -t
 Subj: Test messages
 Test message

After this check Inbox folder for and search there test email.


To troubleshooting mail delivery you can examine Exim logs. It's placed here: /var/log/exim