Re: Plain or SSL depending on regexp

Simon Horman <[email protected]>
Newsgroups gmane.mail.perdition.user
Message-ID <[email protected]>
On Tue, Feb 03, 2009 at 02:12:40PM +0200, Mihai Bazon wrote:
> 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 [email protected]: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 [email protected]: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?

Hi Mihai,

the short answer is no, perdition is not able to switch between
SSL and plain-text based on the database lookup. The slightly
longer answer is that it shouldn't be too difficult to modify
perdition to do this.

-- 
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en

______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.