Pick a Free OS

User login


qmail: A fast secure mail server

qmail will require certain users and groups to be setup with the following


groupadd nofiles

useradd -g nofiles -d /var/qmail/alias alias

useradd -g nofiles -d /var/qmail qmaild

useradd -g nofiles -d /var/qmail qmaill

useradd -g nofiles -d /var/qmail qmailp

groupadd qmail

useradd -g qmail -d /var/qmail qmailq

useradd -g qmail -d /var/qmail qmailr

useradd -g qmail -d /var/qmail qmails

Compile and install qmail.


make setup check

You need to tell qmail your full hostname so that it will receive mail

for those hosts. If the hostname is not given or given wrong then qmail

will simply refuse to accept mail for your server.

If you have a working DNS setup then you can just run ./config and

qmail will lookup your hostname and put it in the control/locals and

control/rcpthosts files. qmail requires a working DNS for normal operation

so you should make sure you have a working DNS setup.

If DNS is not available or not working then you can say

./config-fast your.full.host.name to accomplish the same.

Next qmail aliases for the system need to be setup. Aliases are a

powerful system of mail delivery in qmail. You can setup aliases or

pseudonyms for users. So email for qmail@freeos.com and

qmailadmin@freeos.com would go to the same user. qmail and qmailadmin

need not be valid users on the system. All email directed to those email

addresses can be redirected to a existing local user or forwarded to an

external mail address.

The .qmail-newbie file contains the delivery instruction for user

newbie. Enter a local user(s) or e-mail address(es) that the mail is to

be delivered to. Each address or user needs to be on a seperate


qmail setup requires 3 aliases to be created.

Postmaster - This will be the mail administrator for your system so this

file needs to be carry the name of the mail administrator of your system.

Mailer-Daemon - This is not a required alias but as it defines the

standard recipient for bounce messages that users sometime reply to.

Root - qmail never sends mail to root. The sysadmin will be using a local

non-root account and this alias should point to that user.

Here the same user mayank is mail as well as system administrator. So

the following commands will set it up so qmail sends all mail addressed to