Skip to content

[Enhancement] Expose finer-grained DKIM configuration through the builder api and disable 'l-param' by default #499

@SaeGon-Heo

Description

@SaeGon-Heo

Hello bbottema!
I'm working on DKIM Signing and I have a question about default DKIMSigner config.

https://github.com/bbottema/simple-java-mail/blob/master/modules/dkim-module/src/main/java/org/simplejavamail/internal/dkimsupport/DKIMSigner.java#L47

In DKIMSigner.java it seems set l-param as true always.
But this optional param is not recommended to set in RFC6376.
And mailtrap mail service provider's DKIM document says too.

“l” – length of the message body, and “z”- list of message’s original headers (both not recommended to set).

l-param is not found in google gmail's DKIM header too

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=~~~;
        h=mime-version:from:date:message-id:subject:to;
        bh=~~~;
        b=~~~
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=~~~; s=~~~;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=~~~;
        b=~~~
X-Gm-Message-State: ~~~

Is there any reason to use l-param?
If not I think l-param must be set as not use it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions