docker-simple-mail-forwarder icon indicating copy to clipboard operation
docker-simple-mail-forwarder copied to clipboard

Use port 110 instead of port 25?

Open ibnYusrat opened this issue 3 years ago • 4 comments

Hi,

Thank you for this amazing docker image. I am trying to deploy this in a compute engine on GCP. However, by default GCP has blocked port 25 permanently. Is it possible to use port 110 instead? Please help!

ibnYusrat avatar Jun 13 '21 21:06 ibnYusrat

This is the exact reason that I don't use GCP. And it seems that they don't let you remap ports which is silly. The easiest solution is to see if you can use a reverse proxy like Traefik (this is what I do to get email on 110).

If you want to do it natively in the container then you will have to clone the repo and build your own with port 110 exposed instead of 25, you will also have to make the necessary postfix changes.

JeffHiggy avatar Jun 14 '21 01:06 JeffHiggy

I believe this can be easily achieved by remapping the port by the docker run command?

docker run -e SMF_CONFIG -p 25:110 zixia/simple-mail-forwarder

huan avatar Sep 08 '21 10:09 huan

I believe this can be easily achieved by remapping the port by the docker run command?

docker run -e SMF_CONFIG -p 25:110 zixia/simple-mail-forwarder

Hi Huan,

Can you confirm if this indeed works?

ibnYusrat avatar Sep 08 '21 16:09 ibnYusrat

@ibnYusrat I have not confirmed by myself, but I guess it should work, except that the port should be switched:

docker run -e SMF_CONFIG -p 0.0.0.0:110:25 zixia/simple-mail-forwarder

See: https://docs.docker.com/config/containers/container-networking/

huan avatar Sep 09 '21 09:09 huan