I am trying to figure out exactly what SPF and DKIM records are used for and in what situations they need to be implemented. I am familiar with the fact that SPF records help prevent SPAM but how does that exactly work? Also what are some issues with using these records? What are the exact differences?