Question: how spf and dkim works?
Answer: DKIM, SPF, and DMARC are all standards that enable different aspects of email authentication. ... SPF allows senders to define which IP addresses are allowed to send mail for a particular domain. DKIM provides an encryption key and digital signature that verifies that an email message was not faked or altered.