You can also find a prebuilt docker image from [Docker Hub](https://registry.hub.docker.com/u/juanluisbaptiste/postfix/), which can be pulled from the Hub:
sudo docker pull juanluisbaptiste/postfix:latest
### How to run it
The following env variables need to be passed to the container:
*`SMTP_SERVER` Server address of the SMTP server to use.
*`SMTP_USERNAME` Username to authenticate with.
*`SMTP_PASSWORD` Password of the SMTP user.
To use this container from anywhere, the port 25 needs to be exposed to the docker host server:
Since last year, Gmail by default (does not allow email clients that don't use OAUTH 2)[http://googleonlinesecurity.blogspot.co.uk/2014/04/new-security-measures-will-affect-older.html]
for authentication (like Thunderbird or Outlook). First you need to enable access to "Less secure apps" on your