Re: [Dovecot] dirsize quota in sql pass db?

2009-02-04 Thread Timo Sirainen
On Feb 4, 2009, at 11:21 PM, Ken Anderson wrote: Is there a way to return a per user dirsize quota from a passdb sql lookup? If so, what is the syntax? Yes, but only if you use prefetch userdb. Do you? If not, you'll need to return it from userdb. maybe "select quota as userdb_quota"? ..

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Feb 4, 2009, at 9:02 PM, Mark Costlow wrote: http://hg.dovecot.org/dovecot-1.2/rev/6f29380ba3a0 http://hg.dovecot.org/dovecot-1.2/rev/ea9a186d64f9 Are both of these patches needed for the "unlock after a few seconds" feature, or just the 2nd one? I ask because the description of the 1st on

[Dovecot] dirsize quota in sql pass db?

2009-02-04 Thread Ken Anderson
Is there a way to return a per user dirsize quota from a passdb sql lookup? If so, what is the syntax? maybe "select quota as userdb_quota"? ..and in mysql table, quota column would be: "quota=dirsize:storage=10240" ? I'm using mbox, with /etc/passwd userdb, and mysql passdb. Thanks, Ken -- K

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Mark Costlow
On Wed, Feb 04, 2009 at 03:37:38PM -0500, Timo Sirainen wrote: > On Wed, 2009-02-04 at 15:06 -0500, Alan Ferrency wrote: > > The "unlock after a few seconds" option would be great. > > Implemented for v1.2, probably apply to v1.1 also: > > http://hg.dovecot.org/dovecot-1.2/rev/6f29380ba3a0 > http

Re: [Dovecot] Script: Moving Maildirs between servers

2009-02-04 Thread Jose Celestino
Words by Giuliano Gavazzi [Thu, Feb 05, 2009 at 12:51:28AM +0100]: > > On T 5 Feb, 2009, at 00:13 , Timo Sirainen wrote: > >> For Maildir message files incomplete messages aren't just unlikely, >> they're never possible. > > I was implying Maildir of course. I am not familiar with the > specifica

Re: [Dovecot] Script: Moving Maildirs between servers

2009-02-04 Thread Giuliano Gavazzi
On T 5 Feb, 2009, at 00:13 , Timo Sirainen wrote: For Maildir message files incomplete messages aren't just unlikely, they're never possible. I was implying Maildir of course. I am not familiar with the specification though. Does it require files to be written initially in tmp to be moved

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Seth Mattinen
Timo Sirainen wrote: > On Wed, 2009-02-04 at 14:55 -0800, Seth Mattinen wrote: >> Timo Sirainen wrote: >>> On Wed, 2009-02-04 at 13:23 -0800, Seth Mattinen wrote: Like imapproxy which holds the connection for subsequent requests to avoid the short-lived HTTP connection issue. I certainly

Re: [Dovecot] Script: Moving Maildirs between servers

2009-02-04 Thread Timo Sirainen
On Thu, 2009-02-05 at 00:05 +0100, Giuliano Gavazzi wrote: > > I can imagine that one could end up in the backup copy with an > > incomplete/corrupt file (but this will be fixed in the next rsync, > > hopefully), but I don't see how rsync could corrupt the original files > > in the mail server. >

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 14:55 -0800, Seth Mattinen wrote: > Timo Sirainen wrote: > > On Wed, 2009-02-04 at 13:23 -0800, Seth Mattinen wrote: > >> Like imapproxy which holds the connection for subsequent requests to > >> avoid the short-lived HTTP connection issue. I certainly recommend it > >> for sq

Re: [Dovecot] Script: Moving Maildirs between servers

2009-02-04 Thread Giuliano Gavazzi
On T 3 Feb, 2009, at 18:40 , Eduardo M KALINOWSKI wrote: Charles Marcus wrote: So you're rsyncing a live mail system with no problems? I do it every day for backups. :-) I've been tempted to start doing this, but I was under the impression it could be risky (cause file corruption)? I

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Seth Mattinen
Timo Sirainen wrote: > On Wed, 2009-02-04 at 13:23 -0800, Seth Mattinen wrote: >> Like imapproxy which holds the connection for subsequent requests to >> avoid the short-lived HTTP connection issue. I certainly recommend it >> for squirrelmail installations since squirrelmail can't IDLE the connect

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 13:23 -0800, Seth Mattinen wrote: > Like imapproxy which holds the connection for subsequent requests to > avoid the short-lived HTTP connection issue. I certainly recommend it > for squirrelmail installations since squirrelmail can't IDLE the connection. I've heard imapproxy

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
I mean it will probably work. I'm trying to get v1.1 to a deep feature freeze. On Wed, 2009-02-04 at 16:41 -0500, Alan Ferrency wrote: > Thanks! > > Do you mean you will probably apply it to 1.1, or only that it will > probably also work on the 1.1 branch? > > I'll try to get this tested soon. >

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Alan Ferrency
Thanks! Do you mean you will probably apply it to 1.1, or only that it will probably also work on the 1.1 branch? I'll try to get this tested soon. Alan Ferrency pair Networks, Inc. a...@pair.com On Wed, 4 Feb 2009, Timo Sirainen wrote: > On Wed, 2009-02-04 at 15:06 -0500, Alan Ferrency wrote

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Seth Mattinen
Justin Krejci wrote: >>> Could it be some (older?) webmail clients that use pop3 instead of imap? >> I wouldn't expect a webmail client to hold a pop3 connection open >> across multiple web requests. We have standard webmail clients >> available for customer use, but they use IMAP. With the frequ

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Justin Krejci
> > Could it be some (older?) webmail clients that use pop3 instead of imap? > > I wouldn't expect a webmail client to hold a pop3 connection open > across multiple web requests. We have standard webmail clients > available for customer use, but they use IMAP. With the frequency > we're seeing th

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 14:10 -0500, Rob Mangiafico wrote: > Is there a global timeout we can set that will close any pop3 connection > after say 15 minutes? POP3 client is disconnected after not doing anything for 10 minutes. I don't see how this could be changed to work any differently without br

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 15:06 -0500, Alan Ferrency wrote: > The "unlock after a few seconds" option would be great. Implemented for v1.2, probably apply to v1.1 also: http://hg.dovecot.org/dovecot-1.2/rev/6f29380ba3a0 http://hg.dovecot.org/dovecot-1.2/rev/ea9a186d64f9 signature.asc Description:

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Alan Ferrency
> > > But I've never before heard POP3 clients behaving that way, so I'd like > > > to know what exactly are they doing. Are they not sending anything? Are > > > they NOOPing? I don't see any reason for them to be doing either.. > > > > In the cases I've looked into, the client seems to be connecte

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Justin Krejci
> > > Why doesn't this happen with imap? Why can't we make pop3 do what > > > imap does? Even if it's inefficient, it's better than hanging all > > > incoming mail delivery while deliver eats up our local concurrency > > > limits. > > > > IMAP unlocks mbox after each command is done. But POP3 cli

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 14:58 -0500, Timo Sirainen wrote: > On Wed, 2009-02-04 at 14:51 -0500, Alan Ferrency wrote: > > One problem which might be making this worse than it needs to be, is > > the fact that mbox_lock_flock in mbox-lock.c is not using a blocking > > flock(); instead, it's polling for

Re: [Dovecot] dovecot Digest, Vol 70, Issue 16

2009-02-04 Thread Anthony Davis
Please remove me from the mailing list, i have tried a number of times to un-subscribe, but i still keep getting emails... Tony On 4 Feb 2009, at 19:35, dovecot-requ...@dovecot.org wrote: dovecot@dovecot.org

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Alan Ferrency
On Wed, 4 Feb 2009, Timo Sirainen wrote: > > Why doesn't this happen with imap? Why can't we make pop3 do what > > imap does? Even if it's inefficient, it's better than hanging all > > incoming mail delivery while deliver eats up our local concurrency > > limits. > > IMAP unlocks mbox after each

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 14:51 -0500, Alan Ferrency wrote: > One problem which might be making this worse than it needs to be, is > the fact that mbox_lock_flock in mbox-lock.c is not using a blocking > flock(); instead, it's polling for a non-blocking lock. This technique > can cause lock starvation

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Alan Ferrency
Rob Mangiafico wrote: >On Wed, 4 Feb 2009, Timo Sirainen wrote: >> On Wed, 2009-02-04 at 11:17 -0700, Mark Costlow wrote: >>> Hello, I'm preparing to convert from qpopper + UW-IMAP to dovecot. >>> So far testing has gone very well. One problem we haven't figured >>> out is that long-running POP s

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Scott Silva
>> >> Switch to Maildir and the problem goes away. The issue is that the mbox >> file is read-locked when the first message is read. And since the POP3 >> client most likely just keeps reading messages for the entire session, >> the mbox file kept read-locked all the time. Can't really be fixed >>

Re: [Dovecot] Starting using LaunchDaemons

2009-02-04 Thread Scott Silva
on 2-4-2009 8:14 AM Bruce Bodger spake the following: > I've figured this one out... Just wanted to get it into the dovecot > mailing list archive so that somebody in the future might find it if > they need it. > > Running Dovecot on Mac OS X 10.4.11 and using LaunchDaemon to start. > Following

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 12:07 -0700, Mark Costlow wrote: > > Switch to Maildir and the problem goes away. The issue is that the mbox > > file is read-locked when the first message is read. And since the POP3 > > client most likely just keeps reading messages for the entire session, > > the mbox file

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Rob Mangiafico
On Wed, 4 Feb 2009, Timo Sirainen wrote: On Wed, 2009-02-04 at 11:17 -0700, Mark Costlow wrote: Hello, I'm preparing to convert from qpopper + UW-IMAP to dovecot. So far testing has gone very well. One problem we haven't figured out is that long-running POP sessions keep the mailbox locked, so

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Mark Costlow
On Wed, Feb 04, 2009 at 01:25:21PM -0500, Timo Sirainen wrote: > On Wed, 2009-02-04 at 11:17 -0700, Mark Costlow wrote: > > Hello, I'm preparing to convert from qpopper + UW-IMAP to dovecot. > > So far testing has gone very well. One problem we haven't figured > > out is that long-running POP sess

Re: [Dovecot] auth_debug_passwords

2009-02-04 Thread Josh Gentry
Thanks! Josh On Wed, Feb 04, 2009 at 12:24:48PM -0500, Timo Sirainen wrote: > On Tue, 2009-02-03 at 17:33 -0700, Josh Gentry wrote: > > I have also set these options to yes, because I thought they might be > > required for auth_debug_passwords to work: > .. > > pam(jkd,some IP): pam_authenticate(

Re: [Dovecot] pop3_lock_session question

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 11:17 -0700, Mark Costlow wrote: > Hello, I'm preparing to convert from qpopper + UW-IMAP to dovecot. > So far testing has gone very well. One problem we haven't figured > out is that long-running POP sessions keep the mailbox locked, so that > the MDA times out while trying

[Dovecot] pop3_lock_session question

2009-02-04 Thread Mark Costlow
Hello, I'm preparing to convert from qpopper + UW-IMAP to dovecot. So far testing has gone very well. One problem we haven't figured out is that long-running POP sessions keep the mailbox locked, so that the MDA times out while trying to deliver. We're using "maildrop" as our MDA if that matters.

Re: [Dovecot] Shared subscription, acl-list and uidvalidity(s)

2009-02-04 Thread Thomas Hummel
On Fri, Jan 30, 2009 at 03:20:45PM +0100, Thomas Hummel wrote: > I follow the 'Shared subscriptions' section of the wiki : > > drw-r-s--- 4 root doveshared 4096 Jan 30 14:19 public > -rw-r- 1 root doveshared18 Jan 30 13:38 public/subscriptions > > As expected, dovecot (and it shows

Re: [Dovecot] auth_debug_passwords

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 08:52 -0200, Eduardo M KALINOWSKI wrote: > Josh Gentry wrote: > > Hi. I'm new to Dovecot and about to start using it in production. In > > the config file, I set the option, auth_debug_passwords, to yes. I do > > not see any failed passwords logged, however. It did cause m

Re: [Dovecot] auth_debug_passwords

2009-02-04 Thread Timo Sirainen
On Tue, 2009-02-03 at 17:33 -0700, Josh Gentry wrote: > I have also set these options to yes, because I thought they might be > required for auth_debug_passwords to work: .. > pam(jkd,some IP): pam_authenticate() failed: authentication error > (password mismatch?) Hmm. Here you go: http://hg.dovec

Re: [Dovecot] Expire plugin does not work

2009-02-04 Thread Timo Sirainen
On Wed, 2009-02-04 at 11:27 +0100, Nicolas Letellier wrote: > Info: us...@domain.tld/Trash: stop, expire time in future: Wed Feb 4 > 21:00:50 2009 > > > Why this message? I have 3 mailboxes, and the message appears only with this > mailbox. > The 2 others mailbox have mails into Trash and Junk

Re: [Dovecot] auth_debug_passwords

2009-02-04 Thread Josh Gentry
On Wed, Feb 04, 2009 at 08:52:10AM -0200, Eduardo M KALINOWSKI wrote: > Josh Gentry wrote: > > Hi. I'm new to Dovecot and about to start using it in production. In > > the config file, I set the option, auth_debug_passwords, to yes. I do > > not see any failed passwords logged, however. It did

[Dovecot] Starting using LaunchDaemons

2009-02-04 Thread Bruce Bodger
I've figured this one out... Just wanted to get it into the dovecot mailing list archive so that somebody in the future might find it if they need it. Running Dovecot on Mac OS X 10.4.11 and using LaunchDaemon to start. Following a system crash, dovecot failed to restart with this in the

[Dovecot] Deferred emails on alias emails

2009-02-04 Thread Jehan Pagès
Hi, I am currently making a fresh install of email server. I am having some issue with dovecot-antispam (cf. other emails), and noticed that I was having issues on aliases, which apparently where not forwarded to the actual SMTP server after passing through dspam. Still don't figure why but tempor

Re: [Dovecot] Dovecot-antispam does not work

2009-02-04 Thread Marcin Rzepecki
Wed, Feb 04, 2009 at 12:12:44PM +0100, Jehan Pag?s wrote: > I saw this piece of code and did the same as you in my change of course. > Unfortunately, it didn't work (no logged "marked as SPAM", nor change in my > stats. I have dovecot 1.1.7-r1 though, so it is probably the reason. Logging '...mark

Re: [Dovecot] Dovecot-antispam does not work

2009-02-04 Thread Jehan Pagès
Hi, On Wed, Feb 4, 2009 at 12:45 AM, Marcin Rzepecki wrote: > Yes, it checks if dspam was called correctly, but it didn't worked > with dovecot >=1.1 > I've comment out checking call_dspam exit status, but: > --- > + call_dspam(item->sig, item->wanted); >item = ite

Re: [Dovecot] Dovecot-antispam does not work

2009-02-04 Thread Charles Marcus
On 2/3/2009, Timo Sirainen (t...@iki.fi) wrote: > ..And my opinion is that "reply to all" is the correct behavior most of > the time. I just hate it when I'm sending questions to other lists which > I don't actively follow and people reply to me a few days later but > don't Cc: me. I can easily los

Re: [Dovecot] auth_debug_passwords

2009-02-04 Thread Eduardo M KALINOWSKI
Josh Gentry wrote: > Hi. I'm new to Dovecot and about to start using it in production. In > the config file, I set the option, auth_debug_passwords, to yes. I do > not see any failed passwords logged, however. It did cause more verbose > authentication logging, but failed passwords are still hi

[Dovecot] Expire plugin does not work

2009-02-04 Thread Nicolas Letellier
Hi. I test expire plugin for my dovecot 1.1.8. But, it seems to not work. I have 3 mailboxes on my machine. I want my messages in Junk and Trash expire after 1 day. I removed all messages in them before installing expire plugin. See my dovecot.conf: expire: Trash 1 Junk 1 expire_dict: proxy

Re: [Dovecot] Permission denied problems

2009-02-04 Thread shacky
> I'm trying to configure Dovecot for Vpopmail. > The authentication works good, but I have some "permission denied" > error when I try to open the IMAP folders: I solved the problem, there was a problem regarding the uid and gid in dovecot.conf. Thank you very much! Bye.

Re: [Dovecot] antispam plugin for Dovecot v1.2

2009-02-04 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 3 Feb 2009, Johannes Berg wrote: Sorry, no, I definitely don't have time at the moment. Not until April or later. OK, acknowledged. Thanks, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSYl

Re: [Dovecot] libsieve problems / wishes

2009-02-04 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 3 Feb 2009, Stephan Bosch wrote: only if your clients do not use the obsolete mark/unmark commands. Could you confirm this for me? Horde and all my users manually wrote Sieve scripts use addflag / removeflag only. It seems that some peopl