Add support for signing and encryption

Created on 29 September 2023, 9 months ago
Updated 29 February 2024, 4 months ago

Looking at policy options, feels like adding crypto to support something that was currently available in Swiftmailer would be useful to send email using a certificate

Symfony doc : https://symfony.com/doc/current/mailer.html#s-mime-signer

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada kiwad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kiwad
  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    Good idea. In addition to S/MIME signing could also include DKIM signing and encrypting.

  • πŸ‡¨πŸ‡¦Canada kiwad
  • πŸ‡«πŸ‡·France rkcreation

    Hi,

    I attach a patch with following changes :

    • Introduces a new EmailAdjuster plugin: DkimSignerAdjuster, with configurable domain / selector and keys generation / DNS information
    • Add a pre-send phase (needed to allow changes directly on fully-prepared symfony email, as described by symfony mailer's DkimSigner documentation)
    • Introduces a new SigningHelper service (to factor methods like keys discovery/generation)
  • πŸ‡«πŸ‡·France rkcreation

    Fix configuration variables + improve dkim keys informations

  • Status changed to Needs review 4 months ago
  • πŸ‡«πŸ‡·France rkcreation

    Could someone review this code?
    It concerns only DKIM signing, but could be useful and merged IMHO (more and more email providers block unsigned emails).

  • πŸ‡«πŸ‡·France rkcreation

    After testing on another project, I add test for DKIM domain on plugin's settings form.

  • πŸ‡­πŸ‡ΊHungary mxr576 Hungary

    I found this issue when I proposed a similar feature for a friendly module in the neighborhood and I think it worth mentoining it seems that the Symfony Mailer library may have a built-in event to add this feature: https://www.drupal.org/project/symfony_mailer_lite/issues/3424075#commen... ✨ Add support form DKIM signing Active

    I haven't checked yet what other possibilities are available in this module.

  • πŸ‡«πŸ‡·France rkcreation

    Thanks @mxr576 for this. Could you try this module with #7 patch to confirm that it works ?

Production build 0.69.0 2024