You missed a couple of points :-)
- Click the test button on the server that will be running the services - still no joy?
- The firewall settings will be configured by your exchange / network people
- Mail server needs to have allow the IMAP4 connection on that port - use telnet to verify the connection can be made