Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to setup postfix as an MTA for 2 domains, about 10 users each. I'm a bit confused with the documentation. Postfix has so many options for mail delivery. I'd like to have a simple file where I would store all the email addresses (and possibly their corresponding mailboxes). I wouldn't like neither system's passswd file nor mysql to be used for storing email users. What parts of documentation I should be focused on?

share|improve this question
up vote 1 down vote accepted

Postfix Virtual Readme is the mandatory starting point and covers what you are trying to do, then google for more (ie: distro specific instructions, etc).

There are many tutorials out there, all slightly different, most use a database like mysql as backend, but if you understand the postfix concept of maps then using plain text files is no different.

share|improve this answer

As totaam said, the virtual readme is the place to start, more specifically the separate domains, non-UNIX accounts example therein.

The extracted example from the documentation is as follows:


 virtual_mailbox_domains = ...more domains...
 virtual_mailbox_base = /var/mail/vhosts
 virtual_mailbox_maps = hash:/etc/postfix/vmailbox
 virtual_minimum_uid = 100
 virtual_uid_maps = static:5000
 virtual_gid_maps = static:5000
 virtual_alias_maps = hash:/etc/postfix/virtual

# Comment out the entry below to implement a catch-all.
...virtual mailboxes for more domains...

/etc/postfix/virtual: postmaster

The documentation is rather self-explanatory, but in the interest of the community, please comment on your resolution to add to the site and answer content.

share|improve this answer

I would have recommended the ISPmail tutorial or VBoxAdm, but since you don't wan't MySQL these links probably won't help you much. Maybe you want to check them out anyway to get a deeper understanding of how Postfix handles Virtual Mailboxes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.