Setting up an exim mail server

Write tutorials here
There are more tutorials here
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this

Setting up an exim mail server

Postby steveking on Fri Jun 15, 2012 6:36 am

ok first off we need to install exim with the follwing commands:

apt-get install exim && apt-get install system-switch-mail

After this run the command:


This will bring up a nice graphical box asking you if you want to use sendmail or exim, select exim.

After that we want to check that exim is automatically configured:

chkconfig exim on

The we need to add an alias to the exim mail client so run:

vi /etc/aliases

Then add in an alias for example:


From there we need to add a colon and type wq (this is for write and quit)

After this we need to restart exim:

service exim restart

Then we need to test that exim works! Otherwise we did something wrong:

echo “test”\mail -s “$HOSTNAME”

This should print out something similar to this:

testmail -s “hostname” (where you sent the mail from)

That is your exim mail client up and running!
2nd gen core i5 : 8Gb RAM : AMD Radeon HD 6770 1Gb GDDR5 : 1Tb 7500 SATA

cpanel Login - The Easy Way To Log Into Your cPanel Hosting
User avatar
Level 3
Level 3
Posts: 142
Joined: Thu Jun 07, 2012 8:53 am
Location: Shropshire, UK

Linux Mint is funded by ads and donations.

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 11 guests