Let's say I own example.com
, that I install and configure dkim on my server (apt-get install opendkim opendkim-tools
, etc.), and that I add the relevant public key to the domain's DNS records.
Then when sending email from my server (example: with PHP mail(...)
or postfix), it will have DKIM signature.
But I also send emails for contact@example.com
from Gmail, using "Send mail as" feature with a Sendgrid SMTP.
But I don't see in Gmail the setting for DKIM.
Will the mails sent from Gmail be banned / not sent correctly because they're not sent with DKIM signature?
How to send email from Gmail for my domain using DKIM? (using Send mail as feature)
Note: this is the "Send mail as" feature I'm speaking about:
Best Answer
DomainKeys Identified Mail (DKIM) is for ensuring that mail content hasn't tampered during transmission. Unlike Sender Policy Framework (SPF) it's not trying to validate the source of the message as permitted sender. RFC 5585, 1.1 DKIM's Scope explains this:
Therefore, checks regarding DKIM are only performed for emails containing the signature. Unless required by DMARC (which may be considered, among its other purposes, as the stricter handling mentioned), not signing the messages with DKIM wouldn't cause rejecting them.