Outlook 365 gives 'target principal name' error. Server is a shared host I administer. Cert is for only server's own domain, not hosted domains, changing mail server name to match that causes it to refuse to allow IMAP or SMTP login to server.

Geoff Roberts 0 Reputation points
2023-04-23T05:29:39.7666667+00:00

Changing the mail server name to match the server name doesn't work - it won't login to either imap or smtp if you do. I can't run unencrypted ports because hosts like gmail will not allow mail from servers where user is not authenticated to the server. This creates problems for my domain customers who need to send to gmail amongst others. It would be ridiculously expensive to get certificates for all the domains on the server and I'm not even sure if that's possible since they all use the same mail server.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,113 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,944 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChristyZhang-MSFT 21,181 Reputation points Microsoft Vendor
    2023-04-24T05:42:04.1566667+00:00

    Hi @Anonymous ,

    Welcome to our forum!

    Do you receive the below error?
    3

    If so, based on my research, i found a similar thread as yours, it's suggested that you could try the solution as Craig mentioned in it and check if the issue can be resolved:
    Outlook 2016 says "The target principal name is incorrect" on my site's security certificate
    (Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    Hope to help you!


    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.