InstallEximServer

From GarantPlus Alvis Wiki
Jump to: navigation, search

Abstrace

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
   sync
 

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

 
   telnet 192.168.1.1 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: http://www.exim.org/docs.html


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:

 
 smart_relay:
   driver = manualroute
   domains = ! +local_domains
   transport = remote_smtp
   route_data = XXX.XXX.XXX.XXX 
   no_more
   no_verify_sender
 

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

TBD...

Testing

To test Exim routes you can use command:

 
   exim -bt [email protected]
 

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

 root# exim -t [email protected]
 From: [email protected]
 Subj: Test messages
 
 Test message
 .

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


Troubleshooting

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