Get email message from company email hosted to gmail

Hello,
I want to read email messages from mail company email hosted to gmail
how can i get the server name and the port required for get IMAP message acitivity??

@elsaka, Hi and welcome to the community

Normally it would be IMAP.CompanyName.com and the port number mostly its 993. But this could be different the best is to speak to the IT people from your company, they would provide you the details you need.

It is not work for me when using IMPA.companyname.com
it gives me thos error : Get IMAP Mail Messages: No such host is known
IT provided me with the following server name : “aspmx.l.google.com
and when used it gave me error :
Get IMAP Mail Messages: A socket operation was attempted to an unreachable network [2a00:1450:400c:c06::1b]:993

Any suggestion?

@elsaka, i dont know man, sounds like the server is unreachable, have you tried POP instead?

The Same error