[Dovecot] set \Seen flag on mail

2009-03-03 Thread J.P. Trosclair
I'm looking for a way to set the \Seen flag on certain mail no matter what. Currently I'm using a global sieve script to do this. From what I've read, there is no way to enforce the global script if the user creates their own sieve script. More details: I have a postfix transport that along w

Re: [Dovecot] tls and auth plain login

2009-03-03 Thread Timo Sirainen
On Mar 3, 2009, at 7:55 PM, Bradley Giesbrecht wrote: ad removed disable_plaintext_auth from my conf because with it in place it failed to show up in "dovecot -n". I figured I had it in the wrong place. Should disable_plaintext_auth show in "dovecot -n"? dovecot -n shows settings that you h

Re: [Dovecot] tls and auth plain login

2009-03-03 Thread Bradley Giesbrecht
On Mar 3, 2009, at 2:37 PM, Timo Sirainen wrote: On Tue, 2009-03-03 at 10:48 -0800, Bradley Giesbrecht wrote: I want to allow plain text passwords only on ssl/tls. The default settings do that. Is it possible to have: auth default { mechanisms = cram-md5 ntlm mechanisms = plain cram-

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Scott Silva
on 3-3-2009 3:15 PM Mark Hedges spake the following: > On Tue, 3 Mar 2009, Scott Silva wrote: >> You could use dovecot's deliver and then you won't need to >> worry about procmails locking. > > That's not going to happen either, a large portion of the > application depends on procmail filtering, a

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Timo Sirainen
On Mar 3, 2009, at 6:11 PM, Mark Hedges wrote: Ah. Well, the last choice is then: mbox_read_locks = dotlock mbox_write_locks = dotlock Dotlocking for reading isn't really optimal, but shouldn't really make much of a difference usually. I tried that before, that would be great if it worked fo

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Mark Hedges
On Tue, 3 Mar 2009, Scott Silva wrote: > You could use dovecot's deliver and then you won't need to > worry about procmails locking. That's not going to happen either, a large portion of the application depends on procmail filtering, and that is totally entrenched. Mark

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Scott Silva
on 3-3-2009 2:55 PM Mark Hedges spake the following: > > On Tue, 3 Mar 2009, Timo Sirainen wrote: > How does IMAP lock the /var/spool/mail/user file? mbox_read_locks and mbox_write_locks defines it. >>> mbox_read_locks = fcntl >>> mbox_write_locks = dotlock fcntl >>> >>> Unfortunately ope

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Mark Hedges
On Tue, 3 Mar 2009, Timo Sirainen wrote: > > > You can change those settings. For example: > > > > > > mbox_read_locks = flock > > > mbox_write_locks = dotlock flock > > > > > > Now Dovecot is compatible with openwebmail. And with > > > procmail both are still protected by the dotlock. > > > > No

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 14:55 -0800, Mark Hedges wrote: > > On Tue, 3 Mar 2009, Timo Sirainen wrote: > > > > > How does IMAP lock the /var/spool/mail/user file? > > > > mbox_read_locks and mbox_write_locks defines it. > > > > > > mbox_read_locks = fcntl > > > mbox_write_locks = dotlock fcntl > > > >

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Mark Hedges
On Tue, 3 Mar 2009, Timo Sirainen wrote: > > > > How does IMAP lock the /var/spool/mail/user file? > > > mbox_read_locks and mbox_write_locks defines it. > > > > mbox_read_locks = fcntl > > mbox_write_locks = dotlock fcntl > > > > Unfortunately openwebmail only respects dotlocks. (or > > flock,

Re: [Dovecot] dovecot 1.1.11 errors

2009-03-03 Thread Timo Sirainen
On Fri, 2009-02-27 at 14:01 +0100, Stéphane Cottin wrote: > Hi, > > I sometimes got the following log entries with dovecot 1.1.11 : > > > mail.err: Feb 27 10:06:54 dovecot: IMAP(hid...@email.com): > write(dnotify pipe) failed: Bad file descriptor > mail.err: Feb 27 10:06:54 dovecot: IMAP(hid..

Re: [Dovecot] Outlook cant delete folders

2009-03-03 Thread Timo Sirainen
On Fri, 2009-02-27 at 14:42 -0600, Romer Ventura wrote: > Hello, > > It has been brought to my attention that outlook users cant delete > folders from their mailbox. They can move them around and erase > emails, but when it comes to folders, they cant.. Any ideas..? Only Outlook users, or eve

Re: [Dovecot] no auth attempts: log

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 14:52 +0100, Mathieu Kretchner wrote: > Hello, > > is there any option that could disable such log : > > Mar 2 16:47:31 imap dovecot: imap-login: Disconnected (no auth > attempts): rip=127.0.0.1, lip=127.0.0.1, secured, port=143 So those are some kind of heartbeat checks?

Re: [Dovecot] tls and auth plain login

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 10:48 -0800, Bradley Giesbrecht wrote: > I want to allow plain text passwords only on ssl/tls. The default settings do that. > Is it possible to have: > auth default { > mechanisms = cram-md5 ntlm mechanisms = plain cram-md5 ntlm And then verify that you have disable_

Re: [Dovecot] problems with dotlock

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 12:36 -0800, Mark Hedges wrote: > > It should have logged something different though? Like > > appending "(core not dumped - is the home dir ok?)" > > Ah yes. > > Mar 3 12:34:14 anubis dovecot: child 27262 (pop3) killed > with signal 11 (core not dumped - is home dir set?)

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 14:20 -0800, Mark Hedges wrote: > On Tue, 3 Mar 2009, Timo Sirainen wrote: > > > On Tue, 2009-03-03 at 13:54 -0800, Mark Hedges wrote: > > > How does IMAP lock the /var/spool/mail/user file? > > > > mbox_read_locks and mbox_write_locks defines it. > > mbox_read_locks = fcntl

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Mark Hedges
On Tue, 3 Mar 2009, Timo Sirainen wrote: > On Tue, 2009-03-03 at 13:54 -0800, Mark Hedges wrote: > > How does IMAP lock the /var/spool/mail/user file? > > mbox_read_locks and mbox_write_locks defines it. mbox_read_locks = fcntl mbox_write_locks = dotlock fcntl Unfortunately openwebmail only res

Re: [Dovecot] imap locking spool?

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 13:54 -0800, Mark Hedges wrote: > How does IMAP lock the /var/spool/mail/user file? mbox_read_locks and mbox_write_locks defines it. > Here's my problem: I'm writing a script to expire old or > oversize mail through a series of archive folders. I don't > want to take the w

[Dovecot] imap locking spool?

2009-03-03 Thread Mark Hedges
How does IMAP lock the /var/spool/mail/user file? Here's my problem: I'm writing a script to expire old or oversize mail through a series of archive folders. I don't want to take the whole server down to do this, nor does it seem like I would have to lock the user out entirely if I can manage t

Re: [Dovecot] failed assertion in 1.1.8: istream.c: line 81

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 15:42 -0500, Alan Ferrency wrote: > On Tue, 3 Mar 2009, Timo Sirainen wrote: > > > On Tue, 2009-03-03 at 15:35 -0500, Alan Ferrency wrote: > > > I have a core dump available for deliver; here's a backtrace: > > > > Could you also do: > > > > > #6 0x080bb8a1 in i_stream_read

Re: [Dovecot] failed assertion in 1.1.8: istream.c: line 81

2009-03-03 Thread Alan Ferrency
On Tue, 3 Mar 2009, Timo Sirainen wrote: > On Tue, 2009-03-03 at 15:35 -0500, Alan Ferrency wrote: > > I have a core dump available for deliver; here's a backtrace: > > Could you also do: > > > #6 0x080bb8a1 in i_stream_read (stream=0x8102e28) at istream.c:93 > > fr 6 > p *stream > p *stream.real

Re: [Dovecot] failed assertion in 1.1.8: istream.c: line 81

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 15:35 -0500, Alan Ferrency wrote: > I have a core dump available for deliver; here's a backtrace: Could you also do: > #6 0x080bb8a1 in i_stream_read (stream=0x8102e28) at istream.c:93 fr 6 p *stream p *stream.real_stream p *stream.real_stream.parent p *stream.real_stream.

Re: [Dovecot] problems with dotlock

2009-03-03 Thread Mark Hedges
On Tue, 3 Mar 2009, Timo Sirainen wrote: > > > http://hg.dovecot.org/dovecot-1.1/rev/6e9ca7f7e2a1 > > > > Nope. Applied this to a pristine source. Still nothing. > > It should have logged something different though? Like > appending "(core not dumped - is the home dir ok?)" Ah yes. Mar 3 12:3

[Dovecot] failed assertion in 1.1.8: istream.c: line 81

2009-03-03 Thread Alan Ferrency
Hello, We're having a problem in Dovecot 1.1.8 with a failed assertion on certain mbox format mailboxes. It happens both with deliver when it attempts to delier to the mailbox, and with IMAP connections for the affected box (though I'm not sure what they're doing at the time). Mar 3 12:55:26 do

Re: [Dovecot] problems with dotlock

2009-03-03 Thread Timo Sirainen
On Tue, 2009-03-03 at 08:34 -0800, Mark Hedges wrote: > > Done, also improved logging: > > > > http://hg.dovecot.org/dovecot-1.1/rev/6e9ca7f7e2a1 > > Nope. Applied this to a pristine source. Still nothing. It should have logged something different though? Like appending "(core not dumped - is t

[Dovecot] GSSAPI cross-realm fixed

2009-03-03 Thread Bryan Jacobs
Attached is a patch which in my environment (Linux/Heimdal 1.2.1) fixes cross-realm GSSAPI authentication. Changes it makes: 1. When using krb5_kuserok, do not call gss_compare_name to check that authn_name and authz_name are the same. Instead, make TWO calls to krb5_kuserok, one for each ID. I

[Dovecot] tls and auth plain login

2009-03-03 Thread Bradley Giesbrecht
Hello List, I want to allow plain text passwords only on ssl/tls. Is it possible to have: auth default { mechanisms = cram-md5 ntlm .. } and then over-ride this when connection is ssl/tls to allow plain and login? I have tried adding "mechanisms = plain login cram-md5 ntlm" to "p

[Dovecot] GSSAPI cross-realm still broken

2009-03-03 Thread Bryan Jacobs
I've been trying to track down some problems with Dovecot in a Kerberos 5 cross-realm environment, and there seem to be a few issues. LOGIN/PLAIN work fine using pam_krb5, but GSSAPI is a bit harder to handle. On line 436 of src/auth/mech-gssapi.c, the authn_name and the authz_name are compared us

Re: [Dovecot] Anyone know or have a perl, c/c++ script?

2009-03-03 Thread Brandon Lamb
On Tue, Mar 3, 2009 at 9:33 AM, Brandon Lamb wrote: > > Hello all, > Im hoping maybe someone on this list has already looked for or built > something similiar. > Basically from what I can tell, phps imap libraries or whatever dont support > setting custom keywords. So I am wondering if someone h

[Dovecot] Anyone know or have a perl, c/c++ script?

2009-03-03 Thread Brandon Lamb
Hello all, Im hoping maybe someone on this list has already looked for or built something similiar. Basically from what I can tell, phps imap libraries or whatever dont support setting custom keywords. So I am wondering if someone has a library or script that can take a username, domain, password,

Re: [Dovecot] problems with dotlock

2009-03-03 Thread Mark Hedges
On Mon, 2 Mar 2009, Timo Sirainen wrote: > > I tried using a pristine 1.1.11 source build with a > > core_pattern directory that was owned by root, or by > > dovecot, or by the user, but I still didn't see a core > > there. > > In my setups it core dumps to the user's home directory > just fine.

Re: [Dovecot] Seperate auth per protocol (pop3/imap)

2009-03-03 Thread Gregor Hermens
Hi Guy, Am Dienstag, 3. März 2009 schrieb Guy: > During discussions with the boss we've speculated about having users > having only specific services available. One of the ideas was to have > users being able to specify if they wanted POP3 or IMAP and whether we > could limit their access to one o

[Dovecot] Seperate auth per protocol (pop3/imap)

2009-03-03 Thread Guy
Hi, During discussions with the boss we've speculated about having users having only specific services available. One of the ideas was to have users being able to specify if they wanted POP3 or IMAP and whether we could limit their access to one or the other server side. We use MySQL for the user

[Dovecot] no auth attempts: log

2009-03-03 Thread Mathieu Kretchner
Hello, is there any option that could disable such log : Mar 2 16:47:31 imap dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured, port=143 Mar 2 16:48:31 imap last message repeated 2 times Mar 2 16:49:32 imap last message repeated 2 times Mar 2 16:51:02

Re: [Dovecot] under load

2009-03-03 Thread Mohsen Pahlevanzadeh
I have solved my problem. On Tue, 2009-03-03 at 09:21 +0330, Mohsen Pahlevanzadeh wrote: > Dear all, > If you have a IMAP or pop3 server under load with vpopmail, can you mail > me dovecot.conf ? > Yours, > Mohsen >