Skip to content

Multipart emails with empty multiline text part break DKIM #424

@GioPan04

Description

@GioPan04

This is a similar issue to #411, although much specific.
I've noticed that If a multipart email (text and html) is sent and the text part contains more than 5 empty lines (both \r\n and \n) the email won't get correctly signed.

  • This message contains 5 empty lines and gets correctly signed working.txt

  • This message contains 6 empty lines and is not correctly signed fail.txt

I've also noticed that if a message is not correctly signed one empty line gets removed from the text part (this maybe the reason for the failing DKIM).

  • This is the message downloaded from gmail (the receiving server) which was sent with 5 empty new lines: pass-gmail.txt

  • This is the message downloaded from gmail which was sent with 6 empty new lines: fail-gmail.txt

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