[Dovecot] Make entire mailbox read-only (ACLs?)

2011-12-09 Thread David Jonas
Hello, Is there a way of locking a mailbox, effectively making it read-only to IMAP clients? I've read through http://wiki2.dovecot.org/ACL. I created dovecot-acl with the content "owner lr" in .INBOX which seems to keep me from copying messages into the folder, but not out. I have the plugin co

Re: [Dovecot] Make entire mailbox read-only (ACLs?)

2011-12-09 Thread David Jonas
On 12/9/11 9:13 PM, Timo Sirainen wrote: > On Fri, 2011-12-09 at 11:16 -0800, David Jonas wrote: > >> Is there a way of locking a mailbox, effectively making it read-only to >> IMAP clients? > By "mailbox" you mean the user's all folders? This isn't

[Dovecot] Maildir migration and uids

2011-12-21 Thread David Jonas
I'm in the process of migrating a large number of maildirs to a 3rd party dovecot server (from a dovecot server). Tests have shown that using imap to sync the accounts doesn't preserve the uidl for pop3 access. My current attempt is to convert the maildir to mbox and add an X-UIDL header in the pr

[Dovecot] Dovecot imap proxy to nginx, incompatible

2011-12-23 Thread David Jonas
It appears that using dovecot to proxy to nginx imap proxy doesn't work. >From tcpdump and browsing the source it appears dovecot sends, C CAPABILITY\r\nL LOGIN \r\n and nginx only responds to the CAPABILITY command. Is this a problem with dovecot sending the two commands without waiting for th

Re: [Dovecot] Maildir migration and uids

2012-01-03 Thread David Jonas
On 12/29/11 5:35 AM, Timo Sirainen wrote: > On 22.12.2011, at 3.52, David Jonas wrote: > >> I'm in the process of migrating a large number of maildirs to a 3rd >> party dovecot server (from a dovecot server). Tests have shown that >> using imap to sync the accounts

[Dovecot] dovecot sasl with postfix: SASL LOGIN authentication failed: Connection lost to authentication server

2012-04-30 Thread David Jonas
When using dovecot (2.1.5) sasl with postfix (2.8.4) behind nginx smtp proxy I am seeing a ton of errors of the form: postfix/smtpd[7731]: warning: unknown[192.168.0.6]: SASL LOGIN authentication failed: Connection lost to authentication server Nothing is printed by dovecot in the logs regard

Re: [Dovecot] Dovecot for POP3S proxying

2012-05-02 Thread David Jonas
On Wed May 2 06:41:00 2012, Gilles Albusac wrote: > I would like to configure Dovecot for POP3S proxying all users from the > Internet to the internal Exchange Mail Server. Unless I'm missing something with your request, you don't need dovecot. Any ssl proxy can do that for you, such as stunnel

[Dovecot] 1.1rc4 file-offset-size unsupported?

2008-05-02 Thread David Jonas
Is --with-file-offset-size no longer supported in 1.1? # ./configure \ --prefix=/usr/local/dovecot-1.1 \ --with-mysql \ --with-file-offset-size=32 \ --with-ioloop=best \ --with-pop3d \ --with-ssl \ --with-deliver \ ... checking for _FILE_OFFSET_BITS value needed for l

Re: [Dovecot] 1.1rc4 file-offset-size unsupported?

2008-05-02 Thread David Jonas
Timo Sirainen wrote: On Fri, 2008-05-02 at 14:57 -0700, David Jonas wrote: Is --with-file-offset-size no longer supported in 1.1? No. I thought no-one cared, and I found this nice AC_SYS_LARGEFILE autoconf macro that did all the work for me, so I decided to use it. Hmm. I guess it would be

[Dovecot] Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged

2008-05-02 Thread David Jonas
Upon upgrading from 1.0.2 to 1.1rc4 I see this error for many of our users: Getting size of message UID=1 failed Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged Logging in with IMAP I would see a bunch of messages with no subject or time and blank bodies (usine horde/i

Re: [Dovecot] Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged

2008-05-05 Thread David Jonas
Timo Sirainen wrote: I finally figured out what's happening: v1.0 writes expunges as plain "expunged" records to dovecot.index.log file. v1.1 treats such records as "expunge requests", while the actual expunging is done by writing another "expunged (ext)" record. With v1.1 dovecot.index file is

Re: [Dovecot] Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged

2008-05-05 Thread David Jonas
Timo Sirainen wrote: I finally figured out what's happening: v1.0 writes expunges as plain "expunged" records to dovecot.index.log file. v1.1 treats such records as "expunge requests", while the actual expunging is done by writing another "expunged (ext)" record. With v1.1 dovecot.index file is

Re: [Dovecot] Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged

2008-05-05 Thread David Jonas
Timo Sirainen wrote: On Mon, 2008-05-05 at 17:46 -0700, David Jonas wrote: Anyway, this fixes the problem: http://hg.dovecot.org/dovecot-1.1/rev/b776f2b8d827 Well, it looked good but pop3 processes started accumulating and pretty soon the load was over 50. No errors were getting logged. strace

[Dovecot] Trim trailing whitespace from username

2008-05-16 Thread David Jonas
Recently we changed Postfix to use Dovecot for our SASL authentication and we ran into trouble with some of our clients having extraneous spaces at the end of their usernames. The quick fix was to add a space to username_chars. The slightly longer fix was a pretty simple patch to Dovecot. I put

Re: [Dovecot] Trim trailing whitespace from username

2008-05-16 Thread David Jonas
Timo Sirainen wrote: On Fri, 2008-05-16 at 00:48 -0700, David Jonas wrote: Recently we changed Postfix to use Dovecot for our SASL authentication and we ran into trouble with some of our clients having extraneous spaces at the end of their usernames. The quick fix was to add a space to

Re: [Dovecot] Trim trailing whitespace from username

2008-05-28 Thread David Jonas
Timo Sirainen wrote: On Fri, 2008-05-16 at 00:48 -0700, David Jonas wrote: Recently we changed Postfix to use Dovecot for our SASL authentication and we ran into trouble with some of our clients having extraneous spaces at the end of their usernames. The quick fix was to add a space to

Re: [Dovecot] Trim trailing whitespace from username

2008-05-28 Thread David Jonas
Cassidy Larson wrote: If you're using MySQL for your database driver you can easily use the TRIM() function in your query to strip off leading and ending whitespace characters. I do that and a "LCASE()" to forcethe userna

[Dovecot] New Dovecot server buildout review

2008-11-13 Thread David Jonas
Hello Everyone, I have the opportunity to do a new mail system build out for about 20k email boxes over a few hundred domains. I already run a system like this, but this time I can do it right :). My thought on storage is to have a 12 drive JBOD system attached via SAS to a 3ware 9690SA raid cont

[Dovecot] CRAM-MD5 and proxy_maybe

2008-11-19 Thread David Jonas
When using proxy_maybe CRAM-MD5 authentication fails when the connection is proxied. Is this expected behavior? Is proxy_maybe too simplified for this case? We're using SQL so I could rewrite the query with IFs to fake proxy_maybe and return the password as NULL and nologin as Y, but if it works t

Re: [Dovecot] CRAM-MD5 and proxy_maybe

2008-11-19 Thread David Jonas
Timo Sirainen wrote: > On Nov 19, 2008, at 8:14 PM, David Jonas wrote: > >> When using proxy_maybe CRAM-MD5 authentication fails when the connection >> is proxied. Is this expected behavior? Is proxy_maybe too simplified for >> this case? > > Fails how? > >>

Re: [Dovecot] SSD drives are really fast running Dovecot

2011-01-12 Thread David Jonas
On 1/12/11 , Jan 12, 9:53 AM, Marc Perkel wrote: > I just replaced my drives for Dovecot using Maildir format with a pair > of Solid State Drives (SSD) in a raid 0 configuration. It's really > really fast. Kind of expensive but it's like getting 20x the speed for > 20x the price. I think the big ga

Re: [Dovecot] SSD drives are really fast running Dovecot

2011-01-14 Thread David Jonas
On 1/12/11 , Jan 12, 11:46 PM, Stan Hoeppner wrote: > David Jonas put forth on 1/12/2011 6:37 PM: > >> I've been considering getting a pair of SSDs in raid1 for just the >> dovecot indexes. The hope would be to minimize the impact of pop3 users >> hammering t

[Dovecot] dsync: Invalid mailbox first_recent_uid

2011-05-26 Thread David Jonas
For the life of me I can't get dsync to work. Please help! Remote server runs dovecot out of /usr/local/dovecot2. Everything makes sense until this line: dsync-local(djo...@vitalwerks.com): Error: Invalid mailbox input from worker server: Invalid mailbox first_recent_uid The local uid is 898

Re: [Dovecot] dsync: Invalid mailbox first_recent_uid

2011-06-03 Thread David Jonas
On 6/3/11 7:25 AM, Timo Sirainen wrote: > On Thu, 2011-05-26 at 23:25 -0700, David Jonas wrote: >> dsync-local(djo...@vitalwerks.com): Error: Invalid mailbox input from >> worker server: Invalid mailbox first_recent_uid >> >> The local uid is 8989 and th

[Dovecot] lmtp: Error: mmap failed with file ... dovecot.index.cache: Cannot allocate memory

2012-08-10 Thread David Jonas
Hello, I have a mailbox with an ungodly number of small messages in it. When new messages are delivered lmtp kicks up an error like the one below. I tried raising the vsz_limit for lmtp but that didn't see to help. Any ideas (besides deleting 400k messages)? Thanks! dovecot: lmtp(6068, u...@examp

Re: [Dovecot] lmtp: Error: mmap failed with file ... dovecot.index.cache: Cannot allocate memory

2012-08-10 Thread David Jonas
On Fri Aug 10 10:10:21 2012, Timo Sirainen wrote: > On 10.8.2012, at 20.05, David Jonas wrote: > >> I have a mailbox with an ungodly number of small messages in it. When >> new messages are delivered lmtp kicks up an error like the one below. I >> tried raising the vsz

Re: [Dovecot] lmtp: Error: mmap failed with file ... dovecot.index.cache: Cannot allocate memory

2012-08-10 Thread David Jonas
On 8/10/12 10:10 AM, Timo Sirainen wrote: > On 10.8.2012, at 20.05, David Jonas wrote: > >> I have a mailbox with an ungodly number of small messages in it. When >> new messages are delivered lmtp kicks up an error like the one below. I >> tried raising the vsz_limit for

[Dovecot] auth socket goes away on reload

2010-06-03 Thread David Jonas
We're using the SQLite backend for authentication of Postfix SASL. When the db is replaced we HUP dovecot to close and reopen its connection. During this time it appears the socket file is removed and Postfix rejects the authentication attempt. From the logs: Jun 3 00:23:02 xxx dovecot: dovecot:

Re: [Dovecot] auth socket goes away on reload

2010-06-03 Thread David Jonas
On 6/3/10 , Jun 3, 9:45 AM, Jerrale Gayle wrote: > On 6/3/2010 12:35 PM, David Jonas wrote: >> We're using the SQLite backend for authentication of Postfix SASL. When >> the db is replaced we HUP dovecot to close and reopen its connection. >> During this time it appears

Re: [Dovecot] auth socket goes away on reload

2010-06-03 Thread David Jonas
On 6/3/10 , Jun 3, 10:16 AM, William Blunn wrote: > On 03/06/2010 17:35, David Jonas wrote: >> We're using the SQLite backend for authentication of Postfix SASL. When >> the db is replaced we HUP dovecot to close and reopen its connection. >> During this time it appears

Re: [Dovecot] auth socket goes away on reload

2010-06-03 Thread David Jonas
On 6/3/10 , Jun 3, 11:17 AM, William Blunn wrote: > On 03/06/2010 19:08, David Jonas wrote: >> On 6/3/10 , Jun 3, 10:16 AM, William Blunn wrote: >> >>> On 03/06/2010 17:35, David Jonas wrote: >>> >>>> We're using the SQLite backend for aut

[Dovecot] Dovecot 2.0.1 Quota dict timeout

2010-09-04 Thread David Jonas
Since an upgrade to 2.0.1 from 1.2.x we're seeing this on (mostly) large mailboxes (Maildir) Sep 4 11:27:25 dovecot: dict: mysql: Connected to 192.168.dd.dd (accounts) ... Sep 4 11:27:46 kelly-a dovecot: lda(u...@example.com):): msgid=<1...@xxx>: saved mail to INBOX Sep 4 11:27:47 dovecot: dic

Re: [Dovecot] Dovecot 2.0.1 Quota dict timeout

2010-09-07 Thread David Jonas
On 9/7/10 , Sep 7, 11:56 AM, Timo Sirainen wrote: > On Sat, 2010-09-04 at 12:17 -0700, David Jonas wrote: >> Sep 4 11:27:47 dovecot: dict: Error: sql dict: commit failed: Not >> connected to database > Hmm. dict process thinks that all of its SQL connections are in use. &

Re: [Dovecot] Dovecot 2.0.1 Quota dict timeout

2010-09-09 Thread David Jonas
On 9/8/10 , Sep 8, 8:05 AM, Timo Sirainen wrote: > On Tue, 2010-09-07 at 18:07 -0700, David Jonas wrote: >>> Well, see if this helps: >>> http://hg.dovecot.org/dovecot-2.0/rev/902f008f17cf >> The patch didn't seem to make a difference. I'm still seeing the

Re: [Dovecot] Dovecot 2.0.1 Quota dict timeout

2010-09-09 Thread David Jonas
On 9/9/10 , Sep 9, 12:23 PM, David Jonas wrote: > On 9/8/10 , Sep 8, 8:05 AM, Timo Sirainen wrote: >> On Tue, 2010-09-07 at 18:07 -0700, David Jonas wrote: >>>> Well, see if this helps: >>>> http://hg.dovecot.org/dovecot-2.0/rev/902f008f17cf >>> The p

[Dovecot] MD5 to CRAM-MD5 password conversion?

2010-09-21 Thread David Jonas
We have a plethora of accounts for which we would like to enable CRAM-MD5 but their passwords are stored as MD5 hashes. Is there anything we can do? Can we take a linux MD5 hashed password (e.g. $1$fac330ee$wd6Tll...) and convert it to dovecot's CRAM-MD5 format (e.g. {CRAM-MD5}b3f297...)? Thanks!

[Dovecot] Aborted: Worker is buggy

2009-08-20 Thread David Jonas
I upgraded from 1.1 to 1.2 a couple months ago and now we are seeing this: Aug 20 05:34:38 kelly dovecot: auth(default): auth workers: Auth request was queued for 7 seconds, 10 left in queue ... Aug 20 05:34:38 kelly dovecot: auth(default): BUG: Worker sent reply with id 53, expected 54 Aug 20

Re: [Dovecot] Aborted: Worker is buggy

2009-08-24 Thread David Jonas
On 8/24/09 , Aug 24, 11:10 AM, Timo Sirainen wrote: On Thu, 2009-08-20 at 08:03 -0700, David Jonas wrote: Aug 20 05:34:38 kelly dovecot: auth(default): BUG: Worker sent reply with id 53, expected 54 http://hg.dovecot.org/dovecot-1.2/rev/0827941c0e7c fixes it, I think. Applied to

Re: [Dovecot] [OT] preferred clients

2009-11-20 Thread David Jonas
On 11/20/09 , Nov 20, 11:13 AM, Charles Marcus wrote: On 11/20/2009, Charles Sprickman (sp...@bway.net) wrote: It is very good compared to TB2. However, the exact problem the OP described still exists in 3.0b4. I've had the folks I setup with TB3 bugging the hell out of me about the "all o

Re: [Dovecot] [OT] preferred clients

2009-11-23 Thread David Jonas
On 11/21/2009 06:15 PM, Thomas wrote: Close TB. Delete your .msf to recreate indexes. Start TB again and let it re-index (it will take a while). Then everything should be fine. If not do a bug report. I submitted a bug report before I saw your post (Tested in TB3.0rc1, BuildID=20091121181041)

Re: [Dovecot] quick question

2010-01-25 Thread David Jonas
On 01/22/2010 10:15 AM, Brandon Davidson wrote: > We've thought about enabling IP-based session affinity on the load > balancer, but this would concentrate the load of our webmail clients, as > well as not really solving the problem for users that leave clients open > on multiple systems. Webmail

Re: [Dovecot] logfile consistency

2007-04-03 Thread David Jonas
David Lee wrote: > We do some routine logfile (syslog) gathering and analysis. I've been > looking at extending this to parse the syslog output of dovecot. Hmmm... > ... > For instance: > 1. All lines, including the "deliver", to begin "dovecot:"; > 2. The "IMAP(): Disconnected" to become "im

Re: [Dovecot] Will pay $500 towards a Dovecot feature

2007-05-23 Thread David Jonas
Frank Cusack wrote: > On May 23, 2007 11:54:20 AM -0700 Marc Perkel <[EMAIL PROTECTED]> wrote: >> IMAP establishes a connection between the client and the server. Wouldn't >> it be great if it could be a conduit to let custom Thunderbird plugins >> talk to custom server application over the IMAP

[Dovecot] Quota plugin, Maildir, dict backend loop problem

2007-07-24 Thread David Jonas
Hello, I've been working with the quota plugin(s) the past few days and have been having some real trouble. Only a few entries are appearing in the database, a couple more when I restarted dovecot. None of the current entries were being updated either. I think I've tracked it down to somewhere in

Re: [Dovecot] Quota transaction bug?

2007-07-24 Thread David Jonas
Jasper Bryant-Greene wrote: > On Tue, Jul 24, 2007 at 02:09:23PM -0700, David Jonas wrote: >> < SELECT current FROM quota WHERE ... >>> 513965019 >> < BEGIN >> < INSERT INTO quota (current, ... >> < COMMIT >>> ?? (error_r appears to be (

Re: [Dovecot] Quota transaction bug?

2007-07-24 Thread David Jonas
Jasper Bryant-Greene wrote: > On Tue, Jul 24, 2007 at 02:46:11PM -0700, David Jonas wrote: >> Jasper Bryant-Greene wrote: >>> On Tue, Jul 24, 2007 at 02:09:23PM -0700, David Jonas wrote: >>>> < SELECT current FROM quota WHERE ... >>>>> 51396501

Re: [Dovecot] Quota plugin, Maildir, dict backend loop problem

2007-07-25 Thread David Jonas
Timo Sirainen wrote: > On 25.7.2007, at 0.09, David Jonas wrote: > >> I've been working with the quota plugin(s) the past few days and have >> been having some real trouble. Only a few entries are appearing in the >> database, a couple more when I restarted dovecot. N

Re: [Dovecot] o/s tuning for imap

2007-09-05 Thread David Jonas
Marcin Michal Jessa wrote: > Russell E. Meek wrote: >> Quoting Ken A <[EMAIL PROTECTED]>: >> >>> I'm switching from a pop3 only dovecot install to a pop3/imap install >>> and I'm wondering how many connections every 100 'normal' imap users >>> might have/keep open? I'm wondering if I need to tweak

Re: [Dovecot] o/s tuning for imap

2007-09-05 Thread David Jonas
Ed W wrote: > >> http://wiki.dovecot.org/HowTo/ImapProxy >> >> Works quite well here. >> > > This is very interesting > > Does it work ok if you want to have one machine handle the nearly all > the normal IMAP traffic, but it has the ability to proxy a few users to > a different server? > >

[Dovecot] 1.1b1 initial pop3 login: assertion failed

2007-09-28 Thread David Jonas
Currently running 1.0.2 with 1.1b1 listening on a different port. On first pop3 login on 1.1b1 I received an immediate disconnect (I was testing with telnet) with the log entries below. Subsequent logins work fine. Other accounts that I tried did not have the same problem. So this is probably isola

Re: [Dovecot] 1.1b1 initial pop3 login: assertion failed

2007-10-01 Thread David Jonas
Timo Sirainen wrote: > On Fri, 2007-09-28 at 16:12 -0700, David Jonas wrote: >> Sep 28 15:51:14 kelly-a dovecot: POP3([EMAIL PROTECTED])[8112]: Fixed index >> file /home/vmail/x/x.com/xxx/Maildir/dovecot.index: first_recent_uid >> 0 -> 1 > > Fixed now: htt

[Dovecot] Dovecot 1.1b2: Enet_connect_unix(/usr/local/dovecot-1.1/var/run/dovecot/dict-server) failed: Permission denied

2007-10-02 Thread David Jonas
On startup of dovecot 1.1b2 I seem to have some permission trouble. Dovecot was configured with --prefix=/usr/local/dovecot-1.1 for testing purposes while dovecot 1.0.2 is in production. # cd /usr/local/dovecot-1.1/sbin/ # ./dovecot -F -c ../etc/dovecot.conf Enet_connect_unix(/usr/local/dovecot-