Skip to content

Check if the message is encrypted before DKIM check #69

@link2xt

Description

@link2xt

If incoming message is not encrypted, we can reject it by just looking at it, without doing any DNS requests.

If this check is moved above, we will not check DKIM on unencrypted message and will also not have to debug DKIM verification on messages that are going to be rejected anyway:

let mail_encrypted = check_encrypted(&message, false);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions