Setting up exim mail server

steveking
  11 years ago
  4

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:

       system-switch-mail

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:

        root: me@example.com

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” me@example.com

This should print out something similar to this:

        testmail -s “hostname” (where you sent the mail from) me@example.com

That is your exim mail client up and running!

Comments
steveking 11 years ago

tbh it is just a much more stable open source mail server.

I use it at work and the senior sys admin swears by it.


kazztan0325 11 years ago

@steveking:
I would like to ask you...

What are the merits of using "exim mail client"?