Easy Method To Set Up A Personal Mailbox

In our previous articles we have installed LAMP stack at our server, configured FTP and DNS records for our site. Now you probably want to know how to easy setup admin mailbox on Linux for your website. It's pretty standard, and a mailbox that looks professional is always welcome. Mail server software actually contains an SMTP server (exim) which receives and sends mail to remote servers, and POP/IMAP server (dovecot) which allow users access their remote Linux mail server and retrieve stored mail from their mailboxes. You can also, technically, host your domain at Google and use Gmail with your domain mailboxes but it’s not free, and there are restrictions that come with that.

Installing exim

We'll run the following commands to install the latest EPEL repository and exim package, as well as disable postfix:

# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
# yum install exim –y
# service postfix stop
# chkconfig postfix off 

Now we will run these commands to change the default MTA to exim,
select exim in a menu, add a line to exim config file, and launch it:

# alternatives --config mta
# chkconfig exim on
# echo “primary_hostname = mail.iloveserversuit.com” >> /etc/exim/exim.conf

Edit ‘/etc/exim/exim.conf’ transport section like this:


driver = appendfile
directory = $home/Maildir

And add following lines to the authenticators section to allow interaction with Dovecot


driver = dovecot
public_name = LOGIN
server_socket = /var/run/dovecot/auth-client
server_set_id = $auth1


driver = dovecot
public_name = PLAIN
server_socket = /var/run/dovecot/auth-client
server_set_id = $auth1

Done! Now let’s start exim:

# service exim start

Then we need to create a user ‘admin’ for our mailbox:

# adduser admin –s /sbin/nologin
# passwd admin

If you’re already configured DNS records as we discussed before, you can now send mail to admin@iloveserversuit.com! However, it will only be stored locally. To retrieve it you’ll need a ‘dovecot’ package.

Installing dovecot

# yum install dovecot
# chkconfig dovecot on

Edit file ‘/etc/dovecot/conf.d/10-auth.conf’ to allow plain-text auth:

disable_plaintext_auth = no
auth_mechanisms = plain login

Edit file ‘/etc/dovecot/conf.d/10-mail.conf’ to set mailbox storage:

mail_location = maildir:~/Maildir

And edit '/etc/dovecot/conf.d/10-master.conf’ to allow Exim using Dovecot authentication:

service auth {
    unix_listener auth-client {
        mode = 0660
        user = exim

That’s all!
You email client is all set up, and you got an admin account to use. You can follow these steps to add more accounts if you need them. Fundamentally, this is how you build a mail server.

But what's cool about ServerSuit, is that you don't need to go through all that. We have recently added Mail Server support to our dashboard. Once you sign in and have at least one server added, you can install a fully preconfigured "Easy Mail Server" from the software library! I think it's important to know how to set it up yourself, which is what the tutorial is for. But nothing beats not having to do it.

You can sign up for a free account right now, and we'll let you explore our system free for 30 days! Give it a try!

April 05 2016

Add or review comments

Please leave your comment

Existing comments

Comments 26

viagra online without a prescription <a href="http://genqpviag.com/#">best place to buy online viagra paypal</a> over the counter viagra for sale [url=http://genqpviag.com/]picture of generic viagra[/url] ’
viagra for no prisiption <a href="http://llviabest.com/#">viagra alternatives reviews</a> buy generic viagra 50mg [url=http://llviabest.com/]viagra toronto[/url] ’
order viagra online from canada <a href="http://viagerkr.com/ ">viagra 50 mg</a> but viagra online
cheapest cialis <a href="http://cialisvja.com/ ">shop cialis</a> cialis w/dapoxetine
brand cialis <a href="http://happyrxpharmacy21.com/ ">pills viagra pharmacy 100mg</a> canadian online pharmacies prescription drugs
skin care <a href="http://storerxpharmcanada.com/ ">prescription drugs canada</a> Brand Cialis
walmart pharmacy online <a href="http://xuypharmacyonline.com/">drugs without prescription</a> online pet pharmacy
general health <a href="http://online21rxon.com/ ">canadian drugs pharmacies online</a> no prescription pharmacy
buy medication without an rx <a href="http://canadianpharmnorx.com/ ">pharmacy near me</a> canadian prescription
viagra online canada <a href="http://lightvigra.com/ ">viagra canada</a> easy avilibility of viagra
online viagra pay pal <a href="http://hopeviagrin.com/ ">800 mg viagra</a> natural viagra for men
generic viagra canadian <a href="http://viagriyvik.com/ ">viagra gum </a> viagra in the united stater online
consumer protection agency payday loans <a href="http://rirocash.com/ ">payday loan how does it work</a> texas law payday loans
cialis pigiai <a href="https://jecialisbn.com/ ">cialis tight foreskin</a> cialis and priligy together
first payday loan no interest <a href="http://samcash21.com/ ">ge money personal loan complaints</a> instant paperless payday loans
pep payday loans <a href="http://daymoneygo.com/ ">cash advance wichita ks</a> same day cash payday loan
cialis webmd <a href="http://ljcialishe.com/ ">discount cialis and viagra</a> cialis combien temps avant
female viagra pill online <a href="https://vigedon.com/ ">http://vigedon.com/ </a> viagra generic sale
coffee viagra <a href="http://viagratx.com/ ">is viagra bad for you</a> how to make natural viagra
cialist the yeloow pill <a href="http://buycialisxz.com/ ">http://buycialisxz.com/ </a> where to get free samples of cialis
[url=http://essaywriteris.com/]pay for someone to write my essay[/url] who can write my essay for me <a href="http://essaywriteris.com/ ">essay writers net</a> п»їessay writer
[url=https://dissertationahelp.com/]writing a doctoral dissertation[/url] dissertation assistance service <a href="http://dissertationahelp.com/ ">dissertation titles</a> dissertation statistics help
[url=https://ljcialishe.com/]can women take cialis[/url] [url=https://cialisvja.com/]female cialis[/url] [url=https://viagraonlinejc.com/]women viagra pills[/url] [url=https://viagratx.com/]how much viagra to take[/url] [url=https://buycialisxz.com/]is there a generic cialis available?[/url]
[url=https://kloviagrli.com/]200 milligram viagra[/url] [url=https://vigedon.com/]himalayan viagra[/url] [url=https://llecialisjaw.com/]cialis professional[/url] [url=https://jwcialislrt.com/]coupon for cialis[/url] [url=https://jecialisbn.com/]where to get cialis[/url]
[url=https://thesisacloud.com/]doctoral thesis help[/url] research paper thesis <a href="http://thesisacloud.com/ ">thesis consulting</a> doctoral thesis
[url=https://thesiswritingtob.com/]help with thesis statement[/url] how to write thesis <a href="http://thesiswritingtob.com/ ">write a thesis</a> thesis paper