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

ssl-handshake takes forever running opensmtpd on top of docker #1245

Open
alexanderharm opened this issue Feb 5, 2024 · 0 comments
Open

Comments

@alexanderharm
Copy link

i intended to use opensmtpd as a mail relay inside an organisation but even after serveral hours i somehow fail to get the whole thing working. the goal is to simply relay all authorised submissions to the provider and set a generic from address. my config:

pki my.hostname.tld cert "/etc/mail/OpenSMTP-Relay.crt"
pki my.hostname.tld key "/etc/mail/OpenSMTP-Relay.key"

table usercreds "/etc/mail/usercreds"
table relaycreds "/etc/mail/relaycreds"

listen on 0.0.0.0 smtps protocols "legacy" ciphers "compat" pki my.hostname.tld hostname my.hostname.tld auth <usercreds>
listen on 0.0.0.0 port 587 tls-require protocols "legacy" ciphers "compat" pki my.hostname.tld hostname my.hostname.tld auth <usercreds>

action "relay" relay host "smtps:https://[email protected]" auth <relaycreds> mail-from "[email protected]"
match auth from any for any action "relay"

config check reports ok and the service is up and running. however, establishing a ssl-handshake seems to take forever:

openssl s_client -connect 192.168.42.2:465
Connecting to 192.168.42.2
CONNECTED(00000004)
<wait for 10 to 15 minutes>
Can't use SSL_get_servername
depth=0 C=DE,...

there is not much in the logs:

20d98cd51ee58608 smtp disconnected reason="io-error: handshake failed: No error information"

i'm testing with the official docker image (master at this point but also tried the others).

am i missing something in my conf?

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

1 participant