The next few articles are aimed at showing you how to install a mail server that has the ability to utilise multiple domains and multiple users.
However, to start with, let's take an overview of the installation and install some basic packages.
Using the existing email articles has allowed us to send mail from the Slice.
That is fine for many people as all they want is to allow their application to send mail and perhaps receive mail for one domain.
This series will go much further and look at installing a complete mail server for multiple domain and multiple users.
The end result will be a mail server with secure pop and imap access as well as anti-spam and anti-virus measures in place. We will also look at installing a web interface so we can check mail from a browser.
Multiple domains and users
Having the ability to host multiple domains and users needs no real explanation except to say that whatever setup we use needs to be easily administered and easily accessed by the admin users.
There are a couple of ways of approaching how to define domains and users.
Firstly, there is the 'flat file' method. This simply uses a text file containing the relevant data.
Secondly, a database is used to control the data.
In this series, we will setup and use MySQL to control our domains, users, password, addresses and so on.
It may seem like overkill if you only have one or two domains and, indeed, it may well be for those cases.
However, once created, administering the database is very simple. Adding new users and new domains is actually easier than using the 'flat file' approach.
The finalised mail server will have the ability to host from one domain and one user to many thousands of domains and associated users.
Any extra time taken to complete the installation is well worth it when the end result is so robust and so scalable.
To control our pop and imap access to the emails, we will use the Courier package. As with most things, there are other packages available such as Dovecot.
You are free to use whichever one you prefer. However, in this case, we will install and configure Courier for our needs.
We will also configure Postfix and Courier to allow secure access to our mail using encrypted connections - similar to the way you would use an 'HTTPS' connection for sensitive information when browsing the web.
Anti-spam, anti-virus and grey lists
No mail server would be completed without some measures in place to combat spam and viruses.
The finished mail server will have anti-spam and anti-virus facilities and use a 'grey list' to block most spam before it even reaches the filters.
The mails server articles will allow you to install and configure a complete mail server that is useable by a single domain or many thousands of domains.
Secure connections and anti-spam and anti-virus make the mail server easy to use and reduce unwanted mail.
Let's get started with looking at the Slice setup.