Error during web synchronization through iNotes

While synchronizing mail through iNotes I am getting this error message "Server not responding”. I have a feeling that this could be happening due to firewall. So can anyone tell me what port to be opened on firewall for synchronization. Subscription is successful, problem is occurring only at the time of synchronization.