![outlook 2016 unable to connect to hotmail outlook 2016 unable to connect to hotmail](https://www.technipages.com/wp-content/uploads/2017/09/Outlook-header.jpg)
Having setup a new domain I wanted my email headers "branded" with. Undoubtedly the mail server is accessible via DNS already. If the name of the server connection is changed to match the certificate, nothing else should be required. I don't understand the need to add a hosts entry.
![outlook 2016 unable to connect to hotmail outlook 2016 unable to connect to hotmail](https://support.content.office.net/en-us/media/b680b792-16df-4e22-9728-c49a5cd4b040.png)
I just setup IMAP for a new domain so this topic is suddenly relevant to me and my trusty Outlook 2010. NOTE: - Before editing the hosts file, you could test a ping to .nz and if the IP address matches your mail server's IP address you … Read more » The above process changes the mail server name to the name on the certificate and the hosts file will ensure that mail traffic to this server name will be correctly directed to your mail server. 111.222.111.222 .nz 4) Edit Outlook account settings and change the incoming and outgoing mail server to .nz What does this do? Basically your mail server name needs to match the name on the certificate or Outlook will complain. The entry you create in the hosts file should look something like this. The hosts file is in %windir%system32driversetc and you will probably need to edit this as administrator. nz or *.nz 3) Edit the hosts file and add a new line for IP address 111.222.111.222.
![outlook 2016 unable to connect to hotmail outlook 2016 unable to connect to hotmail](https://www.datanumen.com/blogs/wp-content/uploads/2021/06/6-Ways-to-Fix-Outlook-Error-421-Cannot-connect-to-SMTP-server.jpg)
ping returns IP address like 111.222.111.222 2) View the certificate as above and note the server name under Issued To. You can get around the "Target Principal Name is incorrect" by following the steps below:- 1) Open a cmd prompt and ping your incoming mail server to get the IP address - e.g. NOTE:- you won't need to trust the certificate anywhere, as long as your mail provider is using a valid Certificate Authority to issue the certificate, which they certainly should be. *.nz, you could create a hosts file entry of .nz, as the wildcard will cover anything. NOTE:- If the certificate name is wildcarded, i.e. What does this do? Basically your mail server name needs to match the name on the certificate or Outlook will complain.