A Docker image that forwards emails received to the specified host to another address.
131
A Docker image that forwards emails received to the specified host to another address.
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.
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
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'
docker exec -it email-forward-container add_mapping hello [email protected]
Content type
Image
Digest
sha256:0cb2f84e8…
Size
67.7 MB
Last updated
almost 4 years ago
docker pull winm2m/email-forward