Re: [Dovecot] One Dovecot serving 2 domains - possible?
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@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@domain.org will not be confused with john@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=bd9e06c830a2118cf5fc1145...
-- Powered by Outblaze
On Wed, 2009-02-25 at 13:54 -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).
The above assert isn't from v1.1.11 and I had added some extra checks there since 1.1.7. Do you have the exact assert message from v1.1.11?
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).
Why do you use ~ instead of @? Dovecot makes things easier if you use @. But you can convert ~ to @ automatically:
auth_username_translation = ~@
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?
Where in filesystem do you want them? For example you could do:
mail_location = /var/mail/%d/%n
to have two domain directories and the username under them.
Hello,
i am using dovecot 1.1.7-r1
when i try to create a new folder in incoming with dot in name ist not working fully. when i try to create the folder domain.de, dovecot create domain (gray and not accessable) | ------> de (the de is also created as folder and is accessable)
any ideas why this happen ?
thanks for any hints
marko
!DSPAM:173,49a6f90f68526583516863!
Hi Timo
i visited the link, did like first example on page. remember, i use version 1.1.7 r1 , is this version supported ?
i get this on restarting dovecot
FPlugin listescape not found from directory /usr/lib64/dovecot/imap Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
marko
Timo Sirainen schrieb:
http://wiki.dovecot.org/Plugins/Listescape
!DSPAM:173,49a6ff7e68528199216981!
You have to download and compile it: http://dovecot.org/patches/1.1/listescape-plugin.c
Note that it requires that you have Dovecot sources downloaded and compiled. They also should be for the same version you're actually using.
On Thu, 2009-02-26 at 21:47 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo
i visited the link, did like first example on page. remember, i use version 1.1.7 r1 , is this version supported ?
i get this on restarting dovecot
FPlugin listescape not found from directory /usr/lib64/dovecot/imap Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
marko
Timo Sirainen schrieb:
http://wiki.dovecot.org/Plugins/Listescape
!DSPAM:173,49a6ff7e68528199216981!
Hi Timo, i use gentoo-linux, and installed dovecot via portage. how do i compile this donwloaded listescap.c ?
marko
Timo Sirainen schrieb:
You have to download and compile it: http://dovecot.org/patches/1.1/listescape-plugin.c
Note that it requires that you have Dovecot sources downloaded and compiled. They also should be for the same version you're actually using.
On Thu, 2009-02-26 at 21:47 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo
i visited the link, did like first example on page. remember, i use version 1.1.7 r1 , is this version supported ?
i get this on restarting dovecot
FPlugin listescape not found from directory /usr/lib64/dovecot/imap Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
marko
Timo Sirainen schrieb:
http://wiki.dovecot.org/Plugins/Listescape
!DSPAM:23,49a704a968521599510429!
!DSPAM:173,49a7088068522041369930!
No idea.
But actually there's also another possibility that doesn't involve using plugins. You could just not use Maildir++ layout by setting e.g.:
mail_location = maildir:~/Maildir:LAYOUT=fs
On Thu, 2009-02-26 at 22:26 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo, i use gentoo-linux, and installed dovecot via portage. how do i compile this donwloaded listescap.c ?
marko
Timo Sirainen schrieb:
You have to download and compile it: http://dovecot.org/patches/1.1/listescape-plugin.c
Note that it requires that you have Dovecot sources downloaded and compiled. They also should be for the same version you're actually using.
On Thu, 2009-02-26 at 21:47 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo
i visited the link, did like first example on page. remember, i use version 1.1.7 r1 , is this version supported ?
i get this on restarting dovecot
FPlugin listescape not found from directory /usr/lib64/dovecot/imap Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
marko
Timo Sirainen schrieb:
http://wiki.dovecot.org/Plugins/Listescape
!DSPAM:23,49a704a968521599510429!
!DSPAM:173,49a7088068522041369930!
Timo,
i use dovecot with postfix mysql virtual user / domains
mail_location = maildir:/home/mail/%d/%n
Timo Sirainen schrieb:
No idea.
But actually there's also another possibility that doesn't involve using plugins. You could just not use Maildir++ layout by setting e.g.:
mail_location = maildir:~/Maildir:LAYOUT=fs
On Thu, 2009-02-26 at 22:26 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo, i use gentoo-linux, and installed dovecot via portage. how do i compile this donwloaded listescap.c ?
marko
Timo Sirainen schrieb:
You have to download and compile it: http://dovecot.org/patches/1.1/listescape-plugin.c
Note that it requires that you have Dovecot sources downloaded and compiled. They also should be for the same version you're actually using.
On Thu, 2009-02-26 at 21:47 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo
i visited the link, did like first example on page. remember, i use version 1.1.7 r1 , is this version supported ?
i get this on restarting dovecot
FPlugin listescape not found from directory /usr/lib64/dovecot/imap Error: imap dump-capability process returned 89 Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
marko
Timo Sirainen schrieb:
http://wiki.dovecot.org/Plugins/Listescape
!DSPAM:173,49a7088068522041369930!
!DSPAM:23,49a7098a68529694517793!
!DSPAM:173,49a70a0a68529867283480!
Timo Sirainen wrote:
No idea.
But actually there's also another possibility that doesn't involve using plugins. You could just not use Maildir++ layout by setting e.g.:
mail_location = maildir:~/Maildir:LAYOUT=fs
On Thu, 2009-02-26 at 22:26 +0100, Marko Weber | Salondigital.de wrote:
Hi Timo, i use gentoo-linux, and installed dovecot via portage. how do i compile this donwloaded listescap.c ?
You can emerge Dovecot with "noclean" set so that Portage won't remove all of the good stuff when it's done:
# FEATURES="noclean" emerge -v dovecot
Then you should be able to find the sources in e.g.,
/var/tmp/portage/net-mail/dovecot-1.1.7-r1/work/dovecot-1.1.7
Slightly unrelated: is the list of options to mail_location documented anywhere? There are a few mentions of LAYOUT=fs and CONTROL=wherever in the wiki, but I just checked mailbox-list.c and most of them were new to me.
participants (4)
-
k bah
-
Marko Weber | Salondigital.de
-
Michael Orlitzky
-
Timo Sirainen