I installed postfix on a bare bones Ubuntu Server 12.04 by typing the following in the terminal.
sudo apt-get install postfix
When asked to choose a mail server configuration type, I chose
Satellite system. For the System mail name, I entered
ww1.example.com and for the SMTP relay host, I selected
mail.example.com. Note that I replaced
example.com with my own domain. The firewall was configured to only permit inbound traffic on ports 22, 80 and 443. I have numerous applications that successfully use
ww1.example.com to relay emails to
Now I'd like to provision new severs (ww2.example.com, ww3.example.com etc.) on demand for testing and scalability purposes. I have a bash script that provisions all the necessary components, such as Apache2, Tomcat, Java etc.
I'm unable to find a way to automate postfix installation. How does one pass parameters to
apt-get install postfix to configure it to relay mail through