Skip to content

feat(check/milter): Add TLS support - #915

Open
MannXo wants to merge 1 commit into
foxcpp:devfrom
MannXo:feat/905-milter-tls
Open

MannXo wants to merge 1 commit into
foxcpp:devfrom
MannXo:feat/905-milter-tls

Conversation

@MannXo

@MannXo MannXo commented Dec 4, 2026

Copy link
Copy Markdown

Summary

check.milter can now talk to a milter over TLS. A tls://host:port endpoint makes the client dial with crypto/tls.Dialer, and a new tls_client { ... } block customises the TLS config, same as check.rspamd, target.smtp and auth.ldap.

Fixes #905

This PR was prepared with help from an LLM (Claude). I reviewed the change and take full responsibility.

A tls:// endpoint now makes the milter client dial through
crypto/tls.Dialer, wrapping the existing net.Dialer so its timeout covers
the handshake too. The new tls_client block customises the TLS config the
same way it does for check.rspamd, target.smtp and auth.ldap, and inherits
the global tls_client.

Fixes foxcpp#905

Signed-off-by: Parman Mohammadalizadeh <prmma23@gmail.com>
@MannXo
MannXo force-pushed the feat/905-milter-tls branch from 5fd08be to 58c9615 Compare December 4, 2026 13:21

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: First Feedback Needed

Development

Successfully merging this pull request may close these issues.

1 participant