Hi, I would like to add support for subdomain@domain.xyz
mailboxes to ETHMail.cc, but I want to first better understand domain registration, verification and if there are any edge cases I should watch for.
As far as I understand when I register domain.xyz I can claim it with ENS and wallets/dapps will be able to resolve domain.xyz to address set in DNS entry.
From my perspective the only thing users would need to do is to set MX record pointing to ethmail.cc
domain (and probably some DMARC stuff to properly validate ethmail.cc as mail server).
Now, the validations I need to do when someone sends email to subdomain@domain.xyz is:
- Check if
domain.xyz
DNS antry with eth address matches address from resolvingdomain.xyz
(or can I omit this check?) - Check that
subdomain.domain.xyz
resolves to eth address (email address is valid from my perspective)
Am I thinking about it correctly?
The mail will be routed to address resolved for subdomain.domain.xyz
but might also be CCed to address for domain.xyz