BYE JavaMail Exception: java.io.IOException: Connection dropped by server?

Good Day

Every now and then our WHD instance stops sending Email Notifications (Via Gmail Accounts) and then when it is rebooted all the notifications are sent at once. Has anyone else got this error and if so have you managed to resolve the issue:

"

An error last occurred at 2021/05/03 8:21 pm while attempting to retrieve e-mail from emailaddress@emailaddrress.co.za

* BYE JavaMail Exception: java.io.IOException: Connection dropped by server?

javax.mail.MessagingException: * BYE JavaMail Exception: java.io.IOException: Connection dropped by server?;

  nested exception is:

com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: java.io.IOException: Connection dropped by server?

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:738)

at javax.mail.Service.connect(Service.java:366)

at com.macsdesign.whd.util.EmailUtils$1.executeUntilTimeout(EmailUtils.java:290)

at com.macsdesign.util.ThreadTimer$TimeableThread.run(ThreadTimer.java:138)

Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: java.io.IOException: Connection dropped by server?

at com.sun.mail.iap.Protocol.handleResult(Protocol.java:442)

at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:463)

at com.sun.mail.imap.protocol.IMAPProtocol.enable(IMAPProtocol.java:1339)

at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:853)

at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:705)

... 3 more

Please check the e-mail account settings and the mail server for any problems. E-Mail will be checked again in 5 minutes, or when e-mail settings are updated to make a successful connection with your mailbox. Settings for this e-mail account are at Setup > E-Mail > Incoming Mail Accounts.