Re: [Dovecot] CDB Authentication database

2010-04-29 Thread Juergen Daubert
On Fri, Apr 30, 2010 at 12:16:14AM +0200, Luca Corti wrote: > On Thu, 2010-04-29 at 20:36 +0300, Timo Sirainen wrote: > > Hi Timo, > > > I guess you saw http://wiki.dovecot.org/Design/AuthProcess? It's > > probably out of date though.. > > Yes, I'd target 2.0, since that's what I will be using a

Re: [Dovecot] Panic: file mail-index-sync-ext.c: line 212 (sync_ext_reorder): assertion failed: (offset < (uint16_t)-1)

2010-04-29 Thread Sandro Tosi
Hello Stan, thanks for your reply. On 04/28/2010 09:16 AM, Stan Hoeppner wrote: Dennis Guhl put forth on 4/28/2010 1:59 AM: On Tue, Apr 27, 2010 at 11:36:41AM +0200, Sandro Tosi wrote: Hello, we are using dovecot v1.2.10 on debian stable (lenny) systems with This is not dire

Re: [Dovecot] Question about auth multiple configuration

2010-04-29 Thread Fabrice MATHIEU
Hello, Okay now all works as we which. Two dovecot instance are running : one for imaps with client crt required, and one for local imap only (webmail and client socket for sasl) I have just make two new directory for base_dir and login_dir. (/var/run/dovecot_secure/ && /var/run/dove

Re: [Dovecot] CDB Authentication database

2010-04-29 Thread Luca Corti
On Thu, 2010-04-29 at 20:36 +0300, Timo Sirainen wrote: Hi Timo, > I guess you saw http://wiki.dovecot.org/Design/AuthProcess? It's > probably out of date though.. Yes, I'd target 2.0, since that's what I will be using anyway. Is the documentation still relevant? > What kind of a database is CD

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Monika Janek
Genius! I did the 'any-cert' AS 'ssl' and put the '993' AS port and it worked. I'll do the ssl_ca_file as well. I thought that I had tried the 'yes' as 'ssl' but it works now. Thanks so much for your help Timo. I really appreciate it. :) I love dovecot! Timo Sirainen wrote: Looks like MySQL t

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Timo Sirainen
Looks like MySQL treats ssl as a reserved word. Use 'yes' as 'ssl'. On Thu, 2010-04-29 at 14:51 -0400, Monika Janek wrote: > This was my sql query: > > password_query = SELECT NULL AS password, host, destuser, 'yes' AS > ssl,'Y' AS nopassword, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS proxy FROM >

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Monika Janek
This was my sql query: password_query = SELECT NULL AS password, host, destuser, 'yes' AS ssl,'Y' AS nopassword, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS proxy FROM proxy WHERE user = '%u' It's obviously something I'm doing! But I'll try the ssl_ca_file route too. Timo Sirainen wrote: On Thu,

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 14:43 -0400, Monika Janek wrote: > I tried the 'Y' as starttls and I receive this: > > imap-login: proxy: Received invalid SSL certificate > > And the authentication fails. Could it be because I've signed my own certs? Yes. Either put the cert into ssl_ca_file or use 'any

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Monika Janek
Hi Timo! I tried the 'Y' as starttls and I receive this: imap-login: proxy: Received invalid SSL certificate And the authentication fails. Could it be because I've signed my own certs? Whenever I try the 'yes' as ssl in the sql query, I get a syntax error message: Password query failed: You

Re: [Dovecot] Question about mbox_snarf and dovecot2.0

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 14:00 -0400, Jonathan Siegle wrote: > > - open INBOX from that namespace and keep it open > > Ok sync init would open /var/mail/%u Well, you would simply call mailbox_open(ns->list, "INBOX"). Dovecot internally then figures out that INBOX is /var/mail/%u based on the namesp

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 13:44 -0400, Monika Janek wrote: > password_query = SELECT NULL AS password, host, destuser, 'Y' AS > nopassword, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS proxy FROM proxy > WHERE user = '%u' > > I take this as to just check the SQL for the existence of the username > then

Re: [Dovecot] What causes dovecot to rebuild dovecot-uidlist?

2010-04-29 Thread Timo Sirainen
On Fri, 2010-04-23 at 17:26 -0500, Pat wrote: > Are there any other sections of the code that do sanity checks on > dovecot-uidlist (for Maildir type storage)? I can't remember.. > And optionally do you agree that maildir_uidlist_set_corrupted is the best > place to watch to see if I have mangle

Re: [Dovecot] Quota maildirsize and dbox

2010-04-29 Thread Timo Sirainen
On Sun, 2010-04-25 at 14:32 +0300, luben karavelov wrote: > Is there any reason that maildirsize Quota store should not work in dbox > folders or any other folder based mailbox stores? It's slow at least, because it needs to stat() all files every time maildirsize gets rebuilt (and it gets rebui

Re: [Dovecot] Assertion failed in mail-search-build.c

2010-04-29 Thread Timo Sirainen
On Mon, 2010-04-26 at 10:15 -0700, Mark Moseley wrote: > Apr 26 12:58:34 imap(m...@box): Panic: file mail-search-build.c: line > 59 (mail_search_build_key_int): assertion failed: (sarg->value.subargs > != NULL) Thanks, fixed: http://hg.dovecot.org/dovecot-2.0/rev/888ac9037642 signature.asc Desc

Re: [Dovecot] performance of maildir on ocfs2

2010-04-29 Thread Timo Sirainen
On Mon, 2010-04-26 at 15:51 +0300, karavelov wrote: > 3. My understanding is that OCFS2 uses a global lock for move/rename. > As you know, Maildir format uses a lot of such operations. I think > that > dbox format (dovecot native) will be better choice, because there are > no file moves/renames. I

Re: [Dovecot] Question about mbox_snarf and dovecot2.0

2010-04-29 Thread Jonathan Siegle
On Apr 29, 2010, at 1:27 PM, Timo Sirainen wrote: > On Thu, 2010-04-29 at 11:11 -0400, Jonathan Siegle wrote: >>> namespace { >>> location = mbox:~/mail >>> .. >>> } >>> namespace { >>> prefix = ~~MboxSnarf~~/ # or whatever unique string you can think of >>> location = mbox:~/mail:INBOX=/var/mail

Re: [Dovecot] pop3-login: auth failure -- due to number as first character in login name

2010-04-29 Thread Timo Sirainen
On Tue, 2010-04-27 at 16:44 -0700, dovecot mail list account wrote: > Seem to have found a error in version 1.2.6 regarding usernames having a > number as the first character. Customers with a number as the first character > in thier user name can not login via pop3 clients. However they can logi

Re: [Dovecot] Again: Occasional problem with POP3-Download

2010-04-29 Thread Timo Sirainen
On Wed, 2010-04-28 at 16:01 +0200, Andre Tann wrote: > I can now reproduce the problem. When filling up a mailbox with postfix' > smtp-source with dozens of identical mails, then it is never possible > for me to fetch one single mail out of the mailbox. The process of > fetching mail via POP3 alwa

Re: [Dovecot] Mbox corruption - Inbox beginning with 'FFrom' or 'FrFrom'

2010-04-29 Thread Timo Sirainen
On Wed, 2010-04-28 at 10:46 -0400, Erik Kratzenberg wrote: > > > -Dovecot.log : Mar 29 11:00:06 Error: POP3(user_login): > > >Couldn't init INBOX: Mailbox isn't a valid mbox > > > -The mailbox start with either 'FFrom or 'FrFrom' > > > We're having the same issues on our servers

Re: [Dovecot] Problems with Mailbox is in inconsistent state, please relogin.

2010-04-29 Thread Daniel Grilo
Thank you for your answer Timo! I've also upgraded to latest stable version of dovecot and I don't get these inconsistent errors now..anyway I will change the procmail directive. Best Regards Daniel -- Daniel Grilo Partner of Grupo PDM Av. Conde Valbom 30, 3o 1050-068 Lisboa (Portugal) web

Re: [Dovecot] Maildircrypt

2010-04-29 Thread Timo Sirainen
On Wed, 2010-04-28 at 22:11 +0200, brainstorm wrote: > Hi guys, I was just wondering if this idea makes sense overall or if > there are major impediments (indexing performance ?): > > http://blogs.nopcode.org/brainstorm/2010/04/28/maildircrypt/ Use v2.0's zlib plugin as an example. Encryption/dec

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Monika Janek
Hi Timo, Thanks for getting back to me! Currently I'm using SQL to check the proxy but the authentication gets passed on to the internal mail server where it authenticates with LDAP. This is my SQL query on the external mail host: password_query = SELECT NULL AS password, host, destuser, 'Y'

Re: [Dovecot] Question about auth multiple configuration

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 19:31 +0200, Fabrice MATHIEU wrote: > I will try to make two dovecot configuration but can this make problems to > make concurrent access (process) to the maildir ? No problems with concurrent access. The processes are already independently accessing maildir. But see http:/

Re: [Dovecot] Problems with Mailbox is in inconsistent state, please relogin.

2010-04-29 Thread Timo Sirainen
On Wed, 2010-04-28 at 22:06 +0100, Daniel Machado Grilo wrote: > Maildir /cluster/mail/mailboxes/rcoelho sync: UID inserted in the > middle > of mailbox (192736 > 192720, file = msg.LDW0C) http://wiki.dovecot.org/MailboxFormat/Maildir#Procmail_Problems signature.asc Description: This is a dig

Re: [Dovecot] CDB Authentication database

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 15:17 +0200, Luca Corti wrote: > Hello, > > I'd be interested in seeing a CDB based backend for the userdb/passdb > lookups. > > Is anyone working on this? Not that I'm aware of. > Is there any documentation (other than the > wiki Design section and the code itself) on im

Re: [Dovecot] Panic: file mail-index-sync-ext.c: line 212 (sync_ext_reorder): assertion failed: (offset < (uint16_t)-1)

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 16:27 +0200, Sandro Tosi wrote: > > 2010-04-28 13:22:17 POP3(): Panic: file > mail-index-sync-ext.c: > line 212 (sync_ext_reorder): assertion failed: (offset < > (uint16_t)-1) Interesting. When this happens again, could you send the user's dovecot.index and dovecot.index.l

Re: [Dovecot] Question about auth multiple configuration

2010-04-29 Thread Fabrice MATHIEU
Helo, Thank you for your answer. I will wait for v2.0. I will try to make two dovecot configuration but can this make problems to make concurrent access (process) to the maildir ? Thank you. Best regards, > > > That's normal. But 127.0.0.1 client(network) is considered by dovecot > > as

Re: [Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 11:09 -0400, Monika Janek wrote: > I > read the addition to the documentation about dovecot proxy but I'm not > sure where to add these variables: .. > ssl=yes: Use SSL and require a valid verified remote certificate. Into your passdb's extra fields. What passdb do

Re: [Dovecot] Question about mbox_snarf and dovecot2.0

2010-04-29 Thread Timo Sirainen
On Thu, 2010-04-29 at 11:11 -0400, Jonathan Siegle wrote: > > namespace { > > location = mbox:~/mail > > .. > > } > > namespace { > > prefix = ~~MboxSnarf~~/ # or whatever unique string you can think of > > location = mbox:~/mail:INBOX=/var/mail/%u > > list = no > > hidden = yes > > } > > plu

Re: [Dovecot] Question about auth multiple configuration

2010-04-29 Thread Timo Sirainen
On Wed, 2010-04-28 at 19:12 +0200, Fabrice MATHIEU wrote: > That's normal. But 127.0.0.1 client(network) is considered by dovecot > as secure, so won't the auth possible without certificate ? It's considered secure against man-in-the-middle attacks, but requiring SSL cert is more about authentica

Re: [Dovecot] Question about auth multiple configuration

2010-04-29 Thread Fabrice MATHIEU
Hello, I have tested "login_trusted_networks = 127.0.0.1". But it still refuse to authenticated without any client certificate. dovecot: imap-login: Disconnected (cert required, client didn't start TLS): method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Thank you. Best regards,

Re: [Dovecot] Dovecot headers at start of text returned to KMail

2010-04-29 Thread Barry Scott
On Thursday 29 April 2010 15:33:02 Mike Abbott wrote: > > To recover from this error I think I need to: > > > > 1. service dovecot stop > > 2. rename all the mail files to have the S= match the size of the file > > on disk > > > 3. remove all the dovecot.* files > > 4. service dovecot start

Re: [Dovecot] Question about mbox_snarf and dovecot2.0

2010-04-29 Thread Jonathan Siegle
On Feb 2, 2010, at 12:47 PM, Timo Sirainen wrote: > On Tue, 2010-02-02 at 12:33 -0500, Jonathan Siegle wrote: >> I verified that not using the mbox_snarf works just fine. I have no >> namespaces enabled. > > The code contains: > > //FIXME:storage->set->mail_full_filesystem_access = TRUE; >

[Dovecot] Question about dovecot imap proxy

2010-04-29 Thread Monika Janek
Hi everyone! I have dovecot (1.2.11) on one our external mail servers acting as a proxy. The client (ifor now, my iphone) connects fine via ssl to the external mailserver but I can't seem to get a secure connection now to the internal destination imap server (between external mail server and i

Re: [Dovecot] How can I add change_password

2010-04-29 Thread Fabrice MATHIEU
Hello, I don't use such system, please see this. It may help you. You have got many plugins to change password with suirrelmail. Two are for system password (Change_passwd) or like (Change Password). The last one use poppassd dameon which listen on port 106. It seems that it don't works

Re: [Dovecot] Panic: file mail-index-sync-ext.c: line 212 (sync_ext_reorder): assertion failed: (offset < (uint16_t)-1)

2010-04-29 Thread Sandro Tosi
Hi Stan, thanks for your email. We are using Maildir format on NFS, not mbox (and we followed the guidelines for tuning Maildir on NFS as reported in dovecot wiki, but thanks for mention them ;) ). Regards, Sandro From: dovecot-bounces+sandro.tosi=regist

[Dovecot] How can I add change_password

2010-04-29 Thread Yavuz Maşlak
Hello I use dovecot, postfix, mysql and squirrelmail as a mail server. it works well. Meanwhile I am novice at postfix. As you know, there is a change_password plugin on squirrelmail. I wish to add change_password plugin on squirrelmail. I couldn't find how to integrate postfix and change_passwo

Re: [Dovecot] Dovecot headers at start of text returned to KMail

2010-04-29 Thread Mike Abbott
> To recover from this error I think I need to: > > 1. service dovecot stop > 2. rename all the mail files to have the S= match the size of the file on > disk > 3. remove all the dovecot.* files > 4. service dovecot start > > Is this correct? I believe so but I'm not an authority on this p

Re: [Dovecot] Panic: file mail-index-sync-ext.c: line 212 (sync_ext_reorder): assertion failed: (offset < (uint16_t)-1)

2010-04-29 Thread Sandro Tosi
Hi Dennis, thanks for the reply I've upgraded to 1.2.11 but the problem is still there: here is a fresh crash 2010-04-28 13:22:17 POP3(): Panic: file mail-index-sync-ext.c: line 212 (sync_ext_reorder): assertion failed: (offset < (uint16_t)-1) 2010-04-28 13:22:17 POP3(): Error: Raw backtrace: p

Re: [Dovecot] Dovecot headers at start of text returned to KMail

2010-04-29 Thread Barry Scott
On Thursday 29 April 2010 13:26:25 Mike Abbott wrote: > > 1272011889.M384349P30156.f12barry.office.onelan.co.uk,S=6494,W=6606:2,S > > The size of this file should be 6494 bytes (S=6494) but in your attachment it > is 6519 bytes. Did something insert a header into the file after dovecot > receiv

[Dovecot] CDB Authentication database

2010-04-29 Thread Luca Corti
Hello, I'd be interested in seeing a CDB based backend for the userdb/passdb lookups. Is anyone working on this? Is there any documentation (other than the wiki Design section and the code itself) on implementing database backends? thanks Luca

Re: [Dovecot] Dovecot headers at start of text returned to KMail

2010-04-29 Thread Mike Abbott
> 1272011889.M384349P30156.f12barry.office.onelan.co.uk,S=6494,W=6606:2,S The size of this file should be 6494 bytes (S=6494) but in your attachment it is 6519 bytes. Did something insert a header into the file after dovecot received it? Perhaps this one, which (with a CR added) is 25 bytes, t

[Dovecot] Dovecot headers at start of text returned to KMail

2010-04-29 Thread Barry Scott
The attachment show Kmail (kdepim-4.4.2-1.fc12.x86_64) accessing an email from dovecot over imap. From the wireshark-imap-trace.txt you can see at line 77 that the headers do not end cleanly "X-)". And at line 84 there is text from the headers that is not part of the body "-Spambayes-Trained: ham"

Re: [Dovecot] How can I integrate change_password plugin, dovecot and postfix

2010-04-29 Thread Charles Marcus
On 2010-04-29 5:33 AM, Yavuz Maşlak wrote: > I don't use local system user. Users and passwords store in mysql database. > I 'm using pop3 and imap4. Then if postfix is using this same mysql database for its sasl_auth backend, then no worries, just change the password in the backend and your done.

Re: [Dovecot] How can I integrate change_password plugin, dovecot and postfix

2010-04-29 Thread Yavuz Maşlak
Hello I don't use local system user. Users and passwords store in mysql database. I 'm using pop3 and imap4. Could you give me an example about that ? Thanks Hello, Does your users must manage their mail via squirelmail ? Or they get access to dovecot and postfix with any agent like Thund

Re: [Dovecot] How can I integrate change_password plugin, dovecot and postfix

2010-04-29 Thread Fabrice MATHIEU
Hello, Does your users must manage their mail via squirelmail ? Or they get access to dovecot and postfix with any agent like Thunderbird ? If access is just granted via webmail (suirelmail) then I suppose all user information is managed by dovecot. So postfix don't use or require pas

Re: [Dovecot] IMAP IDLE, Virtual mailboxes

2010-04-29 Thread Matthijs Kooijman
Hi Timo, Patrick, > > Virtual plugin does already work like that. Although there's a bug > > where messages don't get removed from mailbox always: > > Oh, I see. I'll give it another try then, I believe I tried this, but > never got notified of new mails in the virtual mailbox through the IMAP >