Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for TLS-only smart hosts. #40

Open
pantunex opened this issue Jan 19, 2018 · 4 comments
Open

Support for TLS-only smart hosts. #40

pantunex opened this issue Jan 19, 2018 · 4 comments

Comments

@pantunex
Copy link

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.

@ericqqqqq
Copy link

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

@JHBalaji
Copy link

@ericqqqqq @p0xd1 any solution for TLS hosts?

@ericqqqqq
Copy link

ericqqqqq commented Aug 24, 2020

@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...

@JHBalaji
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants