Re: [Dovecot] Login with firstname.lastname instead of loginname - WORKING

2011-01-05 Thread Ralf Hildebrandt
* Thomas Leuxner : > > Not tested, but hunch tells me something like: > > args = username_format=%Ln > > should work. > > http://wiki2.dovecot.org/Variables Yes, that worked like a charm! Now we were able to switch from an old courier-pop + patched authdaemon to dovecot for ALL services! --

Re: [Dovecot] Telnet access creates new maildir folders

2011-01-05 Thread Seasoul
Many thanks Daniel for your comment, I'll have another look at the Postfix wiki ! On Tue, Jan 4, 2011 at 12:46 AM, Daniel L. Miller wrote: > > On 12/30/2010 4:14 AM, Seasoul wrote: > >> When I send an email to us...@domain.com from a gmail account, this is >> the >> log record: >> >> postfix/qmg

[Dovecot] Access rights after dsync

2011-01-05 Thread Joan Moreau
Hi, It looks like the access rights are not correctly preserved after a dsync I have rwXr-X-- from my original folder (which is right) I have rwXrwXrwX in the "mirrored" fodler (which is very wrong) Not sure what cause this, but it looks like a bug Best, jm

[Dovecot] virtual user problems

2011-01-05 Thread G.Nau
dovecot 2.0.8 with postfix; transfer postfix -> dovecot by lmtp is fine Now i have to redirect a couple of virtual email names (like ad...@mydomain.com, postmaster@, webmaster@, info@, sales@ ...) to a single user postbox named x...@mydomain. As I use mysql for the auth-sql, it's returning userhom

[Dovecot] good value of vsz_limit

2011-01-05 Thread fakessh @
hello dovecot network hello Timo I've just upgraded to 2.0.8 dovecot and I wonder it should be good value of vsz_limit I put value as 64 M but I do not know if it's good value return are welcome sincerely and happy new year this my dovecot -n ~]# /usr/sbin/dovecot -n # 2.0.8: /etc/dovecot/d

Re: [Dovecot] Login with firstname.lastname instead of loginname - WORKING

2011-01-05 Thread Willie Gillespie
Ralf Hildebrandt wrote: How can I "normalize" the usernames by lowercasing them? The coolest solution would be to strip realms AND force lowercasing of usernames in one pass auth_username_format = %Lu

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Timo Sirainen
In sdbox case there is always only one message per file. It's possible to use filesystem's hard linking feature to copy the file (=the message), because the message contents don't change. In mdbox case there are multiple messages per file. It would again be possible to copy a message by hard li

Re: [Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Joan Moreau
It looks like each of them has one or more messages. Looks like if the msg is too big, (i.e. above the 20k or so), there is only one message in the m.xxx regarding lda, my "mdbox" folders are just a mirror via dsync, no lda incoming in the mdbox folders On Thu, 6 Jan 2011 00:51:00 +0200, Ti

Re: [Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Timo Sirainen
That is weird then.. Have you looked inside these files? Does each one have only a single mail or are there a couple? What Dovecot version? These files were created by dsync I guess? What about the last few files that (I assume) are created by dovecot-lda, are they any bigger? On 6.1.2011, at 0

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Joan Moreau
Sorry to insist, but the process you describe (copy up to 1GB (why ? I still do not understand) ) is exactly the "sdbox" approach (one file per message in each IMAP subfolder) Let's please spend some more analysis on this. On Thu, 6 Jan 2011 00:45:29 +0200, Timo Sirainen wrote: > With maild

Re: [Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Joan Moreau
# doveconf | grep mdbox mdbox_preallocate_space = no mdbox_rotate_interval = 0 mdbox_rotate_size = 2 M On Thu, 6 Jan 2011 00:40:44 +0200, Timo Sirainen wrote: What does "doveconf | grep mdbox" say? This isn't normal.. On 6.1.2011, at 0.33, Joan Moreau wrote: so, why after a dsync from sdbox

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Timo Sirainen
With maildir, single-dbox or multi-dbox when you copy a message, just about nothing is read from disk and very little is written to disk. For example in Maildir case a copy is the same as doing: ln ~/Maildir/.source/cur/1234 ~/Maildir/.dest/cur/1234 This only accesses the file's metadata. It wo

Re: [Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Timo Sirainen
What does "doveconf | grep mdbox" say? This isn't normal.. On 6.1.2011, at 0.33, Joan Moreau wrote: > > > so, why after a dsync from sdbox to mdbox, I have 100 000's of files of > about 20k ? (and not 2MB !) > > -rw-r--r-- 1 mailusers mail 21K 2011-01-03 02:47 m.1 > -rw-r--r-- 1 mailusers mai

Re: [Dovecot] RFC: grouped (f)sync

2011-01-05 Thread Timo Sirainen
On 6.1.2011, at 0.27, Attila Nagy wrote: > With this, 10 syncs would happen in every second from Dovecot LDA processes, > meaning if a client connects in t=0 it will immediately got the response 250, > if a client connects in t=0.05, it will get the response in 50 ms (in an > ideal world, where

Re: [Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Phil Howard
On Wed, Jan 5, 2011 at 16:10, Timo Sirainen wrote: > On 5.1.2011, at 23.04, Phil Howard wrote: > >> But if for INBOX names are case IN-sensitive, then there will be >> confusion because anything obeying that concept would see "Inbox >> >> spam" and "Inbox >> Spam" as being the same box. > > It's c

Re: [Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Joan Moreau
so, why after a dsync from sdbox to mdbox, I have 100 000's of files of about 20k ? (and not 2MB !) -rw-r--r-- 1 mailusers mail 21K 2011-01-03 02:47 m.1 -rw-r--r-- 1 mailusers mail 17K 2011-01-03 02:47 m.10 -rw-r--r-- 1 mailusers mail 20K 2011-01-03 02:47 m.100 -rw-r--r-- 1 mailusers mail 2

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Joan Moreau
I am not sure I understand why it would be "read entirely", as it is the same as reading a message when accessing a folder and writing a file when a new message in arriving which is the very most common activity of a mail server... so not sure about any "wasteful" I/O Can we spend some mor

[Dovecot] RFC: grouped (f)sync

2011-01-05 Thread Attila Nagy
Hello, Currently Dovecot (and any other application, which cares about e-mail delivery) does at least one fsync per mail delivery. Given that hard disk drives have a very limited IOPS, this effectively limits the maximum mail delivery performance to a very low value, under utilizing the avai

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Timo Sirainen
On 6.1.2011, at 0.11, Joan Moreau wrote: > Is there a way to use the mdbox format (i.e. several message > per files) for EACH IMAP folders (sdbox approach) ? The problem with that is that when copying messages between mailboxes they would have to be actually read and written entirely, rather th

Re: [Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Timo Sirainen
On 6.1.2011, at 0.07, Joan Moreau wrote: > How to tune the size of each "m.xxx" file in mdbox format , in > order to optimize the ratio size/number of files ? (I can see for > instance more than 100 000 files in one directory due to very large > mailbox size) mdbox_rotate_size setting sets the m

[Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Joan Moreau
Hi, Is there a way to use the mdbox format (i.e. several message per files) for EACH IMAP folders (sdbox approach) ? Thanks Joan

[Dovecot] size of "m.XXX" in mdbox

2011-01-05 Thread Joan Moreau
Hi, How to tune the size of each "m.xxx" file in mdbox format , in order to optimize the ratio size/number of files ? (I can see for instance more than 100 000 files in one directory due to very large mailbox size) If such parameter exists, what is the typical value ? Thanks Joan

Re: [Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Timo Sirainen
On 5.1.2011, at 23.04, Phil Howard wrote: > But if for INBOX names are case IN-sensitive, then there will be > confusion because anything obeying that concept would see "Inbox >> > spam" and "Inbox >> Spam" as being the same box. It's case insensitive only for the INBOX itself, not its children.

Re: [Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Phil Howard
On Wed, Jan 5, 2011 at 13:20, Timo Sirainen wrote: > On 5.1.2011, at 19.33, Phil Howard wrote: > >> On Wed, Jan 5, 2011 at 12:05, Timo Sirainen wrote: >>> On Wed, 2011-01-05 at 10:09 -0500, Phil Howard wrote: Is IMAP supposed to be case sensitive or case in-sensitive? >>> >>> Case sensitive,

[Dovecot] FTS crash

2011-01-05 Thread Joan Moreau
Hi, Following the instructions on the page http://wiki2.dovecot.org/Plugins/FTS [1] I get the following: Jan 5 21:09:43 server dovecot: master: Error: service(imap): child 22514 killed with signal 11 (core dumps disabled) at every IMAP login Any suggestions ? Thanks Joan Links:

Re: [Dovecot] Dovecot - AllowGroups option

2011-01-05 Thread Jacob Neergaard Pedersen
Sorry about the late reply. I look at the link you sent me. But I can't figure out how to make it do what I want. As far as I understand then yes I'm using PAM. I wanna create an imap group in /etc/group and only the users I add to this is to be allow access to dovecot thought IMAP. I'm sorry to

Re: [Dovecot] sdbox to mdbox

2011-01-05 Thread Joan Moreau
I tested this on my own mailbox. I have about 50 IMAP folders, about 25Gb of mails, and I do not know how many thousands of emails. I think the dsync shall not keep the file pointers opened, but process one ofter another somehow, so there shall be no limit in mailboxes size. On Wed, 5 Jan 201

Re: [Dovecot] sdbox to mdbox

2011-01-05 Thread Timo Sirainen
On 5.1.2011, at 19.33, Joan Moreau wrote: > dsync(j...@grosjo.net): Error: > open(/data/mail2/grosjo.net/jom/storage/.temp.1294246748.P26952Q8500M325824.server, > O_CREAT) failed: Too many open files Hmm. This is the main problem. How much messages do you have?.. I thought mdbox was supposed t

Re: [Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Timo Sirainen
On 5.1.2011, at 19.33, Phil Howard wrote: > On Wed, Jan 5, 2011 at 12:05, Timo Sirainen wrote: >> On Wed, 2011-01-05 at 10:09 -0500, Phil Howard wrote: >>> Is IMAP supposed to be case sensitive or case in-sensitive? >> >> Case sensitive, except for INBOX. (Or if the server is using >> case-insen

Re: [Dovecot] sdbox to mdbox

2011-01-05 Thread Joan Moreau
this is what I get: # gdb --args dsync -f -D -v -u 'j...@grosjo.net' -o mail_location=sdbox:/data/mail/grosjo.net/jom mirror mdbox:/data/mail2/grosjo.net/jom GNU gdb (GDB) SUSE (7.1-3.12) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: [Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Phil Howard
On Wed, Jan 5, 2011 at 12:05, Timo Sirainen wrote: > On Wed, 2011-01-05 at 10:09 -0500, Phil Howard wrote: >> Is IMAP supposed to be case sensitive or case in-sensitive? > > Case sensitive, except for INBOX. (Or if the server is using > case-insensitive filesystem then they're case-insensitive.)

Re: [Dovecot] courier-dovecot-migrate.pl maintaining order of pop3 uidl's

2011-01-05 Thread Timo Sirainen
On Wed, 2011-01-05 at 17:28 +0200, Mark Zealey wrote: > # POP3 clients may want to get POP3 UIDLs in the same order always. > # Preserve the order even if it causes IMAP UIDs to change. > > Does anyone have details as to which clients this actually causes a > problem with? If it's some

Re: [Dovecot] courier-dovecot-migrate.pl maintaining order of pop3 uidl's

2011-01-05 Thread Mark Zealey
This reordering also appears to needlessly cause new pop3 UIDL's to be created in certain cases too; for example: courierimapuiddb 1727 1268763912.M544686P12485V0805I02DD03CD_79,S=8529 1731 1268763915.M68112P12485V0805I02DD03D1_83,S=1176 1732 1268763915.M376124P12485V

[Dovecot] courier-dovecot-migrate.pl maintaining order of pop3 uidl's

2011-01-05 Thread Mark Zealey
Hi there, I've just been experimenting with the latest courier-dovecot-migrate.pl script and I notice that it favours keeping pop3 UIDL ordering rather than IMAP UID preservation. There is this comment (line 312): # POP3 clients may want to get POP3 UIDLs in the same order always. # P

Re: [Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Timo Sirainen
On Wed, 2011-01-05 at 10:09 -0500, Phil Howard wrote: > Is IMAP supposed to be case sensitive or case in-sensitive? Case sensitive, except for INBOX. (Or if the server is using case-insensitive filesystem then they're case-insensitive.) > It seemed > it would be case sensitive because I've had d

Re: [Dovecot] dovecot 2.0.8 defaults to require ipv6 ?

2011-01-05 Thread Timo Sirainen
On Wed, 2011-01-05 at 14:08 +0100, Jan-Frode Myklebust wrote: > On Wed, Jan 05, 2011 at 02:02:12PM +0100, Jan-Frode Myklebust wrote: > > FYI it seems dovecot 2.0.8 fails to start on RHEL5 with IPv6 disabled > > ("alias net-pf-10 off" in modprobe.conf) unless one specify "listen = *". > > i.e., wit

[Dovecot] case (non-)sensitivity for folder names

2011-01-05 Thread Phil Howard
Is IMAP supposed to be case sensitive or case in-sensitive? It seemed it would be case sensitive because I've had different cases of folders. But today I found I had two folders "Spam" and "spam", with directories ".INBOX.Spam" and ".INBOX.spam" on the server. Messages existed in each directory

Re: [Dovecot] dovecot v1.2.15 - Unknown dict module: quota - Fatal: Quota root storage=200000 proxy init [postfix, dovecot LDA, postfixadmin, mysql]

2011-01-05 Thread J4
On 01/05/2011 02:26 PM, J4 wrote: > On 01/05/2011 01:36 PM, Timo Sirainen wrote: >> On Tue, 2011-01-04 at 21:07 +0100, JKL wrote: >>> plugin: >>> quota: dict:storage=20 proxy::quota >>> quota: dict:storage=20 proxy::quota:w >>> dict: >>> quota: mysql:/etc/dovecot/dovecot-dict-quota.co

Re: [Dovecot] dovecot v1.2.15 - Unknown dict module: quota - Fatal: Quota root storage=200000 proxy init [postfix, dovecot LDA, postfixadmin, mysql]

2011-01-05 Thread J4
On 01/05/2011 01:36 PM, Timo Sirainen wrote: > On Tue, 2011-01-04 at 21:07 +0100, JKL wrote: >> plugin: >> quota: dict:storage=20 proxy::quota >> quota: dict:storage=20 proxy::quota:w >> dict: >> quota: mysql:/etc/dovecot/dovecot-dict-quota.conf > Are you sure you want to use dict quo

Re: [Dovecot] dovecot 2.0.8 defaults to require ipv6 ?

2011-01-05 Thread Jan-Frode Myklebust
On Wed, Jan 05, 2011 at 02:02:12PM +0100, Jan-Frode Myklebust wrote: > FYI it seems dovecot 2.0.8 fails to start on RHEL5 with IPv6 disabled > ("alias net-pf-10 off" in modprobe.conf) unless one specify "listen = *". i.e., without "listen = *" it complains: Error: service(pop3-login): lis

[Dovecot] dovecot 2.0.8 defaults to require ipv6 ?

2011-01-05 Thread Jan-Frode Myklebust
FYI it seems dovecot 2.0.8 fails to start on RHEL5 with IPv6 disabled ("alias net-pf-10 off" in modprobe.conf) unless one specify "listen = *". Not sure if this is a known problem, or just a hint that we should start enabling ipv6 on our mailservers... ;-) -jf

Re: [Dovecot] IMAP separator migration (was: Sharing user folders doesn't work when users have periods in names. )

2011-01-05 Thread Timo Sirainen
On Tue, 2011-01-04 at 19:54 +, ian+dove...@comtek.co.uk wrote: > Has anybody got any tips on migrating IMAP separators? Ideally I'd be > able to migrate users incrementally. Is there a way to specify the > separator per-user? I can't see a way to do it with a postlogin script > or userdb.

Re: [Dovecot] dovecot v1.2.15 - Unknown dict module: quota - Fatal: Quota root storage=200000 proxy init [postfix, dovecot LDA, postfixadmin, mysql]

2011-01-05 Thread Timo Sirainen
On Tue, 2011-01-04 at 21:07 +0100, JKL wrote: > plugin: > quota: dict:storage=20 proxy::quota > quota: dict:storage=20 proxy::quota:w > dict: > quota: mysql:/etc/dovecot/dovecot-dict-quota.conf Are you sure you want to use dict quota? Maildir++ quota would be simpler. Anyway, the pl

Re: [Dovecot] Dovecot 2.0.8 Linux 2.6.12.6-arm1 armv5tejl Segmentation fault

2011-01-05 Thread Timo Sirainen
On Tue, 2011-01-04 at 23:50 +, Stephen Feyrer wrote: > # dovecot -F > Segmentation fault gdb --args dovecot -F run bt full signature.asc Description: This is a digitally signed message part

Re: [Dovecot] sdbox to mdbox

2011-01-05 Thread Timo Sirainen
On Tue, 2011-01-04 at 11:01 -0500, Joan Moreau wrote: > Not sure how do I get the "core" (core dumped are disabled in my > kernel) .. > backtrace. ulimit -c unlimited dsync ... gdb dsync core bt full Well, you could probably run the whole thing in gdb, but in some situations it doesn't work: gd

Re: [Dovecot] Lazy expunge for performance ?

2011-01-05 Thread Timo Sirainen
On Wed, 2011-01-05 at 10:43 +0100, Jan-Frode Myklebust wrote: > Some filesystems are quite slow at deleting files, so I'm wondering if > anybody is using the lazy expunge plugin to implement a solution where > expunged messages are moved to a separate directory structure within the > same filesyste

Re: [Dovecot] Dovecot-auth crash after upgrade to 1.2.16

2011-01-05 Thread Maxim Kostikov
Well, I took a little investigation about it and found that the problem in new MySQL 5.5.8 client. I believe that the better solution in this case is downgrade to 5.5.7 client. Here is the prooflink http://www.pubbs.net/201012/freebsd/38528-mysql-client-558-breaks-postfix-dovecot.html 2011/1/4 Max

[Dovecot] Lazy expunge for performance ?

2011-01-05 Thread Jan-Frode Myklebust
Some filesystems are quite slow at deleting files, so I'm wondering if anybody is using the lazy expunge plugin to implement a solution where expunged messages are moved to a separate directory structure within the same filesystem, and later deleted as a nighly batchjob ? Assuming expunge renames/m

Re: [Dovecot] Login with firstname.lastname instead of loginname - WORKING

2011-01-05 Thread Thomas Leuxner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 05, 2011 at 09:51:19AM +0100, Ralf Hildebrandt wrote: > But now I'm encountering problems with users writing > > firstname.lastn...@charite.de > instead of > firstname.lastn...@charite.de > (capitalized first letters) > > How can I "norma

[Dovecot] Login with firstname.lastname instead of loginname - WORKING

2011-01-05 Thread Ralf Hildebrandt
3 years ago (!) I aksed about this and finally I implemented it today: >> # NEW >> passdb { >> driver = passwd >> # >> firstname.lastn...@charite.de:password:uid:gid:(gecos):home:(shell):user=realloginname >> args = /usr/local/etc/dovecot.login_via_email >> } >If you're only