Sign inSign up

winm2m/email-forward

By winm2m

•Updated almost 4 years ago

A Docker image that forwards emails received to the specified host to another address.

Image
0

131

winm2m/email-forward repository overview

⁠EMAIL-FORWARD

A Docker image that forwards emails received to the specified host to another address.

⁠Execute

Configure incoming emails to [email protected]⁠ to be forwarded to [email protected]⁠

After setting the MX server IP for world.com,

sudo docker run --hostname=world.com -p 25:25 -p 587:587 --name email-forward-container winm2m/email-forward

NOTE: The "hostname" value must be specified as the same value as the host value of the e-mail to be forwarded.

⁠Configure mappings

⁠1. /etc/forwarding/mapping.conf

After writing from to in each line of the /etc/forwarding/mapping.conf file, execute rebuild_map

docker exec -it email-forward-container bash
echo hello [email protected] >> /etc/forwarding/mapping.conf
rebuild_map

⁠2. env

Write from1:to1,from2:to... in the environment variable called EMAIL_MAPPINGS, and then execute rebuild_map

docker exec -it email-forward-container bash -c 'export EMAIL_MAPPINGS=hello:[email protected] && rebuild_map'

⁠3. Manual

docker exec -it email-forward-container add_mapping hello [email protected]

Tag summary

Content type

Image

Digest

sha256:0cb2f84e8…

Size

67.7 MB

Last updated

almost 4 years ago

docker pull winm2m/email-forward