Connection Doctor is a diagnostic tool located in Apple's Mail application. It will test the connection to all enabled accounts in Mail and display a success message or an error.
The Connection Doctor is located under the Window menu in Mail.
A list of Errors can be found here.