Re: [Dovecot] A large number of imap processes

2008-04-24 Thread Claude Frantz
Timo Sirainen wrote: Yes, the main benefit of deliver with Maildir is when it updates the cache file, but v1.0 deliver doesn't do that. Oh ! Very interesting. I did think, that this function was already available in the version 1.0. NFS is still a problem. Do you use a single Dovecot ser

Re: [Dovecot] Problem with Dovecot Delivery Agent, Extra "From" lines and mbox

2008-04-24 Thread Hokan
On Fri, Apr 25, 2008 at 03:03:14AM +0300, Timo Sirainen wrote: > On Wed, 2008-04-09 at 16:03 -0500, Hokan wrote: > > When an mbox email contains a line that looks like a "Mail" header > > it should be quoted (per RFC 4155). Sendmail's delivery agent does > > this, as does Procmail delivery agent.

[Dovecot] Quota not showing correctly after conversion (mb2md.pl)

2008-04-24 Thread k bah
-- SCENARIO -- I'm using dovecot-1.0.5-6 on opensuse 10.3. I use the maildir quota plugin, and I'm converting mailboxes from UW IMAP (mbox) to Maildir format using that mb2md.pl script (3.10 I guess). My migration happens like this: - if a user receives mail (before ever using the ne

Re: [Dovecot] Expire plugin isn't working

2008-04-24 Thread Timo Sirainen
On Fri, 2008-04-25 at 02:18 +0200, Anders wrote: > Raphael Bittencourt S. Costa wrote: > > It's still not working. The dict is called only by expire-tool. > > > > I see the db change as mails are moved around, but I still did not > manage to get expire-tool to delete any mail. I guess it uses t

Re: [Dovecot] Mixing LDAP and static

2008-04-24 Thread Timo Sirainen
On Fri, 2008-04-25 at 02:06 +0200, Anders wrote: > Timo Sirainen wrote: > > On Fri, 2008-04-18 at 20:07 +0200, Anders wrote: > > >> Anyway, it does not really work, I guess it might be a bug. When I drop > >> the attribute, the variables in the template are not interpolated, so I > >> end up wit

Re: [Dovecot] Expire plugin isn't working

2008-04-24 Thread Anders
Raphael Bittencourt S. Costa wrote: It's still not working. The dict is called only by expire-tool. I see the db change as mails are moved around, but I still did not manage to get expire-tool to delete any mail. I guess it uses the current time of day for the action, not a message timestamp

Re: [Dovecot] Expire plugin isn't working

2008-04-24 Thread Raphael Bittencourt S. Costa
On Fri, 2008-04-25 at 02:57 +0300, Timo Sirainen wrote: > You mean the dict db isn't even created by expire plugin? Yes. > It was created > in my tests (and expire_altmove also worked in my previous tests). > What > configuration are you using? dovecot -n # 1.1.rc4: /etc/dovecot//dovecot.conf

Re: [Dovecot] Authentication: Dovecot -> Vpopmail - > MySQL with one table per domain

2008-04-24 Thread Timo Sirainen
On Mon, 2008-03-24 at 10:44 -0700, James Nordstrom wrote: > password_query = select pw_clear_passwd as password > from %d where pw_name = '%n' > > Where %d is the name of the table. I can't use the > exact domain name at it will not match the vpopmail > format domainname_com. I would

Re: [Dovecot] Mixing LDAP and static

2008-04-24 Thread Anders
Timo Sirainen wrote: On Fri, 2008-04-18 at 20:07 +0200, Anders wrote: Anyway, it does not really work, I guess it might be a bug. When I drop the attribute, the variables in the template are not interpolated, so I end up with home literally being "/var/mail/vhosts/%d/%n" for all lookups. Th

Re: [Dovecot] Index maintenance

2008-04-24 Thread Anders
Timo Sirainen wrote: No. If something is adding new data to indexes, it's also removing the old data. So if you're using deliver it does both of it. (If you're not using deliver, then nothing is adding new mails to the index anyway.) Right. I got that mixed up a bit. Good to have you back :-)

Re: [Dovecot] Problem with Dovecot Delivery Agent, Extra "From" lines and mbox

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-09 at 16:03 -0500, Hokan wrote: > When an mbox email contains a line that looks like a "Mail" header > it should be quoted (per RFC 4155). Sendmail's delivery agent does > this, as does Procmail delivery agent. Dovecot deliver does not > do this. > > Example line, with ">" quote:

Re: [Dovecot] Expire plugin isn't working

2008-04-24 Thread Timo Sirainen
You mean the dict db isn't even created by expire plugin? It was created in my tests (and expire_altmove also worked in my previous tests). What configuration are you using? On Thu, 2008-04-24 at 20:52 -0300, Raphael Bittencourt S. Costa wrote: > Timo, > > It's still not working. The dict is call

Re: [Dovecot] sieve header :matches for multiline header

2008-04-24 Thread Timo Sirainen
On Mon, 2008-03-17 at 22:49 +0300, Anton Yuzhaninov wrote: > RFC3028 say: > > Folding of long header lines (as described in [IMAIL] 3.4.8) is > removed prior to interpretation of the data. The folding syntax (the > CRLF that ends a line plus any leading whitespace at the beginning of

Re: [Dovecot] Expire plugin isn't working

2008-04-24 Thread Raphael Bittencourt S. Costa
Timo, It's still not working. The dict is called only by expire-tool. On Fri, 2008-04-25 at 00:53 +0300, Timo Sirainen wrote: > On Wed, 2008-04-16 at 10:49 +0200, Anders wrote: > > Raphael Bittencourt S. Costa wrote: > > > > > I followed the wiki to configured the expire plugin on dovecot-1.1rc

Re: [Dovecot] ACLs generating plugin problems.

2008-04-24 Thread Fábio M. Catunda
Thanks Timo, I will try it! []'s, Catunda. Timo Sirainen escreveu: On Mon, 2008-04-14 at 16:29 -0300, "Fábio M. Catunda" wrote: Hi! I'm trying to use an ACL to avoid deletion of messages that are inside .Trash folder, the ACL is already working very well, the problem that I'm facing is

Re: [Dovecot] [partially solved] Imap sent folder sometimes dosen't get updated in dovecot-1.1-rc3(+some current hg patches)

2008-04-24 Thread Timo Sirainen
On Sat, 2008-03-29 at 19:19 +0100, Diego Liziero wrote: > > Error: IMAP(username): UIDs broken with partial sync in mbox file > > /maildir/username/Sent Do you use mbox_very_dirty_syncs=yes? It can cause this and I haven't yet bothered to fix it. Anyway I should probably just change it to a warni

Re: [Dovecot] Index maintenance

2008-04-24 Thread Timo Sirainen
On Fri, 2008-04-25 at 01:17 +0200, Anders wrote: > Timo Sirainen wrote: > > On Tue, 2008-04-08 at 09:58 +0200, Anders wrote: > >> Anders wrote: > >> > >>> I am unable to find information about what happens to the index file if I > >>> use something like the cron script at the bottom of > >>> http:/

Re: [Dovecot] Allow_nets + MySQL failing when using range notation

2008-04-24 Thread Timo Sirainen
On Mon, 2008-03-31 at 12:56 +0200, Javier García wrote: > Hello all, > > I am testing my dovecot installation in order to restrict access via > POP3 for IPs outside my network. I have read and understood the > instructions in the wiki and I have reached a configuration that works > ONLY when si

Re: [Dovecot] Index maintenance

2008-04-24 Thread Anders
Timo Sirainen wrote: On Tue, 2008-04-08 at 09:58 +0200, Anders wrote: Anders wrote: I am unable to find information about what happens to the index file if I use something like the cron script at the bottom of http://wiki.dovecot.org/Plugins/Expire There must be some information in the index

Re: [Dovecot] Index maintenance

2008-04-24 Thread Timo Sirainen
On Tue, 2008-04-08 at 09:58 +0200, Anders wrote: > Anders wrote: > > > I am unable to find information about what happens to the index file if I > > use something like the cron script at the bottom of > > http://wiki.dovecot.org/Plugins/Expire > > > > There must be some information in the index th

Re: [Dovecot] alert function, V2

2008-04-24 Thread Timo Sirainen
On Sun, 2008-04-06 at 12:02 +0200, Guillaume Yziquel wrote: > Trever L. Adams a écrit : > > > >> Timo Sirainen wrote: > >>> http://dovecot.org/patches/1.0/imap-alert-plugin.c > >>> > >>> > >> > > I would like to see this as part of the standard dovecot package with > > some documentation. Is thi

Re: [Dovecot] dovecot-1.1.rc3 assertion failure in index-sync.c

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-09 at 11:11 -0700, [EMAIL PROTECTED] wrote: > We just came across a mailbox today that, when accessed via POP3 or > IMAP, crashes Dovecot. It seems to be another index-related corruption > issue (as removing "dovecot.index" for INBOX fixed it); > > Using POP3: > > dovecot: Apr

Re: [Dovecot] Rare problem with Indexes?

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-09 at 09:04 -0700, [EMAIL PROTECTED] wrote: > We've been running 1.1 rc3 now for about a month, and overall it's been > very fast and stable. > > There is however an Index-related problem that keeps cropping up which > prevents a user from accessing their mailbox until their Inde

Re: [Dovecot] Dismal Dovecot log messages

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-09 at 09:38 -0500, Bob Gustafson wrote: > dovecot: IMAP(bobgus): Corrupted index cache > file /home/bobgus/Maildir/.INBOX.Cron-normal/dovecot.index.cache: > invalid record size: 8 Time(s) > dovecot: IMAP(bobgus): Corrupted index cache > file /home/bobgus/Maildir/dovecot.inde

Re: [Dovecot] GETQUOTAROOT?

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-10 at 11:30 +0200, Ralf Hildebrandt wrote: > . GETQUOTAROOT "INBOX" > * QUOTAROOT "INBOX" "" > * QUOTA "" () > . OK Getquotaroot completed. > > But that mailbox DOES have a quota defined. > This is dovecot-1.0.x from the Mercurial repo. > > I'm using: > > quota = maildir > qu

Re: [Dovecot] ACLs generating plugin problems.

2008-04-24 Thread Timo Sirainen
On Mon, 2008-04-14 at 16:29 -0300, "Fábio M. Catunda" wrote: > Hi! > > I'm trying to use an ACL to avoid deletion of messages that are inside > .Trash folder, the ACL is already working very well, the problem that > I'm facing is that even if the message is not deleted, mail_log logs > that it

Re: [Dovecot] Expire plugin isn't working

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-16 at 10:49 +0200, Anders wrote: > Raphael Bittencourt S. Costa wrote: > > > I followed the wiki to configured the expire plugin on dovecot-1.1rc4 > > and it isn't working. No error messages on logs or on the execution of > > "dovecot --exec-mail ext /usr/libexec/dovecot/expire-too

Re: [Dovecot] 1.1 a major improvement

2008-04-24 Thread Marc Perkel
Cor Bosman wrote: I recently switched one of our 30 imap servers to 1.1RC4 from 1.0.x, and the difference is huge. The load on the server dropped from 5+ to 0.3 or so. This means there is no more io waiting going on. Interesting - is there any downside? Sounds like it's worth switching

[Dovecot] Mail deletion

2008-04-24 Thread Johannes Grimm
Hi, when im deleting messages with my mail-client thunderbird, those mails dissapear in the client. but they stay on the server dovecot 1.0.13 on reiserfs. is there a special expunge timer or when will those orphaned messages whiped out of the filesystem? -- =

Re: [Dovecot] dovecot: Fatal: IMAP(user2): write(event_pipe) failed: Bad file descriptor

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-17 at 15:47 +0300, Mart Pirita wrote: > Hello. > > Since I upgraded few months ago from version 1.0 to 1.1 (right now > using v1.1.rc4) in logs for some users only (but in different servers) I > noticed errors: > > dovecot: Fatal: IMAP(user2): write(event_pipe) failed: Bad file

Re: [Dovecot] Dovecot timeout over NFS

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-24 at 14:21 +0100, Guy wrote: > On 24/04/2008, Timo Sirainen <[EMAIL PROTECTED]> wrote: > > > > Have you set maildir_copy_with_hardlinks=yes? > > > > Yes, that's already set. I've also added: > default_mail_env = maildir:%h/Maildir/:INDEX=MEMORY > after reading the suggestion somew

Re: [Dovecot] Mixing LDAP and static

2008-04-24 Thread Anders
Timo Sirainen wrote: > But anyway, can't you now just change user to "uid" with pass_attrs: That was a contrived example. I do not actually have this problem right now, I merely noticed the issue and wanted to report it in case it was unintended. Anders.

Re: [Dovecot] Dbox + imap_quota still crashing on 1.1rc4

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-17 at 13:30 -0400, Eric T wrote: > Emailed about this with 1.1rc3 and didn't get a reply. Tried upgrading to > 1.1rc4 and got the same crashing: .. > Program terminated with signal 11, Segmentation fault. > #0 0x004640f9 in mail_index_get_header_ext (view=0x0, ext_id=2, > d

Re: [Dovecot] A large number of imap processes

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-24 at 16:05 +0200, Claude Frantz wrote: > Timo Sirainen wrote: > > >> I think that the large number of now running processes is the rebuilding > >> of the index. I am right here, Timo ? > > > > Index updates typically don't take long. Although if client fetches some > > metadata

Re: [Dovecot] Mixing LDAP and static

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-24 at 15:57 +0200, Anders wrote: > There still is one issue left, though. Using the same attribute for > several variables: > > user_attrs = uid=home=/home/%$,uid=sieve_dir=/var/sieves/%$ > > With this, the home variable is lost. That would require a bit larger changes than I'd

Re: [Dovecot] A large number of imap processes

2008-04-24 Thread Claude Frantz
Timo Sirainen wrote: I think that the large number of now running processes is the rebuilding of the index. I am right here, Timo ? Index updates typically don't take long. Although if client fetches some metadata that isn't in cache file, Dovecot needs to open the messages and parse them. Th

Re: [Dovecot] Mixing LDAP and static

2008-04-24 Thread Anders
Timo Sirainen wrote: > I've been a bit lazy updating the LDAP wiki page with new v1.1 features. > Added it there now. Although I think the entire page is a bit too > complex and could use a split into multiple subpages.. Absolutely, it took me forever to figure out how the LDAP stuff works :-).

Re: [Dovecot] Sieve script executed, but nothing happens

2008-04-24 Thread Timo Sirainen
On Fri, 2008-04-18 at 09:21 +0200, Wouter Amsterdam wrote: > I think I have almost solved my dovecot-deliver lookup problems, but now > sieve still fails to work. From deliver's logfile I can tell the user's > homedir is found and the sieve script is executed, but not as expected. My > sieve testsc

Re: [Dovecot] A large number of imap processes

2008-04-24 Thread Timo Sirainen
On Fri, 2008-04-18 at 14:14 +0200, Claude Frantz wrote: > When a large number of messages for many different users arrive nearly > at the same time (e.g. a message to all the users), a large number of > sleeping processes become active, the CPU usage increases to more than > 80 or 90 % and the L

Re: [Dovecot] Mixing LDAP and static

2008-04-24 Thread Timo Sirainen
On Fri, 2008-04-18 at 20:07 +0200, Anders wrote: > Timo Sirainen wrote: > > On Sat, 2008-04-12 at 22:37 +0200, Anders wrote: > > >> user_attrs = > >> uid=home=/var/mail/vhosts/%d/%n,gosaMailQuota=quota_rule=*:bytes=%$M > >> > > > > Just drop the "uid", like: =home=/var/mail/.. > > Hi. > > Th

Re: [Dovecot] using mysql from within a plugin

2008-04-24 Thread Timo Sirainen
On Sun, 2008-04-20 at 00:36 +0200, Alexander Prinsier wrote: > Hello, > > I'm trying to access a mysql database in a plugin. > > -What special compiler flags do I need? I discovered that when I don't > explicitly link lib-sql/libsql.a in, then I get an undefind symbol error > about sql_init when

Re: [Dovecot] Sharing Folders - or views?

2008-04-24 Thread Timo Sirainen
On Mon, 2008-04-21 at 09:49 +1000, Nigel Allen wrote: > I suppose we could achieve this with symlinks but thought I would ask in > case there is a "clever" way to achieve the same end. Some future Dovecot version will hopefully have a better support for shared mailboxes, but for now symlinks are

Re: [Dovecot] Dovecot timeout over NFS

2008-04-24 Thread Guy
On 24/04/2008, Timo Sirainen <[EMAIL PROTECTED]> wrote: > > Have you set maildir_copy_with_hardlinks=yes? > Yes, that's already set. I've also added: default_mail_env = maildir:%h/Maildir/:INDEX=MEMORY after reading the suggestion somewhere. The server is only running one domain so far so it's no

Re: [Dovecot] dovecot 1.1.rc4 -> 1.0.10 : Recent counter wrong

2008-04-24 Thread Timo Sirainen
On Mon, 2008-04-21 at 11:03 +0200, Laurent Papier wrote: > Le Fri, 18 Apr 2008 18:10:29 +0300 > Timo Sirainen <[EMAIL PROTECTED]> écrit: > > > On Apr 18, 2008, at 5:46 PM, Laurent Papier wrote: > > > Hi, > > > I have tested dovecot 1.1.rc4. I seems to works fine with my > > > configuration. > >

Re: [Dovecot] Dovecot timeout over NFS

2008-04-24 Thread Timo Sirainen
On Mon, 2008-04-21 at 15:56 +0100, Guy wrote: > Hi, > > I'm using postfix with Dovecot 1.0.5 and getting the following errors > when a user moves a massive folders contents to trash (65000 or so > messages): > Apr 21 15:31:01 mink dovecot: IMAP([EMAIL PROTECTED]): Timeout while > waiting for lock

Re: [Dovecot] Problems with Public Folders

2008-04-24 Thread Timo Sirainen
On Mon, 2008-04-21 at 23:54 -0500, Matt Rude wrote: > I am trying to implement public folders on my Fedora 8 + Postfix 2.5.1 + > MySQL + Dovecot 1.0.13. I have Public folder shown in for my users but > when they choose the folder "Public" they receive the error "The mail > server responded: Mailb

Re: [Dovecot] Internal login failure

2008-04-24 Thread Timo Sirainen
On Tue, 2008-04-22 at 04:36 +0200, David Andel wrote: > * BYE Internal login failure. Refer to server log for more information. > Connection closed by foreign host. This is an error. > /var/log/dovecot-info.log sais (I have removed the last block in the IP): Based on the file name this contains

Re: [Dovecot] Connection problems using dovecot proxy

2008-04-24 Thread Timo Sirainen
On Thu, 2008-04-24 at 16:02 +0300, Timo Sirainen wrote: > On Wed, 2008-04-23 at 16:00 +0200, Adrian Wojcicki | > Unternehmensberatung Wojcicki wrote: > > Now, while this setup works using Thunderbird, iPhone, etc. I have > > problems connecting using a Samsung Qbowl. It simply aborts with a > > c

Re: [Dovecot] Windows Mobile and IMAP proxy

2008-04-24 Thread Timo Sirainen
On Tue, 2008-04-22 at 11:24 +0200, Onno Molenkamp wrote: > It turns out the Windows Mobile IMAP client gets confused by the IMAP proxy > first sending the command tag in the reply and then, in a seperate packet, > the > rest of the line. Although not being able to handle this looks like a very

Re: [Dovecot] Connection problems using dovecot proxy

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-23 at 16:00 +0200, Adrian Wojcicki | Unternehmensberatung Wojcicki wrote: > Now, while this setup works using Thunderbird, iPhone, etc. I have > problems connecting using a Samsung Qbowl. It simply aborts with a > connection error. .. > Could somebody point me into a direction whe

Re: [Dovecot] disconnect error

2008-04-24 Thread Timo Sirainen
On Wed, 2008-04-23 at 12:54 +0200, ML wrote: > Looking at dovecot logs I discover that, each time the error shows up > for him, I have this : > > dovecot: pop3[95137]: Info: user=<[EMAIL PROTECTED]> Disconnected > top=0/0, retr=0/0, del=0/4, size=127101 Looks like I changed IMAP's disconnecti

Re: [Dovecot] Adding new storage backend to Dovecot

2008-04-24 Thread Timo Sirainen
On Tue, 2008-04-22 at 20:15 -0700, Earl Dreller wrote: > I'm exploring adding a new storage backend to dovecot, storing mail in some > sort of database, and had a few questions. Hoping someone here might be able > to help :) > > -Is all of the 'storage' specific code in housed in lib-storage/index

Re: [Dovecot] mailtrain with dovecot antispam plugin

2008-04-24 Thread Johannes Berg
> sorry taking it off the list. Didn't want to bother the others with my > whining.. ;) Heh :) > I've briefly tested the patch you sugested and it seems to work like a > charm. Thanks for testing, I have committed it. johannes signature.asc Description: This is a digitally signed message p

[Dovecot] 1.1 a major improvement

2008-04-24 Thread Cor Bosman
I recently switched one of our 30 imap servers to 1.1RC4 from 1.0.x, and the difference is huge. The load on the server dropped from 5+ to 0.3 or so. This means there is no more io waiting going on. Thats on FreeBSD 6.2. Great work Timo! Cor