This article will show you how to setup an email server accessible using a POP3, IMAP or web browser client. It will also show you how to include virus scanning and spam tagging in the mail server. If you have an existing Active Directory or LDAP infrastructure, the last section will show you how to integrate it into your email server so you won’t have to maintain two sets of user accounts.

How to install Linux

You can use either Red Hat Enterprise Linux 6 or CentOS 6. RHEL 6 can be purchased from Red Hat and comes with support. CentOS 5 on the other hand can be downloaded here.

NoteTo edit configuration files, you can use vi editor or install the GUI based gedit using the command
yum install gedit

How to install SMTP, POP3, IMAP and Webmail service

Postfix will be providing the SMTP service, Dovecot will provide the POP3 and IMAP service, while Apache and SquirrelMail will provide the Webmail service.

ImportantBefore deploying your new mail server, see Mail Server Checklist to ensure your new mail server will have a good sending reputation and can be trusted.

How to create mailboxes and do miscellaneous tasks

This section will show you to do tasks like creating mailboxes, aliases, setting quota etc.

ImportantTo avoid user account related problems, do not use uppercase letters when creating user names.
WebminInstall Webmin if you want a web-based interface to manage your mail accounts.

How to add antivirus and antispam filtering

We will be using Clam AntiVirus for virus scanning, SpamAssassin for the spam tagging and MailScanner to integrate them into Postfix.

NoteYou can greatly reduce the volume of spam and viruses reaching your mail server if you are willing to give up something. If you are willing to have your mail delayed (time), install Postgrey. If you are willing to spend (money), get the Barracuda Spam Firewall.

How to integrate Active Directory/LDAP

Integrating Active Directory/LDAP into your mail server will turn your Linux email server into a lean and mean Exchange like machine. And you won’t have to deal with Linux system accounts or edit configuration files for common tasks like creating mailboxes and mailing lists. And finally, you can provide your users with standard address book.

getent passwdUsing Winbind to integrate Active Directory user accounts.
Another way to integrate Active Directory into your mail server. I highly recommend using the virtual user solution above instead of this one.

How to integrate MySQL or support multiple domains

To simplify administering multiple domains, the domains and mail accounts will be stored in MySQL and will be managed using Postfix Admin, a web based interface for handling domains, mailboxes and aliases.

SquirrelMail Auto ResponseInstall the SquirrelMail Postfix Admin Plugin if you want to enable the users to set their own vacation message, forwarding and password.
        

After getting a copy of Ubuntu 10.04, the steps below describes how to install it from scratch.

(more…)
 

This article will show you how to setup an email server accessible using a POP3, IMAP or web browser client. It will also show you how to include virus scanning and spam tagging in the mail server.

(more…)
 

This page will guide you in configuring MailScanner, ClamAV and SpamAssassin to work in Postfix. Before proceeding, make sure Postfix is installed and working.

(more…)
 

SquirrelMail is an open source standards-based webmail package written in PHP. When installed, SquirrelMail is ready out of the box. All it needs is an installed web server like Apache, SMTP server like Postfix, and IMAP server like Dovecot.

(more…)
 

Installing and setting up Dovecot in Ubuntu 10.04 is easy. All we have to do is set the mailbox format to maildir and we are good to go.

(more…)
 

Installing and setting up Postfix SMTP Server in Ubuntu 10.04 is easy. Postfix by default uses the mbox mail format so we’ll just change it to maildir.

(more…)
 

SMTP Authentication (SMTP Auth) provides an access control mechanism that can be used to allow legitimate users to relay mail while denying relay service to unauthorized users, such as spammers.

(more…)
 

Red Hat Enterprise Linux 6 and its derivative CentOS 6 includes a graphical tool called Firewall Configuration for configuring the firewall options. This article describes how to use the Firewall Configuration tool to open up the ports necessary for providing an email server.

(more…)
 

SquirrelMail is an open source standards-based webmail package written in PHP. When installed, SquirrelMail is ready out of the box. All it needs is an installed web server like Apache, SMTP server like Postfix, and IMAP server like Dovecot.

(more…)
 

Next Page »