Envelope Sender from missing > DKIM failed

Created on 11 June 2024, 7 months ago
Updated 12 June 2024, 7 months ago

Problem/Motivation

Gmail rejects emails that do not pass both the SPF and DKIM checks. If the Envelope from address does not match the DKIM signature domain set, the DKIM check will not be passed. It looks to us as if the envelope from (or Bounce) address is not set and is therefore a default value, that does not match the DKIM signature domain. Our hoster says:
‘In my opinion, the problem is that no envelope-from is set when sending from Drupal and therefore the Linux user is probably implicitly set.’

Further information on this:
https://en.wikipedia.org/wiki/Bounce_address
https://stackoverflow.com/questions/179014/how-to-change-envelope-from-a...

Steps to reproduce

Set SPF and DKIM for domain
Use Views_send to send an e-mail
Check this mail to see if SPF and DKIM are set correctly, e.g. with https://www.mail-tester.com

Proposed resolution

Set the sender address also as envelope (or bounce) from address, should solve the problem as I understand it, but we are also not too deeply involved in these technical matters.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany rainer f. gottlieb

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

Comments & Activities

  • Issue created by @rainer f. gottlieb
  • Assigned to hansfn
  • Status changed to Postponed: needs info 7 months ago
  • 🇳🇴Norway hansfn

    Thanks for the report. I'm familiar with SPF and DKIM. Which mailing sending module do you use?

    This module doesn't really handle the mail sending part - it's left for the mail sending module that your site is using. Have you checked that normal Drupal messages works (with the same mailing sending module)? If so, I'm happy to investigate if the misconfiguration is in Views Send.

  • Issue was unassigned.
  • Status changed to Active 7 months ago
  • 🇩🇪Germany rainer f. gottlieb

    Thanks for the quick response! Much appreciated and very helpful :)

    We just sent Drupal password reset mail from this system/domain and that got a 10/10, i.e. DKIM worked in this case. Also in another case, email sent via a custom module on this site passed the DKIM test.

    For Views Send we use ‘Mime Mail’ via the ‘mailsystem’, System mailings are sent via Symfony Mailer. There was a reason for this, whether we can simply switch over would have to be checked.

    But anyway, you would you say it's almost certainly a mime mail problem?

  • 🇳🇴Norway hansfn

    But anyway, would you say it's almost certainly a mime mail problem?

    No, not necessarily, it could also be that Views Sends is trying to set another sender. But Mime Mail is old ...

    We just sent Drupal password reset mail from this system/domain and that got a 10/10

    Switch the system mails to ‘Mime Mail’ via the ‘mailsystem’ and see if you still get 10/10.

    Sorry for putting all the testing on you, but currently I don't use the module in production myself. I only test it using DDEV (and mailhog).

  • 🇩🇪Germany rainer f. gottlieb

    OK, we'll test this after our digital event next week, I don't want to change much at the moment, especially as we've solved the DKIM problem on the server side for now.

Production build 0.71.5 2024