Following script may be used for configuring complete and secure email server on fresh install of Debian 7. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.
- Run
postfix.sh
script. - Configure postgres to allow connections.
- Configure postfix admin. Remember to set these: