This is what I've done:
1) I've verified that IMAP and IMAPS are enabled on the NAS and that they're using the default ports 143 and 993 (I mentioned port 110 because I assumed that the mail indicator applet was something like a simple pop3-checker, which use port 110, right ?)
2) I've forwarded port 993 to the Synology NAS, port 143 was already forwarded correctly.
Unfortunately these action didn't resolve the issue.
Then I edited the applet_refresh.php file like you suggested and this error message appears in the applet:
[quote:1ww8a1nz] m.grootehaar - Type: 2
Message: imap_open(): Couldn't open stream {<my.domain/imap/debug/readonly/novalidate-cert:143}
File: /volume1/web/epesicrm/modules/CRM/Roundcube/applet_refresh.php
Line=18
error backtrace:
[PHP core called function]
function called: handle_epesi_error(2, "imap_open(): Couldn't open stream {my.domain/imap/debug/readonly/novalidate-cert:143}", "/volume1/web/epesicrm/modules/CRM/Roundcube/applet_refresh.php", 18, Array (#81))
File: /volume1/web/epesicrm/modules/CRM/Roundcube/applet_refresh.php
line 18
function called: imap_open("{my.domain/imap/debug/readonly/novalidate-cert:143}", "correct username", "correct password", 1)
Notice: Unknown: Can't open mailbox {my.domain/imap/debug/readonly/novalidate-cert:143}: invalid remote specification (errflg=2) in Unknown on line 0
info - Type: 2
Message: imap_open(): Couldn't open stream {my.domain/imap/debug/readonly/novalidate-cert:143}
File: /volume1/web/epesicrm/modules/CRM/Roundcube/applet_refresh.php
Line=18
error backtrace:
[PHP core called function]
function called: handle_epesi_error(2, "imap_open(): Couldn't open stream {my.domain/imap/debug/readonly/novalidate-cert:143}", "/volume1/web/epesicrm/modules/CRM/Roundcube/applet_refresh.php", 18, Array (#81))
File: /volume1/web/epesicrm/modules/CRM/Roundcube/applet_refresh.php
line 18
function called: imap_open("{my.domain/imap/debug/readonly/novalidate-cert:143}", "correct username", "correct password", 1)
Notice: Unknown: Can't open mailbox {my.domain/imap/debug/readonly/novalidate-cert:143}: invalid remote specification (errflg=2) in Unknown on line 0 [/quote:1ww8a1nz]
I did some googling on the imap_open syntax and I edited the $mailbox line in applet_refresh.php to this:
$mailbox = imap_open("{localhost/debug/novalidate-cert:143}", "username", "password");
But it still return the same error message.
Epesi is running on the same synology NAS as the mailserver, so 'localhost' should work, right ? And since it doesn't work, doesn't that rule out any issues with port forwarding ?
FYI: on my home computer I can connect outlook to the synology NAS just fine, using the IMAP protocol on port 143.
I don't know what else to try. Do you ?