Re: [Dovecot] setting up both system password users AND virtual users

2009-03-13 Thread Linux Advocate
> Subject: Re: [Dovecot] setting up both system password users AND virtual users > > On Wed, 2009-03-04 at 17:54 -0800, Jim Pazarena wrote: > > > I've got the "system" working, but cannot figure out how to add the virtual > system. > > The docs aren't quite clear enough for me to understand.

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Linux Advocate
> On 3/13/2009 6:00 PM, Zbigniew Szalbot wrote: > >> So apparently you only want to use SQL authentication? Comment out > >> passdb pam and userdb passwd in dovecot.conf. > > > Even with the output of dovecot -n Timo looks to me like he really has a > > crystal ball ;) > the list is lucky that

Re: [Dovecot] How can i override mail_location?

2009-03-13 Thread Zhang Huangbin
Timo Sirainen wrote: On Fri, 2009-03-13 at 22:17 +0800, Zhang Huangbin wrote: homeDirectory: /home/vmail Is it always /home/vmail? user_attrs = homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$ Maybe

Re: [Dovecot] How can i override mail_location?

2009-03-13 Thread Zhang Huangbin
Timo Sirainen wrote: On Fri, 2009-03-13 at 22:17 +0800, Zhang Huangbin wrote: homeDirectory: /home/vmail Is it always /home/vmail? Yes, homeDirectory is always /home/vmail. user_attrs = homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,m

Re: [Dovecot] How can i override mail_location?

2009-03-13 Thread Zhang Huangbin
Thanks Steffen. :) Steffen Kaiser wrote: "mailMessageStore=maildir:mail" this looks odd. Try: mailMessageStore=mail If i use absolute path in mailMessageStore, the maildir path is correct with 'mailMessageStore=mail', but deliver doesn't create the directory recursively: deliver(w..

Re: [Dovecot] using passwd userdb with sql passdb

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 16:18 -0700, Shane W wrote: > The problem may be the shane@ bit. If I delete the sql > entry, the lookup just shows 'shane'. I'm not loging in > with @ but my query does use the username,domain syntax for > instances of virtual users which don't use passwd userdb: > select u

[Dovecot] v1.1.12 and v1.2.beta2 released

2009-03-13 Thread Timo Sirainen
http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz.sig http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz.sig I thought I'd do a double-release since it's Friday the 1

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 18:35 -0400, Douglas M. Stanley wrote: > > Oh. I've heard this before! You've set auth_process_size to 64. Why? > > It's too low and causes NSS plugin loading to fail silently and > > return > > "User doesn't exist" error. Wonder if I could detect this somehow.. Done: http://

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Douglas M. Stanley
- "Timo Sirainen" wrote: > On Fri, 2009-03-13 at 17:50 -0400, Douglas M. Stanley wrote: > > > > > Mar 13 19:16:30 mailserver dovecot: auth(default): User > doesn't > > > exist: postfix > > > > > > Does your Postfix installation actually work? What user do you > see > > > running the Postfix

Re: [Dovecot] New to list, got a quota question

2009-03-13 Thread Vlad Sedov
Timo Sirainen wrote: On Fri, 2009-03-13 at 17:05 -0500, Vlad Sedov wrote: I think I figured it out... I reformatted all of the quotas from the old vpopmail style (e.g. 400M, which is 400 megabytes) to the Maildir++ format (e.g. 419430400S,2000C which is 400MB or 2000 messages quota). Here'

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Scott Silva
on 3-13-2009 3:13 PM Charles Marcus spake the following: > On 3/13/2009 6:00 PM, Zbigniew Szalbot wrote: >>> So apparently you only want to use SQL authentication? Comment out >>> passdb pam and userdb passwd in dovecot.conf. > >> Even with the output of dovecot -n Timo looks to me like he really

Re: [Dovecot] New to list, got a quota question

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 17:05 -0500, Vlad Sedov wrote: > I think I figured it out... > > I reformatted all of the quotas from the old vpopmail style (e.g. 400M, > which is 400 megabytes) to the Maildir++ format (e.g. 419430400S,2000C > which is 400MB or 2000 messages quota). > Here's my new user_q

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 17:50 -0400, Douglas M. Stanley wrote: > > > > Mar 13 19:16:30 mailserver dovecot: auth(default): User doesn't > > exist: postfix > > > > Does your Postfix installation actually work? What user do you see > > running the Postfix processes? > > Yep, works fine. The user runni

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Charles Marcus
On 3/13/2009 6:00 PM, Zbigniew Szalbot wrote: >> So apparently you only want to use SQL authentication? Comment out >> passdb pam and userdb passwd in dovecot.conf. > Even with the output of dovecot -n Timo looks to me like he really has a > crystal ball ;) Told ya... here I was trying to see if

Re: [Dovecot] New to list, got a quota question

2009-03-13 Thread Vlad Sedov
I think I figured it out... I reformatted all of the quotas from the old vpopmail style (e.g. 400M, which is 400 megabytes) to the Maildir++ format (e.g. 419430400S,2000C which is 400MB or 2000 messages quota). Here's my new user_query (we don't limit by message count, hence 0C... UID/GID is s

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Zbigniew Szalbot
Hello, > So apparently you only want to use SQL authentication? Comment out > passdb pam and userdb passwd in dovecot.conf. Even with the output of dovecot -n Timo looks to me like he really has a crystal ball ;) Thank you Timo! -- Zbigniew Szalbot

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Douglas M. Stanley
- "Timo Sirainen" wrote: > On Fri, 2009-03-13 at 16:40 -0400, Douglas M. Stanley wrote: > > Yep, postfix is installed: > > > > mailserver:/etc/postfix# postconf -h mail_owner > > postfix > .. > > > Mar 13 19:16:30 mailserver dovecot: auth(default): User doesn't > exist: postfix > > Does you

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 22:28 +0100, Zbigniew Szalbot wrote: > passdb: > driver: pam > args: session=yes dovecot > passdb: > driver: sql > args: /usr/local/etc/dovecot-sql.conf > userdb: > driver: passwd > args: blocking=yes > userdb: > driver: sql > args: /usr

Re: [Dovecot] GSSAPI cross-realm fixed

2009-03-13 Thread Timo Sirainen
On Tue, 2009-03-03 at 13:56 -0500, Bryan Jacobs wrote: > 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. If both IDs are acceptable, allow the > login

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Charles Marcus
On 3/13/2009 5:28 PM, Zbigniew Szalbot wrote: >> Did you forget something? Like, maybe some basic info on your system, >> dovecot version, dovecot -n output, etc? >> Most of us have non-working crystal balls most of the time - although >> Timos works rather well in many cases... > I know :) I am

Re: [Dovecot] file client-common.c: line 25 (client_unlink): assertion failed: (clients_count > 0)

2009-03-13 Thread Scott Silva
on 3-13-2009 1:04 PM Frank Bonnet spake the following: > Scott Silva wrote: >> on 3-13-2009 2:33 AM Frank Bonnet spake the following: >>> Scott Silva wrote: on 3-12-2009 10:29 AM Frank Bonnet spake the following: > Hello > > since few days I got this in dovecot log > > I us

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Zbigniew Szalbot
Hi! > Did you forget something? Like, maybe some basic info on your system, > dovecot version, dovecot -n output, etc? Sorry about that! Dovecot works so well that I haven't had a need to ask any questions for a long time. Because of that I kind of forgot to specify the basics. I use dovecot-1.1.

Re: [Dovecot] vpopmail support on 64 bits

2009-03-13 Thread Timo Sirainen
On Tue, 2009-03-10 at 16:21 -0300, aledr wrote: > Good day! > > Compiling 1.1.11 with vpopmail flag on a 64bit system drop me these > warnings that breaks it portability: Fixed: http://hg.dovecot.org/dovecot-1.1/rev/4f35f1dfd1c7 signature.asc Description: This is a digitally signed message par

Re: [Dovecot] fchown() error with Public Folders

2009-03-13 Thread Timo Sirainen
On Thu, 2009-03-12 at 11:11 -0700, Stephen Carville wrote: > dovecot: IMAP(stephen): fchown() failed with file > /home/stephen/Maildir/CS/.Incoming/dovecot.index.log: Operation not > permitted > > As I understand it, dovecot runs as root but the the IMAP process that > servicers the request runs a

Re: [Dovecot] how to handle CA CRL updates with client certificate verification context ?

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 02:55 +0100, Raphael PRECIGOUT wrote: > Hello, > > As far as I can read in the Dovecot SSL configuration wiki page, each CA > cert must be followed by the related CA CRL in the client certificate > verification context ("ssl_ca_file" setting). In my company we do have > ou

Re: [Dovecot] New to list, got a quota question

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 09:09 -0500, Vlad Sedov wrote: > My vpopmail installation keeps the quota information in the mysql > database (pw_shell field) instead of maildirsize. The quota is in > maildir format, e.g. 400M or 50331648S. The 400M means 400 messages, right? "backend" limit is supposed

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 16:40 -0400, Douglas M. Stanley wrote: > Yep, postfix is installed: > > mailserver:/etc/postfix# postconf -h mail_owner > postfix .. > > Mar 13 19:16:30 mailserver dovecot: auth(default): User doesn't exist: > > postfix Does your Postfix installation actually work? What use

Re: [Dovecot] Dovecot shared quota with Maildir

2009-03-13 Thread Timo Sirainen
Well.. With dict quota you could already do this, but quota recalculation wouldn't work right. Quota recalculation shouldn't happen normally though, so you might get away with it. But to fix quota recalculation you'd have to do something like you're describing I guess.. With v1.2 this would be som

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Douglas M. Stanley
- "Pascal Volk" wrote: > On 13.03.2009 21:40 Douglas M. Stanley wrote: > > Yep, postfix is installed: > > > > mailserver:/etc/postfix# postconf -h mail_owner > > postfix > > Please don't top post. > > I've got no clue what it may be. Please provide the output from > `dovecot -n`. > Here i

Re: [Dovecot] Dovecot 1.1.11 failing to accept SSL/TLS connections

2009-03-13 Thread Timo Sirainen
On Mon, 2009-03-09 at 17:41 +, Mike Brudenell wrote: > We have grown to suspect it is to do with one of the imap-login processes > having a large number of files open. Killing the process seems to get rid of > the problem. You didn't mention if you actually saw "Too many open files" errors in

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Pascal Volk
On 13.03.2009 21:40 Douglas M. Stanley wrote: > Yep, postfix is installed: > > mailserver:/etc/postfix# postconf -h mail_owner > postfix Please don't top post. I've got no clue what it may be. Please provide the output from `dovecot -n`. Regards, Pascal -- The trapper recommends today: c01dco

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Douglas M. Stanley
Yep, postfix is installed: mailserver:/etc/postfix# postconf -h mail_owner postfix Thanks, Doug - Original Message - From: "Pascal Volk" To: "Douglas M. Stanley" Cc: "Dovecot Mailing List" Sent: Friday, March 13, 2009 4:37:07 PM GMT -05:00 US/Canada Eastern Subject: Re: [Dovecot] Prob

Re: [Dovecot] file client-common.c: line 25 (client_unlink): assertion failed: (clients_count > 0)

2009-03-13 Thread Timo Sirainen
On Thu, 2009-03-12 at 18:29 +0100, Frank Bonnet wrote: > dovecot: Mar 12 16:57:37 Panic: imap-login: file client-common.c: line > 25 (client_unlink): assertion failed: (clients_count > 0) How common is this? Does it keep happening all the time now, or is it in random bursts? Just before this err

Re: [Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Pascal Volk
On 13.03.2009 21:01 Douglas M. Stanley wrote: > Hello list, > > I'm running into some problems, and I couldn't find any info about this > anywhere on the net. > > I recently set up a new debian lenny machine, and used my notes from the last > debian etch > machine I set up, which basically is f

Re: [Dovecot] Using LDAP for Dovecot extra/regular fields

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 13:05 -0700, Jack Stewart wrote: > With a multivalue attribute, the last value is returned. Currently, but I don't think you should rely on this. Also in situations where multiple values make sense Dovecot might do something special in future. > If the host attribute exists

Re: [Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Charles Marcus
Did you forget something? Like, maybe some basic info on your system, dovecot version, dovecot -n output, etc? Most of us have non-working crystal balls most of the time - although Timos works rather well in many cases... On 3/13/2009 3:43 PM, Zbigniew Szalbot wrote: > Hello, > > I would like to

Re: [Dovecot] Using LDAP for Dovecot extra/regular fields

2009-03-13 Thread Jack Stewart
Just to answer some of my own questions and close the loop in case anyone sees this message down the road. All of it makes sense when you consider SQL and the implications. With a multivalue attribute, the last value is returned. There is no host failure, which is likely a good thing when yo

Re: [Dovecot] file client-common.c: line 25 (client_unlink): assertion failed: (clients_count > 0)

2009-03-13 Thread Frank Bonnet
Scott Silva wrote: > on 3-13-2009 2:33 AM Frank Bonnet spake the following: >> Scott Silva wrote: >>> on 3-12-2009 10:29 AM Frank Bonnet spake the following: Hello since few days I got this in dovecot log I use 1.1.11 on Debian etch 64 bits Thanks for any info >>>

[Dovecot] Problem with sasl auth with postfix...

2009-03-13 Thread Douglas M. Stanley
Hello list, I'm running into some problems, and I couldn't find any info about this anywhere on the net. I recently set up a new debian lenny machine, and used my notes from the last debian etch machine I set up, which basically is for postfix + dovecot for sasl auth. On my old etch box, in th

Re: [Dovecot] setting up both system password users AND virtual users

2009-03-13 Thread Timo Sirainen
On Wed, 2009-03-04 at 17:54 -0800, Jim Pazarena wrote: > I've got the "system" working, but cannot figure out how to add the virtual > system. > The docs aren't quite clear enough for me to understand. > > The wiki example for dynamic passwd-file locations > shows: mail_location = maildir:/home

[Dovecot] pam_authenticate() failed: authentication error

2009-03-13 Thread Zbigniew Szalbot
Hello, I would like to ask for your help. I have noticed some error messages issued by dovecot. Mar 13 20:00:57 relay dovecot: auth-worker(default): pam(exam...@example.com): pam_authenticate() failed: authentication error (/etc/pam.d/dovecot missing?) Not surprisingly $ l /etc/pam.d/dovecot ls:

Re: [Dovecot] How can i override mail_location?

2009-03-13 Thread Timo Sirainen
On Fri, 2009-03-13 at 22:17 +0800, Zhang Huangbin wrote: > homeDirectory: /home/vmail Is it always /home/vmail? > user_attrs = > homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$ Maybe mailMessageStore=maildir:/home/vmail

Re: [Dovecot] Maildir dirty syncs

2009-03-13 Thread Timo Sirainen
On Wed, 2009-03-04 at 19:30 -0500, Timo Sirainen wrote: > http://dovecot.org/patches/1.1/maildir-dirty-syncs.diff .. > I'd be interested in hearing how large performance benefits it gives, if > any. Anyone? I did a couple of small unrealistic tests with imaptest. With small mailboxes it shows no

Re: [Dovecot] ACLs are applied recursively to sub mailboxes

2009-03-13 Thread Bernhard Herzog
On 10.03.2009, Timo Sirainen wrote: > I've been a bit busy (or lazy) recently and I'm not focusing on trying > to get the new dbox code working. I'll look at the ACL bugs at some > point, but you can probably get them fixed sooner if you do it yourself. I'm going to look into this. Bernhard -

Re: [Dovecot] file client-common.c: line 25 (client_unlink): assertion failed: (clients_count > 0)

2009-03-13 Thread Scott Silva
on 3-13-2009 2:33 AM Frank Bonnet spake the following: > Scott Silva wrote: >> on 3-12-2009 10:29 AM Frank Bonnet spake the following: >>> Hello >>> >>> since few days I got this in dovecot log >>> >>> I use 1.1.11 on Debian etch 64 bits >>> >>> Thanks for any info >>> >> You need to give more info

Re: [Dovecot] General approach question - am I doing this the right way?

2009-03-13 Thread Alan Bates
brilliant - all working perfectly. thank you so much andreas!

Re: [Dovecot] How can i override mail_location?

2009-03-13 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 13 Mar 2009, Zhang Huangbin wrote: I use dovecot-1.1.11 with OpenLDAP backend. but i found the mail_location is not correct. How can i override mail_location setting in dovecot.conf? homeDirectory: /home/vmail mailMessageStore: a.cn/w/ww/

[Dovecot] How can i override mail_location?

2009-03-13 Thread Zhang Huangbin
Hi, all. I use dovecot-1.1.11 with OpenLDAP backend. but i found the mail_location is not correct. How can i override mail_location setting in dovecot.conf? LDAP user data and dovecot config are attached below. in dovecot config, mail_location is: mail_location = maildir:/%Lh/%Ld/%Ln/:INDEX

Re: [Dovecot] General approach question - am I doing this the right way?

2009-03-13 Thread Andreas Ntaflos
Quoting Alan Bates : Sure - I looked at sieve, but as i understood it, i'm bypassing any LDA stage, using getmail to deliver direct to the maildir. i suppose i could use getmail to deliver to a holding maildir, then use an LDA to filter and deliver that mail... Way too complicated. Or is ther

[Dovecot] New to list, got a quota question

2009-03-13 Thread Vlad Sedov
Hello folks - I'm running dovecot on top of qmail/vpopmail/mysql, serving up about 2500 mailboxes. Everything is running very smooth and fast I recently upgraded dovecot to 1.1, so I'm trying to implement some extra features like IMAP quotas. I'm using the sql passdb, with the following c

Re: [Dovecot] General approach question - am I doing this the right way?

2009-03-13 Thread Seth Mattinen
Alan Bates wrote: > Sure - I looked at sieve, but as i understood it, i'm bypassing any LDA > stage, using getmail to deliver direct to the maildir. > > i suppose i could use getmail to deliver to a holding maildir, then use an > LDA to filter and deliver that mail... > Or procmail: :0: * ^X-Sp

Re: [Dovecot] Imap logout message on Dovecot restart

2009-03-13 Thread RutgerM
> On Thu, 2009-03-12 at 21:50 +0100, RutgerM wrote: >> #!/bin/sh >> unset LOG_TO_MASTER >> export USE_SYSLOG=1 >> exec /usr/lib/dovecot/imap >> >> But this logs the user that runs the script into the imap server and >> when >> I terminate this terminal I get a "Disconnected" message for the local

Re: [Dovecot] General approach question - am I doing this the right way?

2009-03-13 Thread Alan Bates
Sure - I looked at sieve, but as i understood it, i'm bypassing any LDA stage, using getmail to deliver direct to the maildir. i suppose i could use getmail to deliver to a holding maildir, then use an LDA to filter and deliver that mail... On Thu, Mar 12, 2009 at 4:48 PM, Seth Mattinen wrote:

Re: [Dovecot] file client-common.c: line 25 (client_unlink): assertion failed: (clients_count > 0)

2009-03-13 Thread Frank Bonnet
Scott Silva wrote: on 3-12-2009 10:29 AM Frank Bonnet spake the following: Hello since few days I got this in dovecot log I use 1.1.11 on Debian etch 64 bits Thanks for any info You need to give more info before you get more info. How about if mail is local to machine or on NFS. And also do

Re: [Dovecot] Extremely custom mailbox locations

2009-03-13 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 12 Mar 2009, Steve Kemp wrote: I'm in the position where I'd like to offer IMAP access to a collection of email accounts which are stored in a very odd manner. Files are stored as: /blah/$dd-$mm-$yy/$domain/1234/1234 For example:

Re: [Dovecot] General approach question - am I doing this the right way?

2009-03-13 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 12 Mar 2009, Seth Mattinen wrote: Alan Bates wrote: ...Spamassassin marks mail as SPAM but the mail client has to do the job of moving it to the Junk folder. I'd like the mail to be filtered on the home server on receipt. Sieve can do tha