If it is the case that you do not get any connection going, then the most likely situation is that your webhoster does not allow outgoing connections (of email server communication).
So I would recommend to check with them that they allow this.
Thanks for the response. I tried four different email services: outlook.com, gmail.com, mail.com, and outlook365. I understand that 365 is likely a problem, but the other three? And, yes, I set gMail settings to accept IMAP mail.
What else could it be?
ho,
Having issue to connect too.
Against localhost without ssl it rejects because server name doesn’t match, perhaps this could be adjusted in your code as who cares when not ssl?
Against the the fully qualified host name, neither pop3 imap4 (ssl or not) works.
Server is dovecot and it works fine for roundcube, rainforest using same php (php7.4 fpm from php.sury.org on debian stretch)
login is full email
For GMAIL / GSuite / Google Workspace, one needs to allow access for “less secure apps”:
https://support.google.com/accounts/answer/6010255?hl=en
For certificate checking related problems, you can always turn off the checking via the special parameter /novalidate-cert
Put this into the respective text field in the inbox settings.