Also see [[SPF Record]]
DKIM is one of many methods which tries to protect email senders and recipients from spoofing/spam. and to proove that an email hasn't been tampered with.
A domain owner can add DNS records which will publish a public key in a specially formatted