If your license is also valid for v4.0.38 (which works correctly with pop3 gmail), you could upgrade to that version for free. You can ask Ritlabs' support for which versions your license is valid.
I volunteer as a moderator to help keep the forum tidy. I do not work for Ritlabs SRL.