[GH-ISSUE #107] DKIM Eventid error #86

Closed
opened 2026-02-26 10:35:45 +03:00 by kerem · 2 comments
Owner

Originally created by @damien-giry on GitHub (Nov 10, 2015).
Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/107

Release 2.1.8 is a huge improvement for signing NDR/OOF emails :)

FYI, since updating to 2.1.8, I got one error:

Signing a mail item according to DKIM failed with an exception. Check the logged exception for details. System.NullReferenceException:
Object reference not set to an instance of an object. at 
Exchange.DkimSigner.DkimSigningRoutingAgent.SignMailItem(MailItem mailItem) in d:\Programmieren\dkim-exchange\Src\Exchange.DkimSigner\DkimSigningRoutingAgent.cs:line 88 at 
Exchange.DkimSigner.DkimSigningRoutingAgent.WhenMessageCategorized(CategorizedMessageEventSource source, QueuedMessageEventArgs e) in
d:\Programmieren\dkim-exchange\Src\Exchange.DkimSigner\DkimSigningRoutingAgent.cs:line 58

Br,

Originally created by @damien-giry on GitHub (Nov 10, 2015). Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/107 Release 2.1.8 is a huge improvement for signing NDR/OOF emails :) FYI, since updating to 2.1.8, I got one error: ``` Signing a mail item according to DKIM failed with an exception. Check the logged exception for details. System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.DkimSigner.DkimSigningRoutingAgent.SignMailItem(MailItem mailItem) in d:\Programmieren\dkim-exchange\Src\Exchange.DkimSigner\DkimSigningRoutingAgent.cs:line 88 at Exchange.DkimSigner.DkimSigningRoutingAgent.WhenMessageCategorized(CategorizedMessageEventSource source, QueuedMessageEventArgs e) in d:\Programmieren\dkim-exchange\Src\Exchange.DkimSigner\DkimSigningRoutingAgent.cs:line 58 ``` Br,
kerem 2026-02-26 10:35:45 +03:00
  • closed this issue
  • added the
    bug
    agent
    labels
Author
Owner

@Pro commented on GitHub (Nov 10, 2015):

Thanks for the feedback.
The reference not set exception seems to be related to the line
string smtpAddress = mailItem.Message.Sender.SmtpAddress;
which means that either mailItem.Message or mailItem.Message.Sender can be null sometimes. This needs an additional if check.

<!-- gh-comment-id:155366658 --> @Pro commented on GitHub (Nov 10, 2015): Thanks for the feedback. The `reference not set` exception seems to be related to the line `string smtpAddress = mailItem.Message.Sender.SmtpAddress;` which means that either `mailItem.Message` or `mailItem.Message.Sender` can be null sometimes. This needs an additional `if` check.
Author
Owner

@semack commented on GitHub (Nov 16, 2015):

I have the same issue.

<!-- gh-comment-id:157004348 --> @semack commented on GitHub (Nov 16, 2015): I have the same issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dkim-exchange-Pro#86
No description provided.