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

Move milter state creation from connect callback to envfrom #157

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

rhansen
Copy link
Contributor

@rhansen rhansen commented Aug 25, 2023

If IPv6 support is not enabled in libmilter, the connect callback is not called when an IPv6 client connects. Work around the issue by moving state initialization from the connect callback to the envelope-from callback.

Note that the state is now per-message, not per-connection, so it must be cleaned up in the end-of-message callback, in the abort callback, and in any other callback that finalizes message handling (e.g., tempfail).

Fixes #156

If IPv6 support is not enabled in libmilter, the connect callback is not called
when an IPv6 client connects. Work around the issue by moving state
initialization from the connect callback to the envelope-from callback.

Note that the state is now per-message, not per-connection, so it must be
cleaned up in the end-of-message callback, in the abort callback, and in any
other callback that finalizes message handling (e.g., tempfail).
@roehling
Copy link
Owner

Thanks. This is probably a better solution than my initial idea of patching IPv6 support in libmilter.

@roehling roehling merged commit bc7fa88 into roehling:main Aug 25, 2023
10 checks passed
roehling added a commit that referenced this pull request Aug 25, 2023
@rhansen rhansen deleted the ipv6 branch August 25, 2023 19:09
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

Successfully merging this pull request may close these issues.

milter doesn't work with IPv6 SMTP clients
2 participants