Sign inSign up

vishnunair/docker-postfix-smtp

By vishnunair

•Updated almost 11 years ago

Setup Postfix and use Gmail as the SMTP

Image
0

486

vishnunair/docker-postfix-smtp repository overview

⁠docker-postfix-smtp

Setup Postfix and use Gmail as the SMTP

You can pull this image from the docker hub

docker pull vishnunair/docker-postfix-smtp:latest

Here you need to pass two environment variables

gmail_username 
gmail_password

You can run the container like

docker run -p 587:587 -e gmail_username='[email protected]' -e gmail_password='mygmailpassword' -it vishnunair/docker-postfix-smtp:latest bash

And execute the script postfix.sh like below:-

root@c26c8b811f7b:/# . /bin/postfix.sh

You can test it by running

root@c26c8b811f7b:/# echo "postfix using gmail smtp" | mail -s "Postfix in Docker" [email protected]

Tag summary

Content type

Image

Digest

sha256:0938b14f9…

Size

82.6 MB

Last updated

almost 11 years ago

docker pull vishnunair/docker-postfix-smtp