Installing a Postfix on a Ubuntu 12.04.
This is just a quick reference for configurations that I use.
https://help.ubuntu.com/12.04/serverguide/postfix.html
https://help.ubuntu.com/community/PostfixBasicSetupHowto
https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto
https://help.ubuntu.com/community/Postfix
http://www.postfix.org/documentation.html
apt-get install postfix
sudo dpkg-reconfigure postfix
sudo postconf -e 'myhostname = xxx.xxx.xx.xxx'
Configuration file: /etc/postfix/main.cf
Configuration command (that display or set configuration setting in the configuration file):
sudo postconf parameter
sudo postconf -e 'parameter = value'
Use Maildir instead of mailbox
sudo postconf -e 'home_mailbox = Maildir/'
sudo postconf -e 'mailbox_command ='
Virtual Hosting
See https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto, tested and it works.
Note (if configured according to the reference):
Check email queue: mailq