I'm talking about Dovecot 1.0.x, since 1.1.x showed some problems on some of my servers. -- Is it possible to have Dovecot on one machine serving two different domains? How can I set the mailboxes root to one domain to /dir1/ and to the other domain to /dir2/ ? I want all mailboxes from one domain to reside on a different mailbox root. I use Dovecot LDA. 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) thanks in advance Scrublade Wipers New, Heavy Duty, wiper design to remove bugs and road slime. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=2b9f0c9f1afcc5e7181028e148bfb5a0 -- Powered by Outblaze
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?> 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?> 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090221/8b718f9c/attachment-0002.bin>
> 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
> ----- Original Message ----- > From: "Timo Sirainen" <tss at iki.fi> > To: "k bah" <kbah at linuxmail.org> > Cc: dovecot at dovecot.org > Subject: Re: [Dovecot] One Dovecot serving 2 domains - possible? > Date: Thu, 26 Feb 2009 15:14:32 -0500 > > > 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?root at server:~/dovecot-1.1.11/src/lib# grep -n assert istream-tee.c 38: i_assert(tstream->istream.skip + old_used <= size); 85: i_assert(tee->input->v_offset <= tee->max_read_offset); 119: i_assert(last_high_offset <= input->v_offset + size); 142: i_assert(stream->buffer == data); 144: i_assert(ret > 0); root at server:~/dovecot-1.1.11/src/lib# The full log message: --- server dovecot: Panic: IMAP(john): file istream-tee.c: line 144 (i_stream_tee_read): assertion failed: (ret > 0) server dovecot: IMAP(john): Raw backtrace: imap [0x7f3a6ae67eb2] -> imap [0x7f3a6ae67f37] -> imap [0x7f3a6ae675e8] -> imap [0x7f3a6ae6e4ca] -> imap(i_stream_read+0x27) [0x7f3a6ae6c1f7] -> imap(i_stream_read_data+0x46) [0x7f3a6ae6c2d6] -> imap [0x7f3a6ae6050e] -> imap [0x7f3a6ae60a5e] -> imap(message_parser_parse_next_block+0x29) [0x7f3a6ae60669] -> imap(index_mail_cache_parse_continue+0x1f) [0x7f3a6ae2a7ef] -> imap(maildir_save_continue+0x55) [0x7f3a6ae0f6c5] -> imap(mail_storage_copy+0xe7) [0x7f3a6ae35327] -> imap(maildir_copy+0x75) [0x7f3a6ae0c035] -> /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so [0x7f3a6a43a463] -> imap(cmd_copy+0x200) [0x7f3a6adf1c60] -> imap [0x7f3a6adf6bdc] -> imap [0x7f3a6adf6c8d] -> imap [0x7f3a6adf72c5] -> imap(client_input+0x66) [0x7f3a6adf7796] -> imap(io_loop_handler_run+0xcb) [0x7f3a6ae6f4fb] -> imap(io_loop_run+0x18) [0x7f3a6ae6e8b8] -> imap(main+0x42d) [0x7f3a6adff6ad] -> /lib/libc.so.6(__libc_start_main+0xe6) [0x7f3a6a65c466] -> imap [0x7f3a6adf0ca9] server dovecot: child 924 (imap) killed with signal 6 server dovecot: child 553 (auth-worker) killed with signal 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 = ~@"username~domain.org" is the the format I chose for the uid field on my LDAP server. Yeah, I could forget about those variables and use this instead, thanks for the tip.> > > 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. > << signature.asc >>It's so obvious I feel kinda dumb =). It must be the stress that kept me from seeing it before! Thanks for your time!>Free Trial - ETF Trading Service Professional management of exchange traded fund (ETF) portfolio with buy/sell recommendations on semis SMH, bonds, ETF TLT, gold, SPY, QQQQ, DIA, OIH, autotrading available at major brokers. http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=3d70d4ea0e9cbc38748457af8d26231d -- Powered by Outblaze
> ----- Original Message ----- > From: "Timo Sirainen" <tss at iki.fi> > To: "k bah" <kbah at linuxmail.org> > Cc: dovecot at dovecot.org > Subject: Re: [Dovecot] One Dovecot serving 2 domains - possible? > Date: Fri, 27 Feb 2009 11:58:09 -0500 > > > On Feb 27, 2009, at 8:21 AM, k bah wrote: > > >> 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? > > > > root at server:~/dovecot-1.1.11/src/lib# grep -n assert istream-tee.c > > 38: i_assert(tstream->istream.skip + old_used <= size); > > 85: i_assert(tee->input->v_offset <= tee- >max_read_offset); > > 119: i_assert(last_high_offset <= input->v_offset + size); > > 142: i_assert(stream->buffer == data); > > 144: i_assert(ret > 0); > > root at server:~/dovecot-1.1.11/src/lib# > > Oh. Looks like I changed the code after v1.1.11 :) > > http://hg.dovecot.org/dovecot-1.1/rev/e1cac844aa1e > > Does that fix help with your crashes?Since it's a production server and I just started working for these people, I'll try to reproduce the previous error without affecting the users e-mail (since their server is now running 1.0.15). As soon as I do that I'm going to give you a feedback for sure, if the problem persists or not. The user who reported to me the error may not have the messages that were triggering the errors, so I can't guarantee that I'll be able to reproduce the error again. Thanks for the quick response!> > > server dovecot: child 553 (auth-worker) killed with signal 11 > > This is also interesting. A crashing imap process should have no > effect on auth-worker. Can you get a gdb backtrace from that?Ok, the same as above. thanks again!>-- Powered by Outblaze
Possibly Parallel Threads
- 2.0.beta4, Panic: stream doesn't support seeking backwards
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
- Implementation of editheaders in dovecot
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
- Crash in v1.2.3: istream.c: assertion failed on line 99