According to this guide:
It is important to secure your server and make sure that Postfix is not configured as an open relay.
It links to another guide which suggests using UFW as a firewall.
I'm running Apache on Ubuntu with a PHP application that needs to send email. I've installed postfix as my mail server.
I've configured UFW so far with:
sudo ufw allow ssh
sudo ufw allow www
To allow email out, would I tell UFW to allow smtp?:
sudo ufw allow smtp
Is there anything else I need to do to allow email to be sent out?