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.