Sign inSign up

mariusgundersen/postfix-forward

By mariusgundersen

•Updated 12 months ago

forward mail to another server

Image
1

765

mariusgundersen/postfix-forward repository overview

⁠postfix-forward

docker container for forwarding emails to another server, for example gmail

⁠Example:

docker run -d -p 25:25\
-e MAIL_HOST="mail.example.com"\
-e VIRTUAL_ALIAS_DOMAINS="example.com"\
-e VIRTUAL_ALIAS_MAPS="@example.com [email protected]"\
mariusgundersen/postfix-forward

this creates a new smtp server which listens on port 25 and forwards all email sent to example.com to [email protected]⁠

⁠Required environment variables:

⁠MAIL_HOST

hostname of your server
for example mail.example.com

⁠VIRTUAL_ALIAS_DOMAINS

the domains you want to receive emails for, separated by spaces
for example example.com mysite.com etcetra.net

⁠VIRTUAL_ALIAS_MAPS

maping between incoming emails and where to forward them. Use @mysite.com for catch all emails. Separate multiple rules using ;
for example [email protected] [email protected];@etcetra.net [email protected]

Tag summary

Content type

Image

Digest

sha256:b1ec240e2…

Size

113.3 MB

Last updated

12 months ago

docker pull mariusgundersen/postfix-forward