Re: [Dovecot] Questions regarding dbox migration

2009-10-15 Thread Mikkel
Timo Sirainen skrev: On Wed, 2009-10-14 at 23:59 +0200, Mikkel wrote: In case of mdbox wouldn't you have the very same problem since larger files may be fragmented all over the disk just like many small files in a directory might? I guess this depends on filesystem. But the files would

[Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Paul Freeman
Hi, We're currently testing 1.2.x with a move from 1.1.x in mind however with the current 1.2 series we are encountering some serious problems. simply editing the main conf and restarting dovecot gives these errors seemingly randomly: (some previous posts indicated this might be todo with

[Dovecot] FS Quota broken for delivering BIG message

2009-10-15 Thread Kostik
Hi everybody. I have Linux file system quota for users and enabled fs quota and quota plugin for LDA. My test user is already deep over quoted: --- Filesystemblocks quota limit nfse:/export 23768* 10240 10240 --- 1. If I tries to deliver _short_ message to user mbox - quota works:

[Dovecot] MailDIR and expire plugin

2009-10-15 Thread Jerry
All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting: expire = Trash 7 Spam 30 expire_dict = proxy::expire Is that correct for MailDIR style mailboxes? It doesn't appear correct;

Re: [Dovecot] multiple quota roots complains

2009-10-15 Thread Kostik
Hello. I fix this issue by manually set mount option to user home: --- quota2 = fs:fs quota:group:mount=%h --- From here: http://wiki.dovecot.org/Quota/FS --- mount=path: Report quota from given path. Default is to use the path for the mail root directory. --- But by default it is NULL.

Re: [Dovecot] Two passwords: One for Dovecot IMAP and One for Dovecot SASL? Is it possible?

2009-10-15 Thread Geert Hendrickx
On Wed, Oct 14, 2009 at 03:18:12PM -0400, Art Gray - Razorpoint wrote: Greetings, Can Dovecot can handle separate authentication for receiving mail (IMAPS) and sending mail (SMTPS)? In the past, we used Dovecot IMAP for the receiving part and Cyrus SASL for the sending part. This allowed

[Dovecot] Expire issue

2009-10-15 Thread Emmanuel Gonzalez
Hello guys, I'm trying to configure de expire plug in, all the configuration seems to be right but when I launch # /opt/dovecot/sbin/dovecot --exec-mail ext /opt/dovecot/libexec/dovecot/expire-tool --test Error: userdb(u...@mydomain.it) didn't return uid Info: User lookup failed:

Re: [Dovecot] Two passwords: One for Dovecot IMAP and One for Dovecot SASL? Is it possible?

2009-10-15 Thread Kirill Miazine
* Art Gray - Razorpoint [2009-10-14 15:18]: Greetings, Can Dovecot can handle separate authentication for receiving mail (IMAPS) and sending mail (SMTPS)? In the past, we used Dovecot IMAP for the receiving part and Cyrus SASL for the sending part. This allowed us to use two passwords with

Re: [Dovecot] Autocreate plugin for some domains

2009-10-15 Thread Jose Luis Marin Perez
Dear Timo, I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows: #!/bin/bash DOMAIN=`echo $VPOPUSER|sed s/^.*@//` if [ $DOMAIN = operaciones.qnet.com.pe ]; then export USERDB_AUTOCREATE=INBOX.Spam export

Re: [Dovecot] Dovecot deliver with AD LDAP userdb

2009-10-15 Thread mschaub
My question is this: is there something wrong with my configuration or can Dovecot only query certain fields in the user_attr string? Just as a clarification, I mean to ask if Dovecot can only query certain fields in the user_filter string. Thanks, ~ Mark -- This message has been scanned

[Dovecot] Missing folders

2009-10-15 Thread John Moorhouse
I've recently had a oops with the system I was running dovecot on so have had to move it to a new machine, I've been able to retrieve the mbox files from the old machine, built the new machine and over wrote the new mbox files with the old one in maildir, connecting to the server via imap

[Dovecot] Deliver - can't connect to .../auth-master

2009-10-15 Thread iain
Dovecot version 1.1.11 Hi all, I'm having real trouble getting Getmail, which is configured to pick up mail from my ISPs mailhost, to put the mail in our local Maildirs, through Deliver. We're using virtual users so, if I am understanding correctly, Deliver needs to fetch this information from

Re: [Dovecot] Dovecot deliver with AD LDAP userdb

2009-10-15 Thread Timo Sirainen
On Wed, 2009-10-14 at 16:00 -0400, Mark Schaub wrote: user_filter = ((objectclass=person)(|(sAMAccountName=%n)(mail...@sau24.org)(othermailbox...@sau24.org))) My LDAP knowledge isn't that great, but does | accept more than one parameter? Try changing this to: user_filter =

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Timo Sirainen
On Wed, 2009-10-14 at 21:18 -0500, Peter Fraser wrote: userdb: driver: static args: uid=1002 gid=1002 home=/home/vmail/%u allow_all_users=yes This catches all userdb lookups. userdb: driver: passwd args: blocking=yes This is never used. You probably want to comment it

Re: [Dovecot] Autocreate plugin for some domains

2009-10-15 Thread Jose Luis Marin Perez
Dear Timo, I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows: #!/bin/bash DOMAIN=`echo $VPOPUSER|sed s/^.*@//` if [ $DOMAIN = operaciones.qnet.com.pe ]; then export USERDB_AUTOCREATE=INBOX.Spam export

Re: [Dovecot] pop3-login: Fatal: io_loop_handle_add: epoll_ctl(1, 5):

2009-10-15 Thread Brandon Davidson
I seem to have run into the same issue on two of our 12 Dovecot servers this morning: Oct 15 03:41:51 oh-popmap5p dovecot: dovecot: child 7529 (login) returned error 89 (Fatal failure) Oct 15 03:41:51 oh-popmap5p dovecot: dovecot: child 7532 (login) returned error 89 (Fatal failure) Oct 15

Re: [Dovecot] FS Quota broken for delivering BIG message

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 14:06 +0400, Kostik wrote: write_full(/var/virtual/home/I/I/koc/.temp.pigeon01.8822.64dfacc7e57d71b4) failed: Disk quota exceeded stat(/tmp/Dovecot Delivery Mail) failed: Disk quota exceeded from=, msgid=: save failed to INBOX: BUG: Unknown internal error I guess the

Re: [Dovecot] Deliver - can't connect to .../auth-master

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 15:42 +0100, i...@brightbooks.co.uk wrote: Deliver. We're using virtual users so, if I am understanding correctly, Deliver needs to fetch this information from /var/run/dovecot/auth-master. The trouble is that Deliver doesn't seem to have the correct privileges to do so.

Re: [Dovecot] Expire issue

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 15:50 +0200, Emmanuel Gonzalez wrote: Hello guys, I'm trying to configure de expire plug in, all the configuration seems to be right but when I launch # /opt/dovecot/sbin/dovecot --exec-mail ext /opt/dovecot/libexec/dovecot/expire-tool --test Error:

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
Ok I see, so can I get per-user quotas going and still use userdb static? or do I have to change to userdb ldap? On Thu, Oct 15, 2009 at 11:30 AM, Timo Sirainen t...@iki.fi wrote: On Wed, 2009-10-14 at 21:18 -0500, Peter Fraser wrote:   userdb:     driver: static     args: uid=1002 gid=1002

Re: [Dovecot] MailDIR and expire plugin

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote: All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting: expire = Trash 7 Spam 30 expire_dict = proxy::expire Is that correct

Re: [Dovecot] Per User Quotas

2009-10-15 Thread thedoghousemailcom
Hi Peter + Timo, I think the solution is the right order in dovecot.conf: userdb ldap should stand in front of userdb static. Greetings Timo Sirainen schrieb: On Wed, 2009-10-14 at 21:18 -0500, Peter Fraser wrote: userdb: driver: static args: uid=1002 gid=1002

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 10:06 +0100, Paul Freeman wrote: (some previous posts indicated this might be todo with 64bit file offsets so we've played around with disable-largefile and setting _FILE_OFFSET_BITS manually but without any success) If your OS is 64bit, you can't disable 64bit file

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 12:31 -0500, Peter Fraser wrote: Ok I see, so can I get per-user quotas going and still use userdb static? No. That means all users have the same static configuration. or do I have to change to userdb ldap? Yes. signature.asc Description: This is a digitally signed

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 19:36 +0200, thedoghousemailcom wrote: Hi Peter + Timo, I think the solution is the right order in dovecot.conf: userdb ldap should stand in front of userdb static. Well, if that's done then userdb static is used only when user isn't found from ldap. And I guess that

Re: [Dovecot] multiple quota roots complains

2009-10-15 Thread Timo Sirainen
On Tue, 2009-10-13 at 23:00 +0400, Kostik wrote: Hello. Actually it is a problem for me. Introduction: If dovecot LDA save failed to mbox (not enough disk space, for example), it does not do rollback. Then my mailbox was corrupted. Last message is dropped in the middle of headers(body,

Re: [Dovecot] multiple quota roots complains

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 13:56 -0400, Timo Sirainen wrote: On Tue, 2009-10-13 at 23:00 +0400, Kostik wrote: Hello. Actually it is a problem for me. Introduction: If dovecot LDA save failed to mbox (not enough disk space, for example), it does not do rollback. Then my mailbox was

Re: [Dovecot] Questions regarding dbox migration

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 10:55 +0200, Mikkel wrote: In any case if there are expunged messages, files containing them would be recreated (nightly or something). That'll unfragment the files. It would be nice if this recreation interval (nightly, weekly, monthly?) was made tunable. It's

Re: [Dovecot] MailDIR and expire plugin

2009-10-15 Thread Jerry
On Thu, 15 Oct 2009 13:33:01 -0400 Timo Sirainen t...@iki.fi wrote: On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote: All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
OK this is what I now have. In dovecot.conf I put: userdb ldap { args = /usr/local/etc/dovecot-ldap.conf } In dovecot-ldap.conf: hosts = 192.168.1.97 base = dc=atlas,dc=local auth_bind = yes scope = subtree auth_bind_userdn = atlas\%u user_filter = ((objectClass=mailUser)(mail=%u))

Re: [Dovecot] MailDIR and expire plugin

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 14:36 -0400, Jerry wrote: It doesn't appear correct; Why? Anyway, the important part is what does your namespace configuration look like? Post your dovecot -n output. OK! # 1.2.4: /usr/local/etc/dovecot.conf .. Everything looks correct. Doesn't it work?

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Paul Freeman
OK it seems that pread(), for whatever reason is still used even with with HAVE_PREAD undefined, I also removed the pread ac from configure.in and rebuilt configure just to make sure it was not defined anywhere else. a quick snippet from strace... snip open(/NOC4/etc/dovecot/dovecot.conf,

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 14:11 -0500, Peter Fraser wrote: user_attrs = streetAddress=quota_rule=*:storage=%$M ,=uid=uid,=gid=gid,=home=/home/vmail/%u The =uid=uid part looks wrong. Should be more like =uid=1000, =gid=1000. Anyway.. Post again dovecot -n output and also logs with auth_debug=yes

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 20:22 +0100, Paul Freeman wrote: OK it seems that pread(), for whatever reason is still used even with with HAVE_PREAD undefined, I also removed the pread ac from configure.in and rebuilt configure just to make sure it was not defined anywhere else. grep -i pread config.h

[Dovecot] Expire plugin in chkpw-wrapper.sh script

2009-10-15 Thread Jose Luis Marin Perez
Dear Sirs, I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows: #!/bin/bash DOMAIN=`echo $VPOPUSER|sed s/^.*@//` if [ $DOMAIN = operaciones.qnet.com.pe ]; then export USERDB_AUTOCREATE=INBOX.Spam export

Re: [Dovecot] @2.0 IMAP login, Error: ...//lib20_fts_plugin.so: undefined symbol: fts_next_hook_mailbox_allocated

2009-10-15 Thread Timo Sirainen
On Mon, 2009-10-12 at 21:15 -0700, PGNet Dev wrote: Oct 12 21:07:16 IMAP(testu...@my.domain.com): Error: dlopen(/usr/local/lib/dovecot/lib20_fts_plugin.so) failed: /usr/local/lib/dovecot/lib20_fts_plugin.so: undefined symbol: fts_next_hook_mailbox_allocated Fixed:

Re: [Dovecot] MailDIR and expire plugin

2009-10-15 Thread Jerry
On Thu, 15 Oct 2009 15:22:46 -0400 Timo Sirainen t...@iki.fi wrote: On Thu, 2009-10-15 at 14:36 -0400, Jerry wrote: It doesn't appear correct; Why? Anyway, the important part is what does your namespace configuration look like? Post your dovecot -n output. OK! #

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
Here they are mail# dovecot -n # 1.1.16: /usr/local/etc/dovecot.conf # OS: FreeBSD 7.2-RELEASE-p1 i386 protocols: imaps pop3s imap ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem ssl_cipher_list:

Re: [Dovecot] v2.0.alpha1 released

2009-10-15 Thread Pascal Volk
On 10/13/2009 05:00 PM Odhiambo Washington wrote: On my FreeBSD 7.2-STABLE: … mbox-from.c:240: error: wrong type argument to unary minus … Timo has provided a few patches and fixed some issues. Since the changeset http://hg.dovecot.org/dovecot-2.0/rev/5147503f4123 Dovecot v2.0.alpha1

Re: [Dovecot] Dovecot 1.2.6 segfault in imap_fetch_begin

2009-10-15 Thread Timo Sirainen
On Wed, 2009-10-14 at 17:51 -0700, Brandon Davidson wrote: Thanks! As always, you're one step ahead of us with the bug fixes! I've got one more for you that just popped up. I'm guessing that it's also due to expunging causing sequence numbers to mixed up, and one of the existing patches will

Re: [Dovecot] Dovecot 1.2.6 segfault in imap_fetch_begin

2009-10-15 Thread Brandon Davidson
Hi Timo, -Original Message- From: Timo Sirainen [mailto:t...@iki.fi] This just shouldn't be happening. Are you using NFS? Anyway this should replace the crash with a nicer error message: http://hg.dovecot.org/dovecot-1.2/rev/6c6460531514 Yes, we've got a pool of servers with

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Paul Freeman
OK I'm still getting the same errors, so just as a test I tried the same process on an x86_32 build host, it's binaries now give a different error, one which I have also seen mentioned before I think: banshee-x86-32 / # /NOC4/dovecot/sbin/dovecot -F Error: Missing auth section for server

Re: [Dovecot] Another 1.2.5 imap panic

2009-10-15 Thread Chris Wakelin
Hi Timo, While we're on the subject of panics and segfaults before 1.2.7, did you get a chance to look at this one? It's not happened since those two users, so it's not at all important except perhaps for tidiness! The panic was Oct 03 13:34:20 IMAP 6067 134.225.1.46 : Panic: file

[Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
fyi, hg log | head -n 7 | grep changeset changeset: 10074:1d2d55d9779e @ LOGIN via Tbird ... Oct 15 11:22:35 master: Error: service(imap-login): Too large auth data_size sent Oct 15 11:22:35 imap-login: Info: Disconnected: Shutting down (auth failed, 1 attempts):

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 13:45 -0700, PGNet Dev wrote: @ LOGIN via Tbird ... Oct 15 11:22:35 master: Error: service(imap-login): Too large auth data_size sent Every time? I can't really think of why, but I'm rewriting this part of the code anyway. Maybe it works afterwards. signature.asc

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 2:02 PM, Timo Sirainen t...@iki.fi wrote:  Oct 15 11:22:35 master: Error: service(imap-login): Too large auth data_size sent Every time? at the moment, yes. unfortunately, i can't tell you with which recent update it appeared -- or it i had simply not noticed due to

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
Ok thanks I tried your config. Just edited to my my setup. This is what I now have dovecot.conf --- passdb ldap { args = /usr/local/etc/dovecot-ldap.conf } userdb ldap { args =

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 2:10 PM, PGNet Dev pgnet.dev+dove...@gmail.com wrote: I'm rewriting this part of the code anyway. Maybe it works afterwards. hm ... i was able to keep reproducing what i saw before. but, things change a bit if i reboot system, clean house, re-pull and re-build all ...

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 14:40 -0700, PGNet Dev wrote: On Thu, Oct 15, 2009 at 2:10 PM, PGNet Dev pgnet.dev+dove...@gmail.com wrote: I'm rewriting this part of the code anyway. Maybe it works afterwards. hm ... i was able to keep reproducing what i saw before. but, things change a bit if

Re: [Dovecot] Per User Quotas

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 16:15 -0500, Peter Fraser wrote: When I log in as that user, and check the quota, I'm still seeing 512 MB Very strange. auth_debug=yes, mail_debug=yes makes Dovecot log exactly what it's doing. No point in guessing what the problem is. signature.asc Description: This

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 2:46 PM, Timo Sirainen t...@iki.fi wrote: you didn't recompile/reinstall all binaries. hrm. though i did ... that's what the reboot system, clean house, re-pull and re-build all ... was about. trying again ... Can you get gdb backtrace? Run ulimit -c unlimited before

Re: [Dovecot] Another 1.2.5 imap panic

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 21:14 +0100, Chris Wakelin wrote: Hi Timo, While we're on the subject of panics and segfaults before 1.2.7, did you get a chance to look at this one? It's not happened since those two users, so it's not at all important except perhaps for tidiness! The panic was

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 21:08 +0100, Paul Freeman wrote: in both builds file offset bits is 64, with config.h: config.h check... /* Define to 1 if you have the `pread' function. */ /* Defint if pread/pwrite implementation is broken */ #define PREAD_BROKEN 1 /* Define if pread/pwrite

Re: [Dovecot] Dovecot 1.2.6 segfault in imap_fetch_begin

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 13:06 -0700, Brandon Davidson wrote: Yes, we've got a pool of servers with Maildir on NFS with quotas enabled. Occasionally the users will run out of space and the indexes will get corrupted or out of sync. Our Helpdesk staff will increase their quota or help them delete

Re: [Dovecot] Dovecot 1.2.6 segfault in imap_fetch_begin

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 18:05 -0400, Timo Sirainen wrote: On Thu, 2009-10-15 at 13:06 -0700, Brandon Davidson wrote: Yes, we've got a pool of servers with Maildir on NFS with quotas enabled. Occasionally the users will run out of space and the indexes will get corrupted or out of sync. Our

Re: [Dovecot] MailDIR and expire plugin

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote: All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting: expire = Trash 7 Spam 30 expire_dict = proxy::expire Is that correct

Re: [Dovecot] v2.0.alpha1 released

2009-10-15 Thread Timo Sirainen
On Wed, 2009-10-14 at 00:14 +0100, Ed W wrote: next_still_here_sending_timestamp = imap_idle_notify_interval - (time(NULL) + crc32(username)) % imap_idle_notify_interval; The username CRC32 is there to avoid network/load spikes when all the processes try to send the Still here at the

Re: [Dovecot] Another 1.2.5 imap panic

2009-10-15 Thread Chris Wakelin
Timo Sirainen wrote: The panic was Oct 03 13:34:20 IMAP 6067 134.225.1.46 : Panic: file istream-raw-mbox.c: line 578 (istream_raw_mbox_get_body_size): assertion failed: (rstream-body_offset != (uoff_t)-1) So it has only happened twice now in total? I've seen this before but I'm

Re: [Dovecot] Questions regarding dbox migration

2009-10-15 Thread Mikkel
Timo Sirainen skrev: On Thu, 2009-10-15 at 10:55 +0200, Mikkel wrote: Some users would have mailboxes a several hundred megabytes and having to recreate thousands of these every night because of a single mail getting expunged a day could result in a huge performance hit. It doesn't matter

Re: [Dovecot] Questions regarding dbox migration

2009-10-15 Thread Timo Sirainen
On Fri, 2009-10-16 at 00:24 +0200, Mikkel wrote: It doesn't matter what the user's full mailbox size is. It matters how many of these max. ~2 MB dbox files have expunged messages. Typically users would expunge only new mails, so typically there would be only a single file that needs to

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Paul Freeman
#define HAVE_PREAD 1 /* #undef PREAD_BROKEN */ #define PREAD_WRAPPERS /**/ nm dovecot|grep pread U my_pread@@libmysqlclient_16 //#define HAVE_PREAD 1 #define PREAD_BROKEN //#define PREAD_WRAPPERS nm dovecot|grep pread U my_pread@@libmysqlclient_16 On Thu, 15 Oct 2009

Re: [Dovecot] MailDIR and expire plugin

2009-10-15 Thread Jerry
On Thu, 15 Oct 2009 18:10:58 -0400 Timo Sirainen t...@iki.fi wrote: On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote: All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:

Re: [Dovecot] v2.0.alpha1 released

2009-10-15 Thread Ed W
Timo Sirainen wrote: On Wed, 2009-10-14 at 00:14 +0100, Ed W wrote: next_still_here_sending_timestamp = imap_idle_notify_interval - (time(NULL) + crc32(username)) % imap_idle_notify_interval; The username CRC32 is there to avoid network/load spikes when all the processes try to send the

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 23:45 +0100, Paul Freeman wrote: //#define HAVE_PREAD 1 #define PREAD_BROKEN //#define PREAD_WRAPPERS nm dovecot|grep pread U my_pread@@libmysqlclient_16 Oh! libmysqlclient messes this up. Why is your dovecot binary (and other binaries) linked against

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Paul Freeman
Great I'm not going MAD! :) I'll get to work! On Thu, 15 Oct 2009 18:59:50 -0400, Timo Sirainen t...@iki.fi wrote: On Thu, 2009-10-15 at 23:45 +0100, Paul Freeman wrote: //#define HAVE_PREAD 1 #define PREAD_BROKEN //#define PREAD_WRAPPERS nm dovecot|grep pread U

Re: [Dovecot] v2.0.alpha1 released

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 23:56 +0100, Ed W wrote: I'm currently having problems with my vpn when using a UK Three SIM. I haven't fully investigated, but I *think* it's because the IP changes regularly even while the connection is up and in progress? I think this setup is rare, but exists (on

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
easier said than done ... On Thu, Oct 15, 2009 at 2:51 PM, PGNet Dev pgnet.dev+dove...@gmail.com wrote: yes.  will post in a moment ... service dovecot-custom stop rm -rf /usr/local/etc/mail/dovecot rm -rf /usr/local/include/dovecot rm -rf /usr/local/lib/dovecot rm -rf

Re: [Dovecot] Dovecot lock problem

2009-10-15 Thread Timo Sirainen
On Tue, 2009-10-13 at 11:37 -0700, Simon Gao wrote: We have a few users experiencing locking problem. When starting Thunderbird, there is no new emails in Inbox. Dovecot createa a lock file /var/spool/mail/user.lock. It never completes openning Inbox. If closing the mail client, the open

Re: [Dovecot] Error: NO Mailbox is locked

2009-10-15 Thread Timo Sirainen
On Tue, 2009-10-13 at 14:55 +0200, Giovanni Mancuso wrote: i migrate an imap server from courier-imap to dovecot 1.1.13. After the migration i have often this error in imap communication: * NO Mailbox is locked, will abort in 122 seconds * NO Mailbox is locked, will abort in 92 seconds

Re: [Dovecot] Problem with mbox and quota with 1.2 version

2009-10-15 Thread Timo Sirainen
On Sat, 2009-10-10 at 19:43 +0300, Ντελάκης Δημήτριος wrote: plugin: quota_warning: storage=5%% /usr/local/bin/quota-warning.sh 95 quota: dirsize:user quota_rule: ?:storage=10M Use quota_rule = *:storage=10M instead of '?'. It probably doesn't matter, but '*' makes it anyway clearer.

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread Brandon Davidson
On Red Hat based distros, do: echo 'DAEMON_COREFILE_LIMIT=unlimited' /etc/sysconfig/dovecot service dovecot restart Might be worth putting in the wiki if it's not there already? -Brad -Original Message- == /var/log/dovecot/dovecot.log == Oct 15 09:07:33 master: Info:

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 4:15 PM, Brandon Davidson brand...@uoregon.edu wrote: how do i enable coredumps? on opensuse, SOFTCORELIMIT=0 - SOFTCORELIMIT=1 in /etc/sysconfig/ulimit is good for persist across restarts AND, limit coredumpsize unlimited works for in-session -- as long as i

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
limit coredumpsize unlimited cd /data/mail/Domains/my.domain.com/Accounts/testuser service dovecot-custom restart Oct 15 09:23:37 master: Info: Dovecot v2.0.alpha1 starting up login with TBird, Oct 15 09:25:12 master: Error: service(imap): child 6626 killed with signal 11 (core dumped) Oct

Re: [Dovecot] Expire plugin in chkpw-wrapper.sh script

2009-10-15 Thread Timo Sirainen
Stop sending the same mail every few hours. On Thu, 2009-10-15 at 18:14 -0500, Jose Luis Marin Perez wrote: Dear Timo, I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows: #!/bin/bash DOMAIN=`echo $VPOPUSER|sed s/^.*@//` if

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 4:21 PM, PGNet Dev pgnet.dev+dove...@gmail.com wrote:  SOFTCORELIMIT=0 - SOFTCORELIMIT=1 argh! --- SOFTCORELIMIT=0 - SOFTCORELIMIT=1 +++ --- SOFTCORELIMIT=0 - SOFTCORELIMIT=unlimted

Re: [Dovecot] Missing folders

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 08:04 +0100, John Moorhouse wrote: I've recently had a oops with the system I was running dovecot on so have had to move it to a new machine, I've been able to retrieve the mbox files from the old machine, built the new machine and over wrote the new mbox files with

Re: [Dovecot] virtual Folder Plugin with . Separator: [NONEXISTENT] Mailbox doesn't exist

2009-10-15 Thread Timo Sirainen
On Sun, 2009-10-11 at 21:35 +0200, Elmar Weber wrote: mail_location = maildir:~/.maildir namespace private { prefix = virtual. separator = . location = virtual:~/.maildir/.virtual } The main problem I see here is that by placing virtual namespace to .virtual directory under

Re: [Dovecot] Dovecot inactive after an intermittent connection with LDAP

2009-10-15 Thread Timo Sirainen
On Sun, 2009-10-11 at 21:57 +0700, Thu Nguyen wrote: [root ~]# dovecot -n # 1.1.14: /etc/dovecot.conf I'd suggest first upgrading. There are at least two related LDAP bugs fixed since 1.1.4: * src/auth/db-ldap.c: ldap: If first request is over 60 seconds old while a new request

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 4:52 PM, Timo Sirainen t...@iki.fi wrote: On Thu, 2009-10-15 at 16:32 -0700, PGNet Dev wrote: #0  0x7f9d752a5133 in maildir_quota_namespace_added (quota=0x62fe30, ns=0x630270) at quota-maildir.c:786 Well, kind of a stupid fix but it's probably good enough. A better

Re: [Dovecot] Fatal: chdir( ) failed: Permission denied

2009-10-15 Thread Timo Sirainen
On Fri, 2009-10-09 at 20:02 +0300, Vallo Kallaste wrote: On Fri, Oct 09, 2009 at 12:14:25PM -0400, Timo Sirainen t...@iki.fi wrote: Oct 9 16:43:49 jura dovecot: dovecot: Fatal: chdir(/a/home/mina) failed: Permission denied (euid=1118 0(mina) egid=11332(devel) missing +x perm: /a/home)

Re: [Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

2009-10-15 Thread Paul Freeman
after ensuring that the main dovecot binaries were not linked against mysqlclient and applying this patch from 2.0: http://hg.dovecot.org/dovecot-2.0/rev/910059d94bbc all problems were fixed in 32 64bit x86 linux On Thu, 15 Oct 2009 18:59:50 -0400, Timo Sirainen t...@iki.fi wrote: On Thu,

Re: [Dovecot] Questions regarding dbox migration

2009-10-15 Thread Charles Marcus
On 10/15/2009, Timo Sirainen (t...@iki.fi) wrote: The default is 2 MB, and whoever sets it larger deserves what they get (for better or worse). Just for clarification... what happens when a single message is larger than 2MB? Is it stored just as a single dbox file all by itself?

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
fyi, so far, so good. logged in, with no problems. user's folders autocreated as specified, cd /data/mail/Domains/my.domain.com/Accounts/testuser ls -al total 56 drwx-- 9 vmail vmail 4096 2009-10-15 10:16 ./ drwx-- 3 vmail vmail 4096 2009-10-15 06:38 ../

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread Pascal Volk
On 10/16/2009 02:23 AM PGNet Dev wrote: fyi, so far, so good. logged in, with no problems. user's folders autocreated as specified, … one question re: logs (below). the Info: Namespace : Permission lookup failed from /data/mail/Domains/my.domain.com/Accounts/testuser/Trash

Re: [Dovecot] is it possible to fetch messages for multiple users using a single account?

2009-10-15 Thread Timo Sirainen
On Wed, 2009-10-07 at 19:31 +0100, Tony Smith wrote: It seems getmail supports multidrop retriever which might fit the bill. However I could not figure out how to set up an account that can be used to fetch all messages for all virtual accounts. Is it possible at all? If I really wanted this,

Re: [Dovecot] dovecot 1.2.6 fails to build with openssl 0.9.8

2009-10-15 Thread Timo Sirainen
On Wed, 2009-10-07 at 10:51 +0100, Paul Howarth wrote: Which leads to: http://hg.dovecot.org/dovecot-1.2/rev/4add5c3f13ea Actually the fix looks slightly wrong to me, and it'll dereference a NULL pointer in t_strdup_printf with openssl 0.9.8. The setting of comp_str to NULL if

Re: [Dovecot] master:Error @2.0 TLS login, Too large auth data_size sent

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 5:34 PM, Pascal Volk user+dove...@localhost.localdomain.org wrote: This messages is logged, because you've enabled mail_debug. In a few commits, this messages will be:        a) Prefixed with 'Debug'        b) optional send to debug_log_path = /path/to/debug.log

Re: [Dovecot] Questions regarding dbox migration

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 20:16 -0400, Charles Marcus wrote: On 10/15/2009, Timo Sirainen (t...@iki.fi) wrote: The default is 2 MB, and whoever sets it larger deserves what they get (for better or worse). Just for clarification... what happens when a single message is larger than 2MB? Is it

Re: [Dovecot] Error (IMHO) with --with-doc option

2009-10-15 Thread Timo Sirainen
On Tue, 2009-09-29 at 11:59 +0200, Jacek Osiecki wrote: When you run ./configure --with-docs=no, Makefile does not build docs anymore, but... installs them anyway :) It caused some troubles because rpmbuild complained about documents moved to buildroot/usr/share/doc/dovecot I have created a

Re: [Dovecot] pop3-login process

2009-10-15 Thread ogu_yo
Hi, Thank you for the reply. I've changed it which you suggested to me. It works well. Can I ask you one more thing? Is there any parameter to check the time of login processes? - dovecot-auth: Login process has too old (125s) requests, killing it.

Re: [Dovecot] Expire plugin: wrong mailbox separators in database?

2009-10-15 Thread Timo Sirainen
http://hg.dovecot.org/dovecot-1.2/rev/00757d350812 probably helps? signature.asc Description: This is a digitally signed message part

Re: [Dovecot] pop3-login process

2009-10-15 Thread Timo Sirainen
On Fri, 2009-10-16 at 09:58 +0900, ogu...@yahoo.co.jp wrote: dovecot-auth: Login process has too old (125s) requests, killing it. Do you have anything else in logs? This shouldn't be happening. I've never seen it happen before.. signature.asc Description: This is a digitally signed message

Re: [Dovecot] pop3-login process

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 21:11 -0400, Timo Sirainen wrote: On Fri, 2009-10-16 at 09:58 +0900, ogu...@yahoo.co.jp wrote: dovecot-auth: Login process has too old (125s) requests, killing it. Do you have anything else in logs? This shouldn't be happening. I've never seen it happen before.. Oh

Re: [Dovecot] Expire plugin in chkpw-wrapper.sh script

2009-10-15 Thread Timo Sirainen
On Thu, 2009-10-15 at 14:32 -0500, Jose Luis Marin Perez wrote: I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows: .. /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool --test The problem is that

Re: [Dovecot] pop3-login process

2009-10-15 Thread ogu_yo
Hi, Thank you for your answer! Oh, I see. I'll upgrade it! Thank you so much. Regards, --- Timo Sirainen t...@iki.fi wrote: On Thu, 2009-10-15 at 21:11 -0400, Timo Sirainen wrote: On Fri, 2009-10-16 at 09:58 +0900, ogu...@yahoo.co.jp wrote: dovecot-auth: Login process has too old

Re: [Dovecot] Panic when using QRESYNC

2009-10-15 Thread Timo Sirainen
On Fri, 2009-10-09 at 20:37 -0400, Timo Sirainen wrote: On Fri, 2009-10-09 at 12:56 -0600, Michael M. Slusarz wrote: Oct 9 12:49:30 bigworm EXT(slusarz): : /home/slusarz/Maildir/dovecot.index.log: Transaction log changed unexpectedly, can't get modseq I'll still need to get this

[Dovecot] migrate courier to dovecot script - questions about directory structure

2009-10-15 Thread Ross
Hi all, Im in the process of moving about 7000 users across from courier to dovecot. Both Maildir setups. The migration script works a treat, but I need a slight change to it. Couriers directory structure looks ike this: /home/vmail/domain.com.au/username/cur/

[Dovecot] @2.0, Fatal error (Expecting '=') in trash plugin config

2009-10-15 Thread PGNet Dev
i've setup trash plugin as, grep trash imap.conf mail_plugins = autocreate fts fts_squat fts_solr imap_quota quota trash zlib cat plugin.conf plugin { ... trash = /data/mail/Conf/dovecot/conf.d/trash.conf

Re: [Dovecot] @2.0, Fatal error (Expecting '=') in trash plugin config

2009-10-15 Thread Timo Sirainen
On Oct 16, 2009, at 12:32 AM, PGNet Dev wrote: cat /data/mail/Conf/dovecot/conf.d/trash.conf 1 Spam 2 Trash 3 Sent 3 Sent Messages Don't put it into conf.d/ directory. It gets included by dovecot.conf, and that just

Re: [Dovecot] @2.0, Fatal error (Expecting '=') in trash plugin config

2009-10-15 Thread PGNet Dev
On Thu, Oct 15, 2009 at 9:58 PM, Timo Sirainen t...@iki.fi wrote: On Oct 16, 2009, at 12:32 AM, PGNet Dev wrote:        cat /data/mail/Conf/dovecot/conf.d/trash.conf                1 Spam                2 Trash                3 Sent                3 Sent Messages Don't put it into conf.d/

  1   2   >