Issue getting Email for Bounce Processing
The issue is likely at the server networking level.  If you have access to that server (via SSH or similar), I would try installing the swaks utility to troubleshoot.

swaks might even be premature though.  I would start by ensuring that your server's firewall isn't blocking outgoing access on port 993 and that imap.gmail.com is resolving in DNS.