SMTP relay with local queue.
Sending emails through a controlled network (possibly localhost or LAN) is
faster and more controlled than sending them directly through the Internet.
This container retains email queue in a volume under
in case your network fails or your real SMTP server is down for maintenance
or whatever, queue will be sent when network connection is restored.
This way your app can send emails faster, forget about possible temporary
network failures, and concentrate on its business.
Configure through these environment variables:
MESSAGE_SIZE_LIMITin bytes, defaults to 25MB, just like Gmail.
SMTP relay via Gmail
docker container run \ -e MAIL_RELAY_HOST='smtp.gmail.com' \ -e MAIL_RELAY_PORT='587' \ -e MAIL_RELAY_USERemail@example.com' \ -e MAIL_RELAY_PASS='your_gmail_pass' \ tecnativa/postfix-relay