Language Selection

English French German Italian Portuguese Spanish

Howto: Mail Server with Virtual Users And Domains

Filed under
HowTos

This document describes how to install a mail server based on Postfix that is based on virtual users and domains, i.e. users and domains that are in a MySQL database. I'll also demonstrate the installation and configuration of Courier (Courier-POP3, Courier-IMAP), so that Courier can authenticate against the same MySQL database Postfix uses.

The resulting Postfix server is capable of SMTP-AUTH and TLS and quota (quota is not built into Postfix by default, I'll show how to patch your Postfix appropriately). Passwords are stored in encrypted form in the database (most documents I found were dealing with plain text passwords which is a security risk). In addition to that, this tutorial covers the installation of Amavisd, SpamAssassin and ClamAV so that emails will be scanned for spam and viruses.

The advantage of such a "virtual" setup (virtual users and domains in a MySQL database) is that it is far more performant than a setup that is based on "real" system users. With this virtual setup your mail server can handle thousands of domains and users. Besides, it is easier to administrate because you only have to deal with the MySQL database when you add new users/domains or edit existing ones. No more postmap commands to create db files, no more reloading of Postfix, etc. For the administration of the MySQL database you can use web based tools like phpMyAdmin which will also be installed in this howto. The third advantage is that users have an email address as user name (instead of a user name + an email address) which is easier to understand and keep in mind.

Full Story.

More in Tux Machines

XFCE 4.12 Released With Several Changes, Install In Ubuntu


xfce 4.12 released install in ubuntu

Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly. After two years and 10 months Xfce sees a newreleaseXfce 4.12 with so many changes.
 

Read At LinuxAndUbuntu

Linux Kernel Developer Work Spaces Video: Tejun Heo, Red Hat

Tejun Heo is a Linux kernel developer and a principal software engineer at Red Hat. In this video he takes us on a tour of his home office and answers a few questions about his work as a kernel subsystem maintainer. Read more

Xfce 4.12 Has Been Officially Released

After two years of hard work, the Xfce development team had the pleasure of announcing a few minutes ago, February 28, the immediate and general availability of the highly anticipated Xfce 4.12 desktop environment for GNU/Linux distributions. Read more

New Tizen Tools Version Released (15.01)

A new version of the Tizen development tools has been released, version 15.01, and it is available on download.tizen.org, including the following: GBS 0.23.2 MIC 0.24.4 REPA 0.3 BMAP-TOOLS 3.3 Read more