If you have chosen an ec2 based server you should follow my ec2 suggestions first.I strongly suggest choosing the latest LTS version of Ubuntu, not the versions in between. For assistance with repositories, refer to this article on ubuntu's wiki.First you need to create a user to use in My SQL for mail only.Then you need to create the database, Take note of your chosen mail username and password.It is easy to follow, but you end up with a powerful secure mail server.The server accepts unlimited domains and users, and all mail can be read via your favourite clients, or via web mail. Look at my references, look at Postfix.org's howtos, read the excellent books available (E.g.You will need the password you specified for root during My SQL package installation.
If you refer to this howto in your own document, or find useful links, then let me know.To follow the rest of this howto with another distribution, you need to ensure all your packages have been installed with the same modules, E.g My SQL lookup on postfix and sasl, php in apache etc.I have set up mail servers using the 32bit and 64bit x86 platforms, and if all the packages are available then other, E.g. With installing Ubuntu you have a choice of which base system to install.But you may risk more exposure and accidentally be blocked by spam blockers. Also many servers block dynamic dns hosts, so you may find your server gets rejected. I currently restrict my servers to ip4 and avoid ip6 at the moment. if you use a dynamic dns service, then your server address will be a subdomain.(Or rather avoid flooding my logs with ip6 errors). You may not want outgoing mail to come from [email protected], as you'd prefer [email protected] You can also specify which users not to masquerade. It will also warn you about the certificate location. Please refer to previous edition for more explanations.