[Dovecot] ulimit -n in start-script

2013-03-20 Thread Peer Heinlein
Hi! Even on midrange-systems it's necessary to set "ulimit -n" to a higher value then the system default of 1024. I'd prefer having this already prepared: In /etc/defaults/dovecot we should add: # Set amount of "open files" / ulimit -n ULIMIT_OPEN_FILES=16884 In /etc/init.d/dovecot we shoul

Re: [Dovecot] Mongo backend for userdb and passdb

2013-03-20 Thread Damien Churchill
On 28 February 2013 14:47, Damien Churchill wrote: > On 28 February 2013 14:40, Timo Sirainen wrote: >> On 28.2.2013, at 15.13, Damien Churchill wrote: >> >>> On 28 February 2013 14:01, Timo Sirainen wrote: On 28.2.2013, at 12.28, Damien Churchill wrote: > I was wondering if any

Re: [Dovecot] v2.2 status update

2013-03-20 Thread Thomas Leuxner
* Timo Sirainen 2013.03.19 18:45: > * dsync can sync ACLs +1 doveadm -o plugin/quota= backup -u t...@leuxner.net mdbox:/home/backups/tlx/mdbox Works great now. Thanks. signature.asc Description: Digital signature

Re: [Dovecot] v2.2 status update

2013-03-20 Thread Timo Sirainen
On Wed, 2013-03-20 at 11:31 +0100, Thomas Leuxner wrote: > * Timo Sirainen 2013.03.19 18:45: > > > * dsync can sync ACLs > > +1 > > doveadm -o plugin/quota= backup -u t...@leuxner.net > mdbox:/home/backups/tlx/mdbox > > Works great now. Thanks. I don't think you need the -o plugin/quota= he

Re: [Dovecot] Mongo backend for userdb and passdb

2013-03-20 Thread Timo Sirainen
On Wed, 2013-03-20 at 10:29 +, Damien Churchill wrote: > I've been messing about with this and I think a similar configuration > format to the sql dict driver would be handy, although I imagine the > same could also be achieved with just lots of uri arguments. Mongo > isn't really a key/value

Re: [Dovecot] Mongo backend for userdb and passdb

2013-03-20 Thread Damien Churchill
On 20 March 2013 10:39, Timo Sirainen wrote: > On Wed, 2013-03-20 at 10:29 +, Damien Churchill wrote: > >> I've been messing about with this and I think a similar configuration >> format to the sql dict driver would be handy, although I imagine the >> same could also be achieved with just lots

Re: [Dovecot] Mongo backend for userdb and passdb

2013-03-20 Thread Timo Sirainen
On Wed, 2013-03-20 at 10:40 +, Damien Churchill wrote: > On 20 March 2013 10:39, Timo Sirainen wrote: > > On Wed, 2013-03-20 at 10:29 +, Damien Churchill wrote: > > > >> I've been messing about with this and I think a similar configuration > >> format to the sql dict driver would be handy,

Re: [Dovecot] Mongo backend for userdb and passdb

2013-03-20 Thread Damien Churchill
On 20 March 2013 10:54, Timo Sirainen wrote: > On Wed, 2013-03-20 at 10:40 +, Damien Churchill wrote: >> On 20 March 2013 10:39, Timo Sirainen wrote: >> > On Wed, 2013-03-20 at 10:29 +, Damien Churchill wrote: >> > >> >> I've been messing about with this and I think a similar configuratio

Re: [Dovecot] ulimit -n in start-script

2013-03-20 Thread Patrick Westenberg
Peer Heinlein schrieb: Even on midrange-systems it's necessary to set "ulimit -n" to a higher value then the system default of 1024. Could this lead to this problem? Error: file_dotlock_create(/var/mail/example.com/john.doe/Maildir/.Sent/dovecot-uidlist) failed: No space left on device P

[Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread dormitionsk...@hotmail.com
I'd like to use Dovecot as our IMAP server when our users are within our LAN, but I'd also like to give them the ability to access their emails via POP3 when they are outside the LAN. I know most POP3 clients will give their users the option of not deleting the messages from the server after th

Re: [Dovecot] v2.2 status update

2013-03-20 Thread Thomas Leuxner
* Timo Sirainen 2013.03.20 11:37: > I don't think you need the -o plugin/quota= here. dsync should ignore > quota limits. Just tried without and it adds the backup to the quota, forcing you to run recalc afterwards. signature.asc Description: Digital signature

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread Timo Sirainen
On Wed, 2013-03-20 at 06:39 -0600, dormitionsk...@hotmail.com wrote: > I'd like to use Dovecot as our IMAP server when our users are within our LAN, > but I'd also like to give them the ability to access their emails via POP3 > when they are outside the LAN. I know most POP3 clients will give th

Re: [Dovecot] v2.2 status update

2013-03-20 Thread Timo Sirainen
On Wed, 2013-03-20 at 13:40 +0100, Thomas Leuxner wrote: > * Timo Sirainen 2013.03.20 11:37: > > > I don't think you need the -o plugin/quota= here. dsync should ignore > > quota limits. > > Just tried without and it adds the backup to the quota, forcing you to run > recalc afterwards. Oh, rig

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread Robert Schetterer
Am 20.03.2013 13:39, schrieb dormitionsk...@hotmail.com: > I'd like to use Dovecot as our IMAP server when our users are within our LAN, > but I'd also like to give them the ability to access their emails via POP3 > when they are outside the LAN. I know most POP3 clients will give their > users

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread dormitionsk...@hotmail.com
On Mar 20, 2013, at 6:43 AM, Timo Sirainen wrote: > On Wed, 2013-03-20 at 06:39 -0600, dormitionsk...@hotmail.com wrote: >> I'd like to use Dovecot as our IMAP server when our users are within our >> LAN, but I'd also like to give them the ability to access their emails via >> POP3 when they are

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread Thomas Leuxner
* dormitionsk...@hotmail.com 2013.03.20 14:17: > Everybody here uses Macs, iPads or iPhones. We would not necessarily have to > support a wide variety of clients. Their Mail Clients natively support IMAP, so not sure why you would want to go with POP3 in this scenario. signature.asc Descript

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread dormitionsk...@hotmail.com
> for the whole situation , why not simple allow only imap , and perhaps > use folder acl etc , downloading only subjects first or some special > folders etc to save bandwith should be possible with most mobile clients This would be the best, but this has to be done on the clients, right? I don'

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread dormitionsk...@hotmail.com
On Mar 20, 2013, at 7:22 AM, Thomas Leuxner wrote: > * dormitionsk...@hotmail.com 2013.03.20 14:17: > >> Everybody here uses Macs, iPads or iPhones. We would not necessarily have to >> support a wide variety of clients. > > Their Mail Clients natively support IMAP, so not sure why you would w

[Dovecot] Override quota settings with LDAP

2013-03-20 Thread Hanno Hirschberger
Hi all, my current Dovecot setup is fetching both the imap quota limit and the mail location settings from LDAP entries. user_attrs = [...] UDBmailQuota=quota_rule=*:bytes=%$, mailLocation=mail That is because we have 3 users who wants to fetch their mail from /var/mail/. All the other users

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread Thomas Leuxner
* dormitionsk...@hotmail.com 2013.03.20 14:35: > > Their Mail Clients natively support IMAP, so not sure why you would want to > > go with POP3 in this scenario. > > > Well, like I said, we have real slow upload speeds. I think POP3 would give > a better user experience. The clients mention

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread dormitionsk...@hotmail.com
On Mar 20, 2013, at 7:51 AM, Thomas Leuxner wrote: > * dormitionsk...@hotmail.com 2013.03.20 14:35: > >>> Their Mail Clients natively support IMAP, so not sure why you would want to >>> go with POP3 in this scenario. >> >> >> Well, like I said, we have real slow upload speeds. I think POP3

Re: [Dovecot] dovecot: auth-worker: order of authentication types

2013-03-20 Thread David Obando
I found out myself how to control the order: http://wiki2.dovecot.org/Authentication/MultipleDatabases. still asking how to set up dovecot authentication so *users that authenticate with only their username (i.e. system users) always and only use PAM authentication *users that authenticate with th

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread Timo Sirainen
On Wed, 2013-03-20 at 08:15 -0600, dormitionsk...@hotmail.com wrote: > My experience with IMAP over the internet with a couple of servers outside > our monastery (while I was in it, and we have considerably better download > speeds than upload) has always been that IMAP has always been incredibl

Re: [Dovecot] %{session} does not work with deliver_log_format

2013-03-20 Thread Timo Sirainen
On 25.2.2013, at 23.34, Daniel Parthey wrote: >> LMTP has a completely different session ID currently, which gets reset for >> each mail delivery and is written to the Received: header that it writes. >> It doesn't traverse through proxies, because each delivery gets a different >> ID anyway.

Re: [Dovecot] Imaptest: Fatal: opendir(/usr/local/lib/dovecot) failed: No such file or directory

2013-03-20 Thread Timo Sirainen
On 28.2.2013, at 16.36, Steffen Kaiser wrote: >>> When I build imaptest with an installed v2.2 instance, >>> libssl_iostream_openssl.so is loaded from /usr/local/lib/dovecot . >> >> Don't usee SSL connections, so it won't load it? :) > > OK, I needed two tries to understand :-) > > imaptest d

Re: [Dovecot] Exposing masteruser info to cllients via lmtp-proxy connections

2013-03-20 Thread Timo Sirainen
On 4.3.2013, at 0.54, Alexandr Sabitov wrote: > Please somebody suggest me how to remove the "*masteruser" appendix from the > dovecot director database while using masteruser authentication. Not sure about how to fix that, but maybe you can get rid of the *masteruser completely? Instead of u

Re: [Dovecot] Stability of extraction of attachment

2013-03-20 Thread Timo Sirainen
On 4.3.2013, at 12.36, Angel L. Mateo wrote: > Hello, > > We are migrating our dovecot servers from 2.1.9 to 2.1.15 (or 2.2 if > there is a stable version soon) and maildir format to mdbox. > > Looking for mdbox options I have found options: > > * mail_attachment_dir > * mail_atta

Re: [Dovecot] Maildir or Mdbox and expunge messages.

2013-03-20 Thread Timo Sirainen
On 5.3.2013, at 11.55, Evgeny Basov wrote: > I tested dovecot's work with expunge messages on Mdbox over strace (see > at tail of message). As I can see dovecot process opens old storage m.* > file, reads it content, opens new temporary file, writes in this one > content and rename this new one

Re: [Dovecot] Lot of dovecot process writes

2013-03-20 Thread Timo Sirainen
On 6.3.2013, at 14.44, Angel L. Mateo wrote: >>> While monitoring my servers' behaviour (ubuntu 12.04 with dovecot >>> 2.1.9, with about 7 users) I have found that lots of disk usage is >>> done by dovecot process (the parent process). Since lmtp, imap and pop3 >>> connections are handle

Re: [Dovecot] Core dump in 2.2.rc2 with FETCH 1 BODY.PEEK[ALL]

2013-03-20 Thread Timo Sirainen
On 7.3.2013, at 10.30, Steffen Kaiser wrote: > 2 FETCH 1 BODY.PEEK[ALL] > > dumps core, bt full is: Thanks, fixed: http://hg.dovecot.org/dovecot-2.2/rev/ab434891f2af

Re: [Dovecot] [dovecot-2.1.15] mdbox corruption, doveadm force-resync can't repair it (throws segfault)

2013-03-20 Thread Timo Sirainen
On 7.3.2013, at 14.12, Marcin Mirosław wrote: > Here is backtrace from doveadm force-resync: > > #0 rebuild_mailbox_multi (trans=0x428b58d090, view=, > rebuild_ctx=0x428b5a0690, ctx=0x428b57a9a0, mbox=) at > mdbox-storage-rebuild.c:433 > 433 map_uid = rec->map_uid;

Re: [Dovecot] ACL to make mailboxes populated by master account Read Only for regular users.

2013-03-20 Thread Timo Sirainen
On 7.3.2013, at 19.10, Alex Cherniak wrote: > We have a solution using Dovecot as a secondary mail archive. All mailboxes > are populated/groomed by master account and the actual users have only read > access. > This is achieved by a simple ACL approach. > dovecot.conf has > protocol imap { mail_

Re: [Dovecot] dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS, session=<1pBG/03XogB/AAAB>

2013-03-20 Thread Timo Sirainen
On 8.3.2013, at 8.08, pvsuja wrote: > Through wireshark, I found the username and password is going in plain text > only to the server. > How will I enable starttls in ImapcProxy before any communication starts? imapc_ssl = starttls See also other related settings in http://wiki2.dovecot.org/Mi

Re: [Dovecot] Logon with Client Certificate and OTP fallback

2013-03-20 Thread Timo Sirainen
On 10.3.2013, at 12.28, dovecot.pk...@dfgh.net wrote: > For 10 years we are using a very simple POP3-server where > I replaced the authentication routines with my own functions > and these function are doing the following: > > 1) if the connection was made without SSL refuse to connect > 2) if th

Re: [Dovecot] 2.2rc2 core dump

2013-03-20 Thread Timo Sirainen
On 11.3.2013, at 16.00, Heiko Schlichting wrote: > using dovecot 2.2rc2 I got core dumps during IMAP subscription change if > the CONTROL directory (specified in mail_location) does not exists. > > userdb_mail: > mbox:~/Test:INBOX=~/Test/heiko:INDEX=~/.imap/index:CONTROL=~/.imap/control > > If

Re: [Dovecot] dsync migration questions

2013-03-20 Thread Timo Sirainen
On 14.3.2013, at 21.07, Michael Smith (DF) wrote: > dsync -D -v -R -u ana...@domain.com backup mbox:/mnt/mail/mail_spool/.migrate/ .. > dsync(anakin): Error: Trying to open a non-listed mailbox with > guid=814b6332541c42516949a72406a4 > dsync(anakin): Error: msg iteration failed: Couldn't op

Re: [Dovecot] v2.2 dsync

2013-03-20 Thread Timo Sirainen
On 14.3.2013, at 12.05, Walter Steiner wrote: #0 0x004578cc in dsync_ibc_send_mail_request (ibc=0x4a9f20, request=0x5441c0) at dsync-ibc.c:38 38 return ibc->v.is_send_queue_full(ibc) ? If it crashes there, is_send_queue_full must be NULL or some other invali

Re: [Dovecot] shared folders and "subscriptions = yes"

2013-03-20 Thread Timo Sirainen
On 15.3.2013, at 19.29, Lars Uhlmann wrote: > To have all IMAP-Users automatically updated their shared folder > structure I use "subscriptions = yes". > This works with the side effect, that all IMAP-Users can see _all_ > folders in every namespace even if they do not have "lookup" access. > Thi

Re: [Dovecot] Zlib plugin: Compress emails for one folder only

2013-03-20 Thread Timo Sirainen
On 16.3.2013, at 14.43, Andre Rodier wrote: > Hello everyone, > > Is it possible to configure the zlib plugin to compress the emails in one > folder only? > > I would like to compress the emails when they are stored in my 'Archives' > folders and sub folders. Nope. With hardcoding it would b

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Timo Sirainen
On 4.3.2013, at 8.50, Larry Rosenman wrote: > I've just started using Dovecot, and can't seem to get the LDA to work. > > I get the following error: > Mar 4 00:47:19 thebighonker dovecot: lda(ler): Error: user ler: > Initialization failed: namespace configuration error: Duplicate namespace > p

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Larry Rosenman
I really need the snarf plugin to work, also, I don't think LMTP will let me redirect to files using the Exim Filters. What can you tell me to help debug this? On Wed, Mar 20, 2013 at 1:00 PM, Timo Sirainen wrote: > On 4.3.2013, at 8.50, Larry Rosenman wrote: > > > I've just started using D

Re: [Dovecot] Override quota settings with LDAP

2013-03-20 Thread Timo Sirainen
On 20.3.2013, at 15.25, Hanno Hirschberger wrote: > Mar 20 13:37:04 lmtp(2494, username): Warning: quota: Namespace '' is not > Maildir, skipping for Maildir++ quota > > Mar 20 13:37:04 lmtp(2494, username): Error: opendir(/var/empty/.imap) > failed: No such file or directory > > ... which i

Re: [Dovecot] dovecot: auth-worker: order of authentication types

2013-03-20 Thread Timo Sirainen
On 20.3.2013, at 16.42, David Obando wrote: > still asking how to set up dovecot authentication so > *users that authenticate with only their username (i.e. system users) > always and only use PAM authentication > *users that authenticate with their e-mail-address always and only use > SQL authen

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Timo Sirainen
Test first if it's because of the snarf plugin? I'm not sure that it is. On 20.3.2013, at 20.02, Larry Rosenman wrote: > I really need the snarf plugin to work, also, I don't think LMTP will let > me redirect to files using the Exim Filters. > > What can you tell me to help debug this? > > >

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Larry Rosenman
The issue is this is my production box, and I've gotten around this by NOT using the LDA, and just having Exim writing the mbox files. Is there any easy way to test just the LDA? Or trace this? On Wed, Mar 20, 2013 at 1:06 PM, Timo Sirainen wrote: > Test first if it's because of the snarf pl

Re: [Dovecot] v2.2 dsync

2013-03-20 Thread Timo Sirainen
On 20.3.2013, at 19.51, Timo Sirainen wrote: > On 14.3.2013, at 12.05, Walter Steiner wrote: > > #0 0x004578cc in dsync_ibc_send_mail_request (ibc=0x4a9f20, > request=0x5441c0) at dsync-ibc.c:38 > 38 return ibc->v.is_send_queue_full(ibc) ? > > If it crashes t

Re: [Dovecot] 2.2rc2 core dump

2013-03-20 Thread Heiko Schlichting
Timo Sirainen wrote: > On 11.3.2013, at 16.00, Heiko Schlichting wrote: > > > using dovecot 2.2rc2 I got core dumps during IMAP subscription change if > > the CONTROL directory (specified in mail_location) does not exists. > > > > userdb_mail: > > mbox:~/Test:INBOX=~/Test/heiko:INDEX=~/.imap/in

Re: [Dovecot] 2.2rc2 core dump

2013-03-20 Thread Timo Sirainen
On 20.3.2013, at 20.26, Heiko Schlichting wrote: > Testing with one hour old changeset 16065 ab434891f2af failed during > compilation: > > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib > -DMODULE_DIR=\""/home/dovecot/server/lib/dovecot"\" -std=gnu99 -g -O2 -Wall > -W -Wmissing-prototypes

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Larry Rosenman
Also, I *CAN* give SSH access to the box if you need/want it. On Wed, Mar 20, 2013 at 1:18 PM, Larry Rosenman wrote: > The issue is this is my production box, and I've gotten around this by NOT > using the LDA, and just having Exim writing the mbox files. > > Is there any easy way to test just

Re: [Dovecot] 2.2rc2 core dump

2013-03-20 Thread Heiko Schlichting
> On 20.3.2013, at 20.26, Heiko Schlichting wrote: > > > Testing with one hour old changeset 16065 ab434891f2af failed during > > compilation: > > > > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib > > -DMODULE_DIR=\""/home/dovecot/server/lib/dovecot"\" -std=gnu99 -g -O2 > > -Wall -W -Wmis

Re: [Dovecot] 2.2rc2 core dump

2013-03-20 Thread Timo Sirainen
On 20.3.2013, at 20.42, Heiko Schlichting wrote: >> On 20.3.2013, at 20.26, Heiko Schlichting wrote: >> >>> Testing with one hour old changeset 16065 ab434891f2af failed during >>> compilation: >>> >>> gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib >>> -DMODULE_DIR=\""/home/dovecot/server/l

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Timo Sirainen
Looks like I can reproduce this with v2.1.15, but it works with v2.2. Probably too much trouble to debug&fix it for v2.1. So I suggest v2.2. (I'll release v2.2.rc3 probably today.) On Wed, 2013-03-20 at 13:41 -0500, Larry Rosenman wrote: > Also, I *CAN* give SSH access to the box if you need/want

Re: [Dovecot] lda: duplicate prefix?

2013-03-20 Thread Larry Rosenman
Ok. I'll wait for 2.2 to hit the FreeBSD ports tree. Thanks! On Wed, Mar 20, 2013 at 2:34 PM, Timo Sirainen wrote: > Looks like I can reproduce this with v2.1.15, but it works with v2.2. > Probably too much trouble to debug&fix it for v2.1. So I suggest v2.2. > (I'll release v2.2.rc3 probably

[Dovecot] v2.2.rc3 released

2013-03-20 Thread Timo Sirainen
http://dovecot.org/releases/2.2/rc/dovecot-2.2.rc3.tar.gz http://dovecot.org/releases/2.2/rc/dovecot-2.2.rc3.tar.gz.sig As mentioned in http://dovecot.org/list/dovecot/2013-March/089044.html there are some new rather large features. Also various mostly rather small bugfixes. + dsync: Supp

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread Robin
On 3/20/2013 6:35 AM, dormitionsk...@hotmail.com wrote: Well, like I said, we have real slow upload speeds. I think POP3 would give a better user experience. About the only connectivity situation where POP3 might make for a better "user experience" is one of intermittent bursty sort that's

Re: [Dovecot] 2.2rc2 core dump

2013-03-20 Thread Heiko Schlichting
> > But it still crashes if I subscribe and the CONTROL=... directory does not > > exists: > > Not sure why I couldn't reproduce it earlier, but I could now. These fix it: > > http://hg.dovecot.org/dovecot-2.2/rev/f39c649057ea > http://hg.dovecot.org/dovecot-2.2/rev/9a913c803608 Thanks. I can c

Re: [Dovecot] Disallow POP3 from deleting messages

2013-03-20 Thread dormitionsk...@hotmail.com
On Mar 20, 2013, at 8:59 AM, Timo Sirainen wrote: > On Wed, 2013-03-20 at 08:15 -0600, dormitionsk...@hotmail.com wrote: > >> My experience with IMAP over the internet with a couple of servers outside >> our monastery (while I was in it, and we have considerably better download >> speeds than

Re: [Dovecot] ulimit -n in start-script

2013-03-20 Thread Ben Morrow
At 1PM +0100 on 20/03/13 you (Patrick Westenberg) wrote: > Peer Heinlein schrieb: > > > Even on midrange-systems it's necessary to set "ulimit -n" to a higher > > value then the system default of 1024. > > Could this lead to this problem? > > Error: > file_dotlock_create(/var/mail/example.co