Email delivery status notification with MailKit/Mimekit

Dharmaraj Kurle 20 Reputation points
2025-06-17T05:16:58.4466667+00:00

Hello,

We are successfully sending emails to our partner organization, which is hosted on Office 365. The partner has configured an incoming Mail Flow Connector and corresponding rule to allow emails from our domain.

We're using MailKit within our .NET Core application to send these emails. However, the delivery status we receive is always marked as successful, regardless of the actual delivery outcome.

We would like to know how to detect failed deliveries in the following scenarios:

The recipient email address does not exist in the partner's Office 365 tenant.

The email is rejected due to Mail Flow rule restrictions configured at the partner’s end.

Any other delivery failures.

Your guidance on how to capture or monitor such failures would be greatly appreciated.

Thank you in advance.

Exchange | Exchange Server | Development
0 comments No comments
{count} votes

Accepted answer
  1. Jack-Bu 2,610 Reputation points Microsoft External Staff Moderator
    2025-06-17T11:54:25.0066667+00:00

    Hi @Dharmaraj Kurle

    Thanks for reaching out to the Microsoft Q&A forum.  

    Based on your inquiry, I understand you're looking to detect failed email deliveries when sending mail using Mailkit/MimeKit. While this specific scenario, involving a third-party product, falls outside the direct scope of general Microsoft support, our mission is always to help you find the best possible solution. Therefore, I've gathered some resources that I believe will be beneficial. 

    Message trace is an incredibly helpful tool for thoroughly investigating email messages as they pass through your Microsoft 365 tenant. It can help you determine why a message might have been rejected, whether due to a mail flow rule, an invalid recipient email address, or other factors. For a detailed explanation, please refer to this article: Message trace in the new EAC in Exchange Online | Microsoft Learn

    You mentioned that your partner has set up a mail flow connector with security restrictions, and emails sent always appear successful despite the actual outcome. I recommend reviewing the configuration in your partner's tenant using this article as a guide: Set up connectors for secure mail flow with a partner organization in Exchange Online | Microsoft Learn. 

    We understand how crucial reliable email delivery is for your operations. If you encounter any issues or have further questions, please don't hesitate to reply to my answer once you have any replies/updates.  


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".         

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.