Postfix Mail Server Setup: Help me cut through the cruft.
I'm attempting to set up a mail server using Postfix and Courier. I'd like to avoid having to learn every single detail about Postfix in order to configure it.
I've worked with several HowTos, but all of them conflict with eachother as far as where mail is stored, how virtual users are set up, and so on. None of the HowTos include all of what I'm interested in.
What I'd like to have:
- Basic mail server with virtual users and one domain. The domain could be virtual if it makes things easier, or not. This is one of many conflicts between howtos.
- Able to use some kind of web control panel to add/edit users and quotas once initial configuration is finished. This is where almost all of the HowTos don't work - they all end with "And now, all you have to do is edit these complex text files to do even the simplest things! Isn't this clever? Here are some perl scripts!" PHPMyAdmin to edit the databases where users are stored does not count.
My question: Why isn't there a simple-to-install package for Postfix that's mostly set up as above? Is the above somehow uncommon? Why is everyone forced to come up with "Well, this worked for me, YMMV, here's my main.cf" in their HowTos?
Is there an easy-to-install Postfix package? Perhaps a pre-configured dedicated distro?
If it helps, I'm using Ubuntu.
Lately, I've taken to using Horde to administrate my Postfix users, since all my users get Horde access, but it can't really do quotas. It could put an entry in the user table, but it can't make them user configurable easily.
I think the reason there isn't a pre-configured package relates to the conditions that you could store all your data in files or in one of several different databases, you may want to store your mailboxes in an odd place, and really, there is no good admin software for it. Also, these things are generally set up by ISPs who have existing user databases and management systems they have to tie into.
The thing is that it doesn't really matter where you store the mailboxes, or even how your virtual user table is set up to a large degree. (I know this isn't very helpful, but it's the best I can do ;)): What works for me, is to store the address, password, maildir, and transport type (which isn't really needed, if all your accounts are virtual) in the database, in addition to a login name if you want pop/imap to be different than their email address.
The uid and gid fields, I take care of with a static map in the main.cf, like "virtual_uid_maps = static:
If it were me, unless I were planning on expanding or using SMTP AUTH for outgoing mail, I'd just do what I used to do and create system users for each account. That way you're not relying on a database and you can use tools like webmin to manage everything, including quotas.
posted by wierdo at 1:37 PM on January 24, 2007