A solution for the emails was not found, but might have the full picture of the problem. The system is able to connect tru 2 systems IMAP or POP. At the moment I found out that the system works better with IMAP because it brings the whole list of folders, the update has to be done manually, but it brings almost everything on the folder. The problem is that the connection is not stable enough to keep the connection available to pull new emails.