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:

local_delivery:

driver = appendfile
directory = $home/Maildir
maildir_format
maildir_use_size_file
delivery_date_add
envelope_to_add
return_path_add

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

dovecot_login:

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

dovecot_plain:

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 69


Lbgsesse
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] ’
Jdbxsesse
viagra for no prisiption <a href="http://llviabest.com/#">viagra alternatives reviews</a> buy generic viagra 50mg [url=http://llviabest.com/]viagra toronto[/url] ’
Kuikinend
order viagra online from canada <a href="http://viagerkr.com/ ">viagra 50 mg</a> but viagra online
AqcfHemyinend
cheapest cialis <a href="http://cialisvja.com/ ">shop cialis</a> cialis w/dapoxetine
Fqhhsesse
brand cialis <a href="http://happyrxpharmacy21.com/ ">pills viagra pharmacy 100mg</a> canadian online pharmacies prescription drugs
Ahkdsesse
skin care <a href="http://storerxpharmcanada.com/ ">prescription drugs canada</a> Brand Cialis
Kbcxhifs
walmart pharmacy online <a href="http://xuypharmacyonline.com/">drugs without prescription</a> online pet pharmacy
JbnbUript
general health <a href="http://online21rxon.com/ ">canadian drugs pharmacies online</a> no prescription pharmacy
Jbbvsesse
buy medication without an rx <a href="http://canadianpharmnorx.com/ ">pharmacy near me</a> canadian prescription
NncsExole
viagra online canada <a href="http://lightvigra.com/ ">viagra canada</a> easy avilibility of viagra
FvfcExole
online viagra pay pal <a href="http://hopeviagrin.com/ ">800 mg viagra</a> natural viagra for men
AbcfHemyinend
generic viagra canadian <a href="http://viagriyvik.com/ ">viagra gum </a> viagra in the united stater online
Kvaxhifs
consumer protection agency payday loans <a href="http://rirocash.com/ ">payday loan how does it work</a> texas law payday loans
Labxsesse
cialis pigiai <a href="https://jecialisbn.com/ ">cialis tight foreskin</a> cialis and priligy together
JbnvUript
first payday loan no interest <a href="http://samcash21.com/ ">ge money personal loan complaints</a> instant paperless payday loans
Ahbzsesse
pep payday loans <a href="http://daymoneygo.com/ ">cash advance wichita ks</a> same day cash payday loan
Jbbnsesse
cialis webmd <a href="http://ljcialishe.com/ ">discount cialis and viagra</a> cialis combien temps avant
NbnhExole
female viagra pill online <a href="https://vigedon.com/ ">http://vigedon.com/ </a> viagra generic sale
Kndnhifs
coffee viagra <a href="http://viagratx.com/ ">is viagra bad for you</a> how to make natural viagra
NbmoExole
cialist the yeloow pill <a href="http://buycialisxz.com/ ">http://buycialisxz.com/ </a> where to get free samples of cialis
Lmoppsesse
[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
Jvqqsesse
[url=https://dissertationahelp.com/]writing a doctoral dissertation[/url] dissertation assistance service <a href="http://dissertationahelp.com/ ">dissertation titles</a> dissertation statistics help
Brfghifs
[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]
GrvUript
[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]
Fbshsesse
[url=https://thesisacloud.com/]doctoral thesis help[/url] research paper thesis <a href="http://thesisacloud.com/ ">thesis consulting</a> doctoral thesis
Abgcsesse
[url=https://thesiswritingtob.com/]help with thesis statement[/url] how to write thesis <a href="http://thesiswritingtob.com/ ">write a thesis</a> thesis paper
Lrbssesse
levitra 20mg cost per pill [url=https://uslevitraanna.com/ ]levitra 20 mg preis[/url] viagra vs cialis vs levitra reviews
Jbsdsesse
Cleocin https://onlinecanda21.com/ pills viagra pharmacy 100mg
Fbsfsesse
Malegra FXT http://uspharmus.com/ Brand Viagra
LhdvExole
when does cialis patent expire https://asciled.com/ buy cialis canada paypal
Abdgsesse
Suprax https://canadianeve21.com/ pharmacy intern
RfvbExole
cialis 20mg П„О№ОјО· https://cileve.com/ cheap cialis
Bbdfhifs
generic viagra https://gensitecil.com/ women and viagra
Lrbssesse
levitra orodispersible tablets https://uslevitraanna.com/ where to buy levitra in canada
Jbsdsesse
board of pharmacy http://onlinecanda21.com/ Furosemide
LhdvExole
cialis no script http://asciled.com/ generic cialis price
Fbsfsesse
cialis super active [url=https://uspharmus.com/ ]Dipyridamole[/url] Yasmin
GvdbUript
tadalafil pronounce https://boxtadafil.com/ n-desmethyl tadalafil
Lebnsesse
medical mall pharmacy http://xlnpharmacy.com/ Apcalis SX
LbsoExole
cialisonline http://ucialisdas.com/ cialis onine
Fmrfsesse
cialis onine [url=https://cialisee.com/ ]sams club cialis[/url] canadian cialis
Bbshhifs
what drugs should not be taken with viagra? http://loxviagra.com/ how to get viagra online
Anoosesse
viagra masculino y femenino http://llviagra.com/ viagra use in ivf
RebfExole
cialis on line overnight https://rcialisgl.com/ cialis
GtnbUript
chinese viagra http://jokviagra.com/ is there anything over the counter that works like viagra?
Lebnsesse
online order medicine https://xlnpharmacy.com/ london drugs canada
Fmrfsesse
cialis generico https://cialisee.com/ cheap viagra and cialis in australia
Jebgsesse
Tetracycline [url=http://pharmacylo.com/ ]Epivir[/url] reliable canadian pharmacy
LbsoExole
does generic cialis work? https://ucialisdas.com/ canadian pharmacy cialis 20mg
Bbshhifs
revatio vs viagra https://loxviagra.com/ where can i buy viagra over the counter
RebfExole
viagra c20 cialis https://rcialisgl.com/ cialis online
Lebnsesse
online pharmacy no prescription https://xlnpharmacy.com/ prescription drug price comparison
LbsoExole
buy cialis online in austalia https://ucialisdas.com/ generic cialis india
GtnbUript
best place to buy viagra online https://jokviagra.com/ viagra on line
Fmrfsesse
cialis vs viagra vs levitra [url=https://cialisee.com/ ]buy cialis ireland[/url] cialis dapoxetine
RebfExole
generic cialis pills http://rcialisgl.com/ cialis generic name
Lebnsesse
online pharmacy delivery dubai [url=http://xlnpharmacy.com/ ]highest rated canadian pharmacies[/url] buy prescription drugs online
Fmrfsesse
best price on cialis https://cialisee.com/ buycialisonline
Jebgsesse
worldwide pharmacy online https://pharmacylo.com/ Nolvadex
LbsoExole
buy generic cialis https://ucialisdas.com/ cialis viagra levitra young yahoo
UriptAsd
cialis daily pricing [url=https://cialisjla.com/ ]generic cialis site:.au[/url] professional cialis
sesseDev
Atorlip-10 [url=https://cjepharmacy.com/ ]canadian pharmacy online adderall[/url] pre pharmacy schools online
sesseGtv
topical rx pharmacy [url=https://pharmacyhrn.com/ ]canadian pharmacies that are safe[/url] canadian pharmacy phentermine 37.5
sesseHtf
cialis 20 miligramos [url=https://cialishav.com/ ]buying cialis from canada[/url] buy cialis uk
ExoleVed
cialis rx [url=https://krocialis.com/ ]is it legal to buy cialis online[/url] herbal form of cialis
sesseAni
prescription drugs used [url=https://pharmacyken.com/ ]prescription drugs advertisements[/url] humana online pharmacy
Exoleloh
cialis without a perscription [url=https://rcialisgl.com/ ]online cialis pharmacy[/url] does cialis lose effectiveness over time
UriptAsd
free cialis canada [url=https://cialisjla.com/ ]cialis and paypal[/url] rx online cialis
sesseHtf
cialis de 20 mg [url=https://cialishav.com/ ]canadian cialis for sale[/url] canada cialis for sale