Friday, June 15, 2012

HowTO configure the Exim server in Linux

This is my quick guide to do an install and basic setup of exim in Linux. This is not meant as a fully inclusive guide but it will get you on the way. Following this you should get a working exim install.

I will assume that you have yum working and have logged in as root.

You may want to make sure your up to date…
yum update

Install exim and mail switching tools
yum install exim
yum install system-switch-mai

Switch your MTA & set exim to start on boot
service sendmail stop
service exim start
chkconfig exim on
chkconfig sendmail off

vi /etc/aliases
Add a root alias, eg: “root:”

You may also wish to add some config to your routers section like this, if you want to relay through a smart host.
vi /etc/exim/exim.conf

Then add this before the “dnslookup:” section.

driver = manualroute
domains = ! +local_domains
transport = remote_smtp
 route_list = “*;”

Restart exim
service exim restart

To test, send an email
echo “test” |mail -s “$HOSTNAME”

Then you can flush the Exim Que and watch the log like this
exim -qff ; tail -f /var/log/exim/main.log

Good luck!

Note that this document comes without warranty of any kind. But every effort has been made to provide the information as accurate as possible. I welcome emails from any readers with comments, suggestions, and corrections at webmaster_at

                                                      Copyright © 2012 LINUXHOWTO.IN

No comments:

Post a Comment