SocketTimeoutException when trying to reach the Gmail API from Jenkins

Hello, I have a Jenkins problem when using the Read and Write Gmail plugin. I get a SocketTimeoutException when trying to reach the Gmail API from Jenkins. Locally, the test works.
I tried adding some addresses to the proxy whitelist. Unfortunately without success.

gmail.googleapis.com
accounts.google.com

does anyone have any ideas?

Thanks