Re: [Dovecot] 1 Dovecot proxy to 2 real IMAP servers

2009-04-30 Thread Timo Sirainen
On Thu, 2009-04-30 at 10:09 +0400, Proskurin Kirill wrote:
> >> I want to add one Dovecot Proxy server and make him understand based on 
> >> user domain - were it need to transfer a connection.
> > 
> > Where would you keep the domain -> IP mapping? Dovecot needs that
> > somewhere.
> 
> Anywere if need. I can add it to LDAP or I can make simple text file.

Well, if you can put it to LDAP it should be easy. So for example lets
say you have a proxyHost LDAP field for each user containing the
destination IP, just add to dovecot-ldap.conf:

user_attrs = ..., proxyHost=host, =y=proxy

One other alternative would be to use a checkpassword script.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] 1 Dovecot proxy to 2 real IMAP servers

2009-04-29 Thread Proskurin Kirill

Timo Sirainen wrote:

On Fri, 2009-04-24 at 12:40 +0400, Proskurin Kirill wrote:

Hello all.

I have 2 Dovecot IMAP servers with different mailboxes. What serves 
different email domains.


I want to add one Dovecot Proxy server and make him understand based on 
user domain - were it need to transfer a connection.


Where would you keep the domain -> IP mapping? Dovecot needs that
somewhere.


Anywere if need. I can add it to LDAP or I can make simple text file.


With SQL auth it should be easy.


Well I not use SQL for Auth.

--
Best regards,
Proskurin Kirill


Re: [Dovecot] 1 Dovecot proxy to 2 real IMAP servers

2009-04-29 Thread Timo Sirainen
On Fri, 2009-04-24 at 12:40 +0400, Proskurin Kirill wrote:
> Hello all.
> 
> I have 2 Dovecot IMAP servers with different mailboxes. What serves 
> different email domains.
> 
> I want to add one Dovecot Proxy server and make him understand based on 
> user domain - were it need to transfer a connection.

Where would you keep the domain -> IP mapping? Dovecot needs that
somewhere.

> I use LDAP auth based on "mail" attribute.

Then the best location for the proxy host settings would be in LDAP, but
you might need to modify your schema.

> P.S. Proxy documentation at dovecot.org not help at all and seems to not 
> complited. :-(

With SQL auth it should be easy.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] 1 Dovecot proxy to 2 real IMAP servers

2009-04-25 Thread Mark Costlow
The "perdition" program will do exactly what you need:

http://www.vergenet.net/linux/perdition/

Mark

On Fri, Apr 24, 2009 at 12:40:36PM +0400, Proskurin Kirill wrote:
> Hello all.
> 
> I have 2 Dovecot IMAP servers with different mailboxes. What serves 
> different email domains.
> 
> I want to add one Dovecot Proxy server and make him understand based on 
> user domain - were it need to transfer a connection.
> I use LDAP auth based on "mail" attribute.
> 
> It is possible?
> 
> P.S. Proxy documentation at dovecot.org not help at all and seems to not 
> complited. :-(
> 
> -- 
> Best regards,
> Proskurin Kirill

-- 
Mark Costlow| Southwest Cyberport | Fax:   +1-505-232-7975
che...@swcp.com | Web:   www.swcp.com | Voice: +1-505-232-7992

abq-strange.com -- Interesting photos taken in Albuquerque, NM
   Last post: Fiery Foods 2009 - 2009-03-04 10:23:11


[Dovecot] 1 Dovecot proxy to 2 real IMAP servers

2009-04-24 Thread Proskurin Kirill

Hello all.

I have 2 Dovecot IMAP servers with different mailboxes. What serves 
different email domains.


I want to add one Dovecot Proxy server and make him understand based on 
user domain - were it need to transfer a connection.

I use LDAP auth based on "mail" attribute.

It is possible?

P.S. Proxy documentation at dovecot.org not help at all and seems to not 
complited. :-(


--
Best regards,
Proskurin Kirill