Port numbers used

Hi,
I would like to know which port numbers are used by GMail Backup other than IMAP (port 143). When I switch off the firewall it works fine but does not work even when I have enabled IMAP access. Is there a way I can check this?