none
SMTP client sending mail to wrong target. RRS feed

  • Question

  • Issue is that - there are two user with same id but different domain. But SMTP cleint is sending mail to wrong  domain instaed of intended one. 

    Example:

    Mail ID 1- x@a.com

    Mail ID 2 -x@b.com

    if we send mail to x@b.com, the mail goes to x@a.com. x@b.com  is not getting the mail.

    How to debug the issue ??? Code is written using system.net.smtpclient ...


    Gargi Biswas

    Wednesday, November 15, 2017 8:11 AM

All replies

  • Provide the result of below commands

    Get-Mailbox "x@a.com" |fl *forward*, *primary*

    Get-Mailbox "x@b.com" |fl *forward*, *primary*

    or if they are not mailboxes

    Get-recipient "x@a.com" |fl *primary*

    Get-Mailbox "x@b.com" |fl *primary*

    also you can try to track the message if there is some transport rule



    Thanks & Regards Ramandeep Singh

    Wednesday, November 15, 2017 8:46 AM