Qmail directory structure
Qmail installation folder is /var/qmail. All Qmail folders are located in /var/qmail
1. Qmail main folders
Qmail main folders are given below.
.qmail files used for system-wide aliases are stored in this folder.
Qmail programs and scripts are located here.
Qmail startup scripts are placed in this folder.
Qmails configuration files will be in this folder.
This folder is used for placing Qmail documentation files.
Qmail man pages can be found in this folder.
This is the Qmail queue
Information about Qmail users are stored in this folder
2. Folders in Qmail Queue
Bounce mails are stored in this folder
Email sender addresses are stored in this folder.
Headers are added to email at this folder.
Local email addresses of emails tobe delivered locally.
This folder contains lock files.
Email messages are stored in this folder.
Email first arrives in this folder. This email is named using i-node number of the file. Then email is moved to mess folder.
Remote mail addresses of emails tobe delivered remotely.
This folder also stores email headers.
3. Important Points
- info, local & mess folders contain 23 sub folders with names "0", "1", ..., to 22. This helps to reduce the number of files in a single folder.
- We can't modify files in mess sub folders since they are directly related to i-node number.
- It is not at all safe to play with Qmail queue, especially when qmail is running.