How can you send email from users' email accounts?
If you were to create a service that emailed on behalf of users, using their own personal emails, how would you go about that?
Is it as simple as using a service like AWS SES, and just having the end-users verify/authorize their emails via a verification flow? (So it is pretty much up to end-users to exercise due caution when allowing such services to access?)
5 comments
[ 5.2 ms ] story [ 8.4 ms ] threadYou can’t, if I’m understanding it correctly, otherwise you are spoofing it and mostly it will end up in spam black lists. You can create an alias (and do all the usuals like SPF, DMARC, DKIM, TLS, etc to ensure the security part) and then forward it to users emails, and make it seamless so users don’t see it.
You can, but as long as the user owns the domain they are sending with.
If the domain owner authorizes you as a delegated sender using SPF and DKIM, then you can send email as anyone@domain.tld.
However, I recommend the OP learns about how email works before diving into such venture.
However, for the last decade or so most people’s email servers have been configured to look for DKIM headers on the email itself and then verify them against a public key published via DNS. Since you don’t have the corresponding secret key, you won’t be able to add a DKIM header to the email that can be verified and your email will be rejected. Leaving off the DKIM header will also get you rejected by most recipients.
It is useless to try to forge the sender address these days. SES won’t even let you try; it will simply not send any email which is “from” an address you don’t control.
Don’t try to create a service which sends email on behalf of other people; it won’t work.
<https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail>