SignDKIM sample (wodSmtpServer / wodPop3Server / wodImapServer)
I'm trying to use SignDKIM Method but I'm not sure about 3th parameter Headers.
When the HeadersReceived events fires, I'm storing the Header into Message Tag like this:
Private Sub SMTPPrivado_HeadersReceived(ByVal User As WODSMTPSERVERCOMLib.ISmtpUser, ByVal Headers As WODSMTPSERVERCOMLib.ISmtpHeaders)
10 User.Message.Tag = Headers.ToString
End Sub
Then, in MailReceived Event, BEFORE relay the message, I'm trying to sign with:
NewMessage.SignDKIM mvarChavePrivada, "1578940440.mydomain", User.Message.Tag
PrivateSMTP.Relays.Add NewMessage
There is no error, but I'm not sure if this procedure is correct.
Can you tell me if this is correct?
SignDKIM sample
Hi Nestor,
it's your choice which headers you want to include into the signature. Typically, it would be "From:To:Subject:Date" but in theory you can use any you wish. Recipient of the message will use this value to calculate message hash only using those headers (in the order you specified).
Regards,
Jasmine.
SignDKIM sample
Hi Nestor,
it's your choice which headers you want to include into the signature. Typically, it would be "From:To:Subject:Date" but in theory you can use any you wish. Recipient of the message will use this value to calculate message hash only using those headers (in the order you specified).
Regards,
Jasmine.
Hello Jasmine,
Just to clarify, in my example, I would use:
NewMessage.SignDKIM mvarChavePrivada, "1578940440.mydomain", "From:To:Subject:Date"
Or
NewMessage.SignDKIM mvarChavePrivada, "1578940440.mydomain", "sender@mycompany.com:other@domain.com;Message Test:2020-01-11"
Best regards,
SignDKIM sample
Hi.
Just header names, so this one would be valid:
NewMessage.SignDKIM mvarChavePrivada, "1578940440.mydomain", "From:To:Subject:Date"
Regards,
Jasmine