Re: [Dovecot] proxy_maybe regex

2010-02-01 Thread Brandon Davidson
David, > -Original Message- > From: dovecot-bounces+brandond=uoregon@dovecot.org [mailto:dovecot- > > There are ways of doing this in mysql, with heartbeats etc (which we've > discussed before), but then I'm back to mysql again. Maybe mysql just > has to be the way to go in this case.

Re: [Dovecot] proxy_maybe regex

2010-02-01 Thread David Halik
On 2/1/2010 5:47 PM, Timo Sirainen wrote: On 2.2.2010, at 0.39, David Halik wrote: Back to dovecot, actually sqlite might work, because then I don't need a database backend, just a local sqlite regex. The question then being, how would dovecot handle multiple servers? For example: (if '%

Re: [Dovecot] proxy_maybe regex

2010-02-01 Thread Timo Sirainen
On 2.2.2010, at 0.39, David Halik wrote: > Back to dovecot, actually sqlite might work, because then I don't need a > database backend, just a local sqlite regex. The question then being, how > would dovecot handle multiple servers? For example: > > (if '%u' regexp '^[a-d]' then '192.168.xxx.1

Re: [Dovecot] proxy_maybe regex

2010-02-01 Thread David Halik
On 02/01/2010 03:34 PM, Timo Sirainen wrote: On 1.2.2010, at 22.33, Timo Sirainen wrote: You can use SQLite. You don't even need an actual database. Something like (completely out of my head, no idea how to do it in reality): password_query = select \ (if '%u' regexp '^[a-d]' then '192

Re: [Dovecot] proxy_maybe regex

2010-02-01 Thread Timo Sirainen
On 1.2.2010, at 22.33, Timo Sirainen wrote: > You can use SQLite. You don't even need an actual database. Something like > (completely out of my head, no idea how to do it in reality): > > password_query = select \ > (if '%u' regexp '^[a-d]' then '192.168.xxx.1' else \ > if '%u' regexp '^[e-k]

Re: [Dovecot] proxy_maybe regex

2010-02-01 Thread Timo Sirainen
On 1.2.2010, at 22.17, David Halik wrote: > Does anyone know if dovecot support regex lookups for proxy/proxy_maybe, > rather than mysql/ldap etc? proxy and proxy_maybe have host name as value, no regex or anything like that. > username:host > ^[a-d]: 192.168.xxx.1 > ^[e-k]: 192.168.xxx.2 > >

[Dovecot] proxy_maybe regex

2010-02-01 Thread David Halik
Does anyone know if dovecot support regex lookups for proxy/proxy_maybe, rather than mysql/ldap etc? I've been comparing it with perdition to see which one might be better for us to do layer7 username switching. Perdition supports the ability to not have any auth/db looks, but rather just