docker-smtp icon indicating copy to clipboard operation
docker-smtp copied to clipboard

Support for TLS-only smart hosts.

Open pantunex opened this issue 7 years ago • 4 comments

When configured as a relay docker-smtp doesn't support a TLS-only smart host. TCP connection can be initiated on port 465 but then docker-smtp doesn't even try to initiate the TLS connection.

pantunex avatar Jan 19 '18 14:01 pantunex

Hi @p0xd1, I am facing the same issue here, did you find any solution to this issue?

ericqqqqq avatar May 26 '20 19:05 ericqqqqq

@ericqqqqq @p0xd1 any solution for TLS hosts?

JHBalaji avatar Aug 24 '20 18:08 JHBalaji

@JHBalaji Try this branch, it worked for my needs. Also, check out my reply here, I talked about the details about the branch.

run with command:

docker run -p 25:25 -v $(pwd)/:/etc/ssl/certs \
    -e "KEY_PATH=/etc/ssl/certs/MyKey.key" \
    -e "CERTIFICATE_PATH=/etc/ssl/certs/MyCertificate.crt" \
    -e "SMARTHOST_ADDRESS=your address" \
    -e "SMARTHOST_USER=your username" \
    -e "SMARTHOST_ALIASES=*" \
    -e "SMARTHOST_PORT=465" \
    -e "SMARTHOST_PASSWORD=your apikey" \
    namshi/smtp

For the SMARTHOST_PORT, try 465, 587 and 25. In my case, only 465 worked...

ericqqqqq avatar Aug 24 '20 18:08 ericqqqqq

@ericqqqqq I need 587 and this worked for me, https://hub.docker.com/r/juanluisbaptiste/postfix

JHBalaji avatar Aug 24 '20 21:08 JHBalaji