docker container for forwarding emails to another email address(s), domain(s), or server(s). For Example; forward emails from your custom domain to your gmail
docker run -d -p 25:25 \
-e PSMF_HOST="mail.example.com" \
-e PSMF_DOMAINS="example.com" \
-e PSMF_MAPS="@example.com [email protected]" \
arabcoders/postfix-smf
this creates a new smtp server which listens on port 25 and and forwards all email sent to example.com to [email protected]
hostname of your server
for example mail.example.com
the domains you want to receive emails for, separated by spaces
for example example.com mysite.com etcetra.net
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]