roehling / postsrsd

Postfix Sender Rewriting Scheme daemon
319 stars 38 forks source link

Move milter state creation from connect callback to envfrom #157

Closed rhansen closed 11 months ago

rhansen commented 11 months ago

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

roehling commented 11 months ago

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