Hi folks,
I'm trying to use Perdition + ImapProxy for a webmail system (I need both of them
because Perdition supports multiple backend servers, while ImapProxy supports connection
caching).
The idea is, when one logs in to IMAP, my webmail will send a login request like this to
ImapProxy:
LOGIN foo@imap.host.com:port fooPassword
ImapProxy will send it to Perdition (running on the same host). Using the regexp map
library, Perdition will forward this request to imap.host.com:port, logging in as
"foo" with the given password.
So far so good. Now the problem is that some folks use SSL while others don't. The
line Webmail ---> ImapProxy should always be plain, as well as the line ImapProxy
---> Perdition; however, from Perdition to the backend server the line should be
encrypted.
In short, my question is that this can be achieved using the regex maps, say, for
instance, that the Webmail will append a "!" character to the user:
LOGIN foo@imap.host.com:port! fooPassword
and in this case, using the regex map, I would like to indicate to Perdition that it
should use SSL for outgoing socket. Is this possible?
Thank you,
-Mihai
--
www.xuheki.com
Perl/AJAX Webmail