For this small site I'm using my shared-host's email server. 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. 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. 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.
![open outlook avast certificate error open outlook avast certificate error](https://pariswells.com/blog/wp-content/uploads/2009/10/CertificateError1.jpg)
What does this do? Basically your mail server name needs to match the name on the certificate or Outlook will complain. Edit Outlook account settings and change the incoming and outgoing mail server to .nz.The entry you create in the hosts file should look something like this.Select All Files as the file types on the right. Paste the path to the hosts file in File, Open dialog. To open the hosts file, search for Notepad on the Start menu, right click on it and choose Run as Administrator.The hosts file is in %windir%\system32\drivers\etc. Edit the hosts file and add a new line for IP address 111.222.111.222.
![open outlook avast certificate error open outlook avast certificate error](https://quantumwarp.com/images/kb/2017/846/Outlook-Internet-Security-Warning.png)
View the certificate as above and note the server name under Issued To.Į.g.If you didn't ping your server for the IP address (or didn't make note of it), open a cmd prompt and ping your incoming mail server - e.g.
![open outlook avast certificate error open outlook avast certificate error](https://cdn.slidesharecdn.com/ss_thumbnails/fixoutlookcertificateerrorcode0-170614161316-thumbnail-4.jpg)
You can get around the "Target Principal Name is incorrect" by following the steps below: If your host does not have a server name you can use to eliminate the error, John Roper-Lindsayuses these steps: If the IP address matches your mail server's IP address use it as the mail server name in Outlook.