Re: [Dovecot] Sieve, and logging.

2008-09-09 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 8 Sep 2008, Scott Sharkey wrote: syslog for now. I can get the main dovecot to log, but I cannot get any log out of dovecot-deliver. I am thinking of replacing the dovecot-deliver with a shell script to see if it's even being called. I

Re: [Dovecot] Error in Sieve + Dovecot 1.1.3

2008-09-09 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 8 Sep 2008, Christopher J. Buckley wrote: With version 1.1.1 I have this in my dovecot.conf (and works fine) [..] deliver(acassaro): cmusieve: /home/%u/.dovecot.sieve doesn't exist sieve = /home/%u/.dovecot.sieve snip Question:

Re: [Dovecot] Error in Sieve + Dovecot 1.1.3

2008-09-09 Thread Timo Sirainen
On Mon, 2008-09-08 at 15:45 -0300, Allan Cassaro wrote: sieve = /home/%u/.dovecot.sieve } When I upgrade, the deliver/LDA stop to work and show me this message (in logs): deliver(acassaro): cmusieve: /home/%u/.dovecot.sieve doesn't exist So, when I change the sieve parameter,

Re: [Dovecot] cyrus2courier or cyrus2maildir.py, which to choose?

2008-09-09 Thread Steinar Bang
Timo Sirainen [EMAIL PROTECTED]: cyrus2courier does everything, but it requires a supported Cyrus version. Right. I tried that one first, but I wasn't able to figure out what arguments to give it. Eg. what to tell it the courierdir was, and what the mailbox should be named. Eg. if my INBOX

[Dovecot] Panic in Dovecot 1.1.3: index-mail.c: line 1091: assertion failed: (!mail-data.destroying_stream)

2008-09-09 Thread Peter Eriksson
Dovecot 1.1.3 Solaris 10 SPARC (Sun Fire T1000) Compiled with Sun Studio 12 compilers. Maildir on NFS Indexes on local disk (UFS). 'dovecot -n' output attached. IMAP process crashes for certain (many, but not all) users when accessing certain folders (in the example below, in crashes when

[Dovecot] How to propelry restore a Maildir

2008-09-09 Thread Thomas Hummel
Hello, I would like to know what is the proper way to restore a Maildir : Assuming someone has got a foobar/[cur|new|tmp] maildir, loses for some reason its content and that some new mail (seen and/or unseen) comes into that mailbox inbetween (that is before the restore procedure takes place,

Re: [Dovecot] Sieve, and logging.

2008-09-09 Thread Allan Cassaro
On Mon, Sep 8, 2008 at 11:54 AM, Scott Sharkey [EMAIL PROTECTED] wrote: Hi All, Relatively new to Dovecot - converting from courier-imap. So far, I've got it working with virtual users (postfixadmin tables), and it seems to be working. I'm trying to get sieve working. It's not, so I tried

[Dovecot] No buffer space available

2008-09-09 Thread Rick Romero
Hi, I'm running Dovecot 1.1.3 on FreeBSD 7.0.In the past couple days, I've been seeing errors like this: Sep 9 08:43:51 sysvol dovecot: pop3-login: socketpair() failed: No buffer space available Sep 9 08:43:51 sysvol dovecot: pop3-login: socket(default) failed: No buffer space

[Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Ralf Hildebrandt
2 backtraces: GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show

Re: [Dovecot] No buffer space available

2008-09-09 Thread Rick Romero
I forgot to add that I also upgraded from 1.1.1 to 1.1.3 yesterday in an attempt to fix the problem. On Sep 9, 2008, at 8:58 AM, Rick Romero [EMAIL PROTECTED] wrote: Hi, I'm running Dovecot 1.1.3 on FreeBSD 7.0.In the past couple days, I've been seeing errors like this: Sep 9

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Ralf Hildebrandt
* Ralf Hildebrandt [EMAIL PROTECTED]: 2 backtraces: Corresponding logs: Sep 8 21:22:44 postamt dovecot: IMAP(nivanov): Log synchronization error at seq=4,offset=29196 for /home/n/i/nivanov/Maildir/.Drafts/dovecot.index: Extension introduction for unknown id 1 Sep 8 21:22:44 postamt dovecot:

Re: [Dovecot] No buffer space available

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 08:58 -0500, Rick Romero wrote: Hi, I'm running Dovecot 1.1.3 on FreeBSD 7.0.In the past couple days, I've been seeing errors like this: Sep 9 08:43:51 sysvol dovecot: pop3-login: socketpair() failed: No buffer space available Only thing I can suggest is to

Re: [Dovecot] Panic in Dovecot 1.1.3: index-mail.c: line 1091: assertion failed: (!mail-data.destroying_stream)

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 13:23 +0200, Peter Eriksson wrote: Maildir on NFS This is the first time I've heard this happening with maildir. It's always been with mboxes before. IMAP process crashes for certain (many, but not all) users when accessing certain folders (in the example below, in

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 16:08 +0200, Ralf Hildebrandt wrote: * Ralf Hildebrandt [EMAIL PROTECTED]: 2 backtraces: This fixes the crash: http://hg.dovecot.org/dovecot-1.1/rev/ad44228f3808 Corresponding logs: Sep 8 21:22:44 postamt dovecot: IMAP(nivanov): Log synchronization error at

[Dovecot] Maildir: directory instead of file

2008-09-09 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Since 1.0 sometimes happens that in the 'cur' directory of a maildir handled by Dovecot I find a directory instead of a file, just like this: drwx-- 2 mailvirtuale mailvirtuale4096 Aug 25 15:11 1219669940.M113849P13510.gw.areanet.it:2,S

Re: [Dovecot] Maildir: directory instead of file

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 16:41 +0200, Luigi Rosa wrote: Since 1.0 sometimes happens that in the 'cur' directory of a maildir handled by Dovecot I find a directory instead of a file, just like this: drwx-- 2 mailvirtuale mailvirtuale4096 Aug 25 15:11

Re: [Dovecot] Maildir: directory instead of file

2008-09-09 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen said the following on 09/09/08 16:45: I've no idea why you get directories there in the first place though. How often does the directory pop up there? I'd guess some kind of a misconfiguration. I got this kind of problem on at least

Re: [Dovecot] How to propelry restore a Maildir

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 14:16 +0200, Thomas Hummel wrote: Assuming someone has got a foobar/[cur|new|tmp] maildir, loses for some reason its content and that some new mail (seen and/or unseen) comes into that mailbox inbetween (that is before the restore procedure takes place, thus creating the

[Dovecot] Maildirsize file isn't updated after doing POP

2008-09-09 Thread Nitass Sutaveephamochanon
Hello, I have a problem about updating Maildirsize file. It seems that the Maildirsize file is not updated after user does POP mail from his maildir. I do not want to use any quota limitation in Dovecot. I only want Dovevot to update the Maildirsize file after user retrieves his mail. The

Re: [Dovecot] How to propelry restore a Maildir

2008-09-09 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen said the following on 09/09/08 16:54: Safest would be to create restored mails mailbox and put everything there and let the user figure out how to merge things. Might be annoying enough to merge them so that they'll learn not to make

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Cor Bosman
If copying a single mail takes longer than the dotlocking timeout, another process may have overridden the lock file and caused errors. And since it took so long, maybe PHP or something timed out. This should help figuring out if the problem is due to timeouts:

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Cor Bosman
Oops, I do see a logline, just not in the error log. Weird. Sep 9 16:42:54 userimap3.xs4all.nl dovecot: IMAP(xxx): rename(/var/spool/mail/dovecot-control/indexes/d/dr/xxx/.Trash/dovecot.index.cache.lock, /var/spool/mail/dovecot-control/indexes/d/dr/xxx/.Trash/dovecot.index.cache)

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 17:16 +0200, Cor Bosman wrote: Oops, I do see a logline, just not in the error log. Weird. Sep 9 16:42:54 userimap3.xs4all.nl dovecot: IMAP(xxx): rename(/var/spool/mail/dovecot-control/indexes/d/dr/xxx/.Trash/dovecot.index.cache.lock,

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Cor Bosman
60 seconds is also when Dovecot decides the dotlock file is stale. So I guess the cache file compression is taking longer than that. Hmm. I hadn't thought about that before, since it was supposed to happen rarely enough. But I guess during the compression other processes shouldn't be stuck

Re: [Dovecot] Panic in Dovecot 1.1.3: index-mail.c: line 1091: assertion failed: (!mail-data.destroying_stream)

2008-09-09 Thread Peter Eriksson
Timo Sirainen skrev: IMAP process crashes for certain (many, but not all) users when accessing certain folders (in the example below, in crashes when accessing my INBOX, about 1700 mails). I could access other mailboxes without problems. And a simple telnet to the imap port followed by a login

Re: [Dovecot] How to propelry restore a Maildir

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 17:35 +0200, Thomas Hummel wrote: Can this new mail be named identically, i.e. 1215166123.52887_0.host.dom.ain:2, ? if so, it would be a problem when merging. Yes, except for Dovecot's potential warning: Dovecot doesn't really like if messages get unexpunged Why

Re: [Dovecot] antispam plugin problem with dspam

2008-09-09 Thread Damian Lubosch
Harlan Stenn schrieb: I got it working. I got it, too! :-) The antispam plugin cannot exec the dspam binary. Choices include figuring out what user/group are needed (dspam is suid root, executable by the root or the mail group only, and dovecot will exec it as virtual/virtual), or

Re: [Dovecot] How to propelry restore a Maildir

2008-09-09 Thread Thomas Hummel
On Tue, Sep 09, 2008 at 06:41:34PM +0300, Timo Sirainen wrote: On Tue, 2008-09-09 at 17:35 +0200, Thomas Hummel wrote: Can this new mail be named identically, i.e. 1215166123.52887_0.host.dom.ain:2, ? if so, it would be a problem when merging. Yes, except for Dovecot's potential

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Ralf Hildebrandt
* Timo Sirainen [EMAIL PROTECTED]: On Tue, 2008-09-09 at 16:08 +0200, Ralf Hildebrandt wrote: * Ralf Hildebrandt [EMAIL PROTECTED]: 2 backtraces: This fixes the crash: http://hg.dovecot.org/dovecot-1.1/rev/ad44228f3808 Corresponding logs: Sep 8 21:22:44 postamt dovecot:

Re: [Dovecot] No buffer space available

2008-09-09 Thread Rick Romero
Timo Sirainen wrote: On Tue, 2008-09-09 at 08:58 -0500, Rick Romero wrote: Hi, I'm running Dovecot 1.1.3 on FreeBSD 7.0.In the past couple days, I've been seeing errors like this: Sep 9 08:43:51 sysvol dovecot: pop3-login: socketpair() failed: No buffer space available Only

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Cor Bosman
Did a couple of changes: http://hg.dovecot.org/dovecot-1.1/rev/898e3810c014 http://hg.dovecot.org/dovecot-1.1/rev/e3c5acf92b53 Ok, will add them. You could check how large the dovecot.index.cache file is for those users. Normally it's something like 10-20% of the mailbox size, but it

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Ralf Hildebrandt
* Timo Sirainen [EMAIL PROTECTED]: On Tue, 2008-09-09 at 16:08 +0200, Ralf Hildebrandt wrote: * Ralf Hildebrandt [EMAIL PROTECTED]: 2 backtraces: This fixes the crash: http://hg.dovecot.org/dovecot-1.1/rev/ad44228f3808 I checked out today and got: Sep 9 18:17:58 postamt dovecot:

Re: [Dovecot] Maildirsize file isn't updated after doing POP

2008-09-09 Thread Eduardo M KALINOWSKI
Nitass Sutaveephamochanon escreveu: Hello, I have a problem about updating Maildirsize file. It seems that the Maildirsize file is not updated after user does POP mail from his maildir. I do not want to use any quota limitation in Dovecot. I only want Dovevot to update the Maildirsize

[Dovecot] 4 different Backtraces :/usr/local/libexec/dovecot/imap

2008-09-09 Thread Ralf Hildebrandt
After applying the recent patches: * root [EMAIL PROTECTED]: GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Timo Sirainen
On Sep 9, 2008, at 7:35 PM, Cor Bosman wrote: Oh, now im getting assert failed with those 2 patches applied.. Sep 9 18:33:59 userimap3 dovecot: Panic: IMAP(x): file mail- cache.c: line 572 (mail_cache_lock): assertion failed: ((ret = 0 !cache-locked) || (ret 0 cache-locked))

[Dovecot] Problems to sync

2008-09-09 Thread Lincon Peretto
Dovecot 1.1.2 Good afternoon, I installed dovecot to work with Eximmy dovecot.conf is like this: #Protocolos suportados protocols = imap log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot-info.log #Desabilitar SSL ssl_disable = yes disable_plaintext_auth = no first_valid_gid

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 21:26 +0300, Timo Sirainen wrote: On Tue, 2008-09-09 at 20:20 +0200, Cor Bosman wrote: Now im seeing these: Sep 9 19:28:25 userimap3 dovecot: IMAP(x): file_dotlock_create() failed with index cache file

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Cor Bosman
Yes, although the error message could be changed to locking timed out. But at least now the error shouldn't be visible to clients (other than small slowdowns due to the 2 second lock wait). Anyway, the real problem is one of: a) Dovecot is really locking dovecot.index.cache file for a

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 20:39 +0200, Cor Bosman wrote: b) Some process is crashing and leaving stale dovecot.index.cache.lock files lying around. But that'd have to be a .lock from another server, because on the same server Dovecot checks to see if the PID exists and if not it'll just

Re: [Dovecot] Problems to sync

2008-09-09 Thread Charles Marcus
On 9/9/2008 2:02 PM, Lincon Peretto wrote: Dovecot 1.1.2 Good afternoon, I installed dovecot to work with Eximmy dovecot.conf is like this: No... please always provide output of dovecot -n... -- Best regards, Charles

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 18:13 +0200, Ralf Hildebrandt wrote: What kind of a setup are you using? Filesystem? OS? Maildir mailboxes, ext3, linux (Debian/testing, custom kernel) What about CPU? signature.asc Description: This is a digitally signed message part

Re: [Dovecot] Problems to sync

2008-09-09 Thread Scott Silva
The problem is that I get to sync with INBOX, but I can't get to sync with the other files... I don't know if this line is correct: mail_location = mailbox:/usr/home/%u/mail/:INBOX=/var/mail/%u If I create a new file by the outlook, this file is created in the server normally. If

Re: [Dovecot] Problems to sync

2008-09-09 Thread Lincon Peretto
[EMAIL PROTECTED] dovecot -n # 1.1.2: /usr/local/etc/dovecot.conf log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot-info.log protocols: imap ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login

Re: [Dovecot] Problems to sync

2008-09-09 Thread Charles Marcus
On 9/9/2008, Lincon Peretto ([EMAIL PROTECTED]) wrote: The problem is that I get to sync with INBOX, but I can't get to sync with the other files... mail_location = mailbox:/usr/home/%u/mail/:INBOX=/var/mail/%u Is this really how you set it? mailbox: is not a valid setting I don't think.

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Ralf Hildebrandt
* Timo Sirainen [EMAIL PROTECTED]: On Tue, 2008-09-09 at 18:13 +0200, Ralf Hildebrandt wrote: What kind of a setup are you using? Filesystem? OS? Maildir mailboxes, ext3, linux (Debian/testing, custom kernel) What about CPU? 4 x Intel(R) Xeon(R) CPU5160 @ 3.00GHz --

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Timo Sirainen
On Sep 9, 2008, at 11:29 PM, Ralf Hildebrandt wrote: * Timo Sirainen [EMAIL PROTECTED]: On Tue, 2008-09-09 at 18:13 +0200, Ralf Hildebrandt wrote: What kind of a setup are you using? Filesystem? OS? Maildir mailboxes, ext3, linux (Debian/testing, custom kernel) What about CPU? 4 x

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Ralf Hildebrandt
* Timo Sirainen [EMAIL PROTECTED]: Wonder if there are some race condition issues that don't show up with Core 2 duo, but do show up with 4 core / 2 CPUs. I know there are some things I should probably not be doing (or should maybe add some memory barrier code). How often do you see

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Cor Bosman
I just tested on my kvm FreeBSD 7.0 installation. I can't reproduce it there either with imaptest logout=0. Neither can i.. As a test I set 1 server up with local FS again, but with NFS=yes and mmap/fsync etc as if it's nfs index, and im getting the same errors. So it doesnt seem related to

Re: [Dovecot] Data loss from removing dovecot.index* files?

2008-09-09 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen wrote: On Tue, 2008-09-09 at 10:36 -0500, John Lightsey wrote: Hi there, I've been rewriting the courier-dovecot-migrate script to handle dovecot-courier conversions in addition to courier-dovecot. One issue I've found is that

[Dovecot] Version Mismatch

2008-09-09 Thread Kilburn Abrahams
hi list I upgraded to 1.1.3, and have my logs turned off for some time, but turned it back on when someone complained about moving emails. I saw this in the logs. Seems strange. Using gentoo on AMD 64 bit. All is working fine, but is this a cause for alarm. dovecot: Jun 05 17:10:32 Fatal:

Re: [Dovecot] 1.1.3: imap crashes with SIGSEGV

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 22:45 +0200, Ralf Hildebrandt wrote: * Timo Sirainen [EMAIL PROTECTED]: Wonder if there are some race condition issues that don't show up with Core 2 duo, but do show up with 4 core / 2 CPUs. I know there are some things I should probably not be doing (or should

Re: [Dovecot] Data loss from removing dovecot.index* files?

2008-09-09 Thread Timo Sirainen
On Wed, 2008-09-10 at 10:19 +0800, Patrick Nagel wrote: I've been rewriting the courier-dovecot-migrate script to handle dovecot-courier conversions in addition to courier-dovecot. One issue I've found is that when the courier-dovecot conversion is performed a second time (using

Re: [Dovecot] error in 1.1.2

2008-09-09 Thread Timo Sirainen
On Tue, 2008-09-09 at 23:07 +0200, Cor Bosman wrote: I just tested on my kvm FreeBSD 7.0 installation. I can't reproduce it there either with imaptest logout=0. Neither can i.. As a test I set 1 server up with local FS again, but with NFS=yes and mmap/fsync etc as if it's nfs index,

Re: [Dovecot] Data loss from removing dovecot.index* files?

2008-09-09 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen wrote: It's safe, but if any IMAP clients had seen the mailbox the first time they may become confused if the message UIDs change (which is also the reason Dovecot starts complaining). Aren't flags only stored in dovecot.index