DKIM signature is added into message in cases where sender wants
recipient to know that he is responsible for sending the message. In
other words, recipient can verify that the e-mail originated from
certain sender. In order to be able to do so, a signature was
implemented into the message upon being sent.
In order to confirm that the message was sent from a specific
sender, simply provide it's public key to VerifyDKIMSignature method.
Only value of public key should be provided, without the "-----BEGIN
PUBLIC KEY-----" and "-----END PUBLIC KEY-----" lines. Also, key
should be wrapped into a single line, without end-of-line If no public key is known, one can
usually be found by doing an "nslookup" from command prompt. I.e:
nslookup
set q=TXT
example._domainkey.senderdomain.com
Executing the above sequence should return a result similiar to
this:
v=DKIM1;t=s;n=core;p=your_public_key_here
The required public key value should be provided instead of
"your_public_key_here" part.