The IMAP server and SMTP server in wssmail are actually relative to different hosts.
IMAP server when logging in is relative to the BBS server running the mod_webmail
backend module.
The SMTP server is relative to the web server running the frontend, i.e. the PHP application.
What complicates this further is that the SMTP server will attempt to upload sent mail copies to the IMAP server using the IMAP server path, but this path needs to be relative to the webmail server, not to the BBS server. Otherwise, it will fail.
One workaround is to use absolute hostnames/IPs for the IMAP server that can be resolved correctly by both servers. However, using localhost
will obviously never work in this scenario since they will refer to different hosts.
This is not necessarily a bug, though it is a limitation that should be well-documented.
You must be