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

smtps and proxy_v2 do not work together #1161

Open
squalus opened this issue Dec 30, 2021 · 0 comments
Open

smtps and proxy_v2 do not work together #1161

squalus opened this issue Dec 30, 2021 · 0 comments

Comments

@squalus
Copy link

squalus commented Dec 30, 2021

When the smtps and proxy_v2 options are enabled for a listener, the TLS handshake rarely completes.

There can be data remaining in the io buffer after parsing the proxy header in proxy_io. Then, the TLS accept function is directed to read from the socket fd in io_start_tls. It looks like the data in the buffer is never handled, and so the SSL_accept function hangs.

OpenSMTPD 6.8.0p2 / Linux 5.10.52

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