by compsciphd · 3y ago · 0 comments
i.e. I demonstrated to others that I could have a DKIM signed email sent through gmail that was from a spoofed from: and it passed all DKIM tests (i.e. telnet gmail smtp server 25 (well with ssl, so openssl connect or something). smtp auth and do the standard MAIL FROM "SoSo <so@so> RCPT TO so@so data...... and it will look like a legit mail sent from SoSo.
DKIM's job isn't to protect against that.
I've just tested this, I generated a new app password in my Google Account and used that to send Gmail from Python.
Works fine when sending "from: <me@gmail>" with the app password, yet I can't change the sender since the SMTP auth then fails
"5.7.8 Username and Password not accepted. Learn more at https://support.google.com/mail/?p=BadCredentials"
Right, and there's a verification step in which you confirm you own (or at least control) the additional email address[es]:
https://support.google.com/mail/answer/22370?hl=en-GB
The OP appeared to be talking about somehow persuading Gmail into DKIM-signing an email from an address that wasn't theirs, though?