Skip to content

cmd/dkim-milter: Toggleable dkim verification - #82

Open
casKd-dev wants to merge 1 commit into
emersion:masterfrom
casKd-dev:toggleable-dkim-verification
Open

cmd/dkim-milter: Toggleable dkim verification#82
casKd-dev wants to merge 1 commit into
emersion:masterfrom
casKd-dev:toggleable-dkim-verification

Conversation

@casKd-dev

Copy link
Copy Markdown

Rationale: In my case i have multiple instances of go-msgauth running signing with multiple keys but it is present in every SMTP transcation as a milter, no matter if outbound or inbound

I achieve with this:

Outbound: rsa signer > ed25519 signer > rspamd > outbound
Inbound: ignored > ignored > rspamd > inbound

This prevents multiple layers of useless verifications and lets rspamd handle the verification instead for inbound mails

Comment thread cmd/dkim-milter/main.go
var err error
s.verifs, err = dkim.VerifyWithOptions(pr, &options)

if verify {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This unnecessarily creates a goroutine which copies to ioutil.Discard. Can we make it so pw is left nil instead, very much like signer?

Would be nice to rename it to verifier as well.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unsure what you mean to rename to verifier here. Could you be more specific?

Comment thread cmd/dkim-milter/main.go Outdated
Comment thread cmd/dkim-milter/main.go Outdated
@casKd-dev
casKd-dev force-pushed the toggleable-dkim-verification branch from 7fc7a72 to 9955e30 Compare August 5, 2026 11:00
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.

2 participants