wodSmtpServer ActiveX Control - QueryDNS Method
      
 

Description

Verifies DKIM ("DomainKeys Identified Mail") signature in the message.


Return Type

None  


Syntax

object.VerifyDKIM (SignerCert)



The VerifyDKIMSignature Method syntax has these parts:

Part Description
object An expression evaluating to an object of type SmtpMessage.
SignerCert Optional. A String object that holds public key.

Remarks

VerifyDKIM method will verify DKIM signature on the message - if one exists. If message is not signed, or signature is invalid, error will be thrown.

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 VerifyDKIM 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.

Calling VerifyDKIM method without specifying the SignerCert parameter will cause DKIMResult event to trigger. You can find more info on DKIMResult event here.