Error message:
The server you are connecting to is using a security certificate that could not be verified.
The target principal name is incorrect.
[View Certificate]
Do you want to continue using this server?
Cause: Outlook 2007 cannot read more than one line of the Details section (subject alternative names...) DNS. Usually this involve Office365 account. CUNY City College in my case.
Solution: Thanks to the linked site, just upgrade Outlook 2007 to SP 2 or 3. SP3 in my case. Solved. Too many dummy solutions out there on the web, bunch of security paranoid freaks.