We’re not going to use any further EBS volumes, but to make this guide compatible a few changes need to happen.
Required Elements
sudo mkdir /home/ubuntu/smtp-certificates /var/log/dovecot /var/log/postfix /var/spool/vmail /var/vmail /svn-repositories
sudo groupadd -g 5000 vmail
sudo useradd -g vmail -u 5000 vmail -d /home/vmail
sudo chown vmail:vmail /home/vmail
sudo chown syslog:vmail /var/log/dovecot
sudo chown syslog:vmail /var/log/postfix
sudo chown vmail:mail /var/spool/vmail
sudo chmod 0775 /var/spool/vmail
Download this guide
To make this guide more useful I've added a feature to allow you to save it offline in a simple HTML format. If you have not customised this guide to your own values you may wish to do so here before you download it. There are a few options here:
Guide contents
- Hosting a website on Amazon EC2 - The goals and assumptions of this guide
- Preparing required tools - Create an AWS account, configure Elastic Fox and add an SSH tool
- Customise this guide - Allow all commands to be tailored to you (optional)
- Core software installation - Install some common software to the server image
- Depending upon your chosen configuration there is a choice here:
- Create and attach new EBS volumes - New server that you may want to split in future
- Attach existing EBS volumes - If you have used this guide before and have EBS volumes
- No attached EBS volumes - If you are not using the cloud or don't want to use them
- Depending upon your chosen configuration there is another choice here:
- Software Configuration - Set up the system to work as a multi-function server (from 5a or 5c)
- Software Configuration from existing EBS volumes - Use settings from EBS volumes (from 5b)
- Backing up and clean up - Configure Crons, log rotation etc
sudo useradd -g vmail -u 5000 vmail-d /home/vmail
should have a space between “vmail” and “-d”
Thanks for pointing that out, now fixed…