[Dovecot] One Dovecot serving 2 domains - possible?

k bah kbah at linuxmail.org
Wed Feb 25 18:54:09 EET 2009



> Subject: Re: [Dovecot] One Dovecot serving 2 domains - possible?
> Date: Sat, 21 Feb 2009 17:12:49 -0500
> 
> 
> On Sat, 2009-02-21 at 18:05 -0300, k bah wrote:
> > I'm talking about Dovecot 1.0.x, since 1.1.x showed some problems 
> > on some of my servers.
> 
> What problems?

 This:

 Feb 16 10:05:56 server dovecot: Panic: IMAP(user): file istream-tee.c: line 144 (i_stream_tee_read): assertion failed: (ret > 0)

 auth-worker died.
 That happened with Dovecot 1.1.4, 1.1.7 and 1.1.11, 1.1.7 was not with me, was with another user I found, on some mailing list. The problem occurred when copying or deleting messages, sometimes even viewing (Webmail). Since it's a production server, I compiled the latest 1.0.x and I'm using it. This particular server was running Ubuntu 8.04 (the default package is 1.0.x) and I upgraded to 8.10 (the default package is 1.1.x).

> 
> >  Is it possible to have Dovecot on one machine serving two different domains?
> 
> Set up how? Do you want to use user at domain style usernames, or do you
> want Dovecot to detect the domain based on the server's IP address?

 One dovecot server which receives mail to two domains and does not forward the mail anywhere, it's the final destination for the two of them.

 I already have usernames that are unique, by using Dovecot variables I have username~domain.org as the actual username/mailbox name.

 I want to have two mailbox roots, this way, even knowing that mailbox names are unique (john~domain.org != john~anotherdomain.org) and when authenticating (from what you wrote down here about passdb) john at domain.org will not be confused with john at anotherdomain.org, even so, I want all mailboxes from one domain to sit on a different mailbox root.
 
> 
> >  Is is possible to set a LDAP config to one domain and another 
> > LDAP config to the other (the auth part, I wan't users to reside 
> > on different bases on my LDAP tree, so search bases need to be 
> > different)
> 
> Yes. You can just create two passdb ldap {}s.

 Ok, so, I have 3 aspects to consider:

  a) When mail arrives
  b) When user logs in to check mail
  c) Where mailboxes are located


 a) Since I can make mailbox names unique with Dovecot variables (mailbox name is "susan~domain.org" which is different from susan~anotherdomain.org), when mail arrives, the mail message will be saved to the correct mailbox (even if I have, under the same mailbox root, two users with "susan" as the login, but from different domains).

 b) Since you said, on Dovecot 1.0.x, I can have two passdb ldap{}'s, when the user logs in, he/she will be redirect to the right mailbox, not the "other susan".

 c) Ok, the two above give me the possibility to have all mailboxes, from the two domains, under the same mailbox root, users will be unique no matter the scenario (mail arriving, user checking mail), BUT, I would like to keep them separated anyways, is that possible to force that?

>

 thanks!


=
Miata Convertible Tops
Buy manufacturer direct from gahh, leader in high-quality convertible tops using original materials and attachments. Custom orders and fast shipping.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=bd9e06c830a2118cf5fc1145cc422d8c


-- 
Powered by Outblaze


More information about the dovecot mailing list