Re: [Dovecot] Problem with ldap / quotas

2011-02-28 Thread Nikolaos Milas
Thanks Timo, In the end, I figured things out. Below are the changes to my initial configuration; now everything works fine. Just a note about a detail which took me some time to sort out: In postfix master.cf, in LDA setup documentation, the suggested configuration is: dovecot unix - n n

Re: [Dovecot] Problem with ldap / quotas

2011-02-28 Thread Timo Sirainen
On Fri, 2011-02-25 at 13:04 +0200, Nikolaos Milas wrote: > > If not, please can someone clarify where exactly "deliver -f > $FROM_ENVELOPE -d $DEST_USERNAME" should be called (when we do userdb > lookups over LDAP)??? deliver needs to be called by Postfix. http://wiki.dovecot.org/LDA/Postfix

Re: [Dovecot] Problem with ldap / quotas

2011-02-28 Thread Timo Sirainen
On Wed, 2011-02-23 at 10:50 +0200, Nikolaos Milas wrote: > Also, as my virtual mail user:group is vmail:vmail, should I change > permissions in auth-master path (/var/run/dovecot)? You can do it as explained in http://wiki.dovecot.org/LDA#Virtual_users, see especially the part with: user = vmail

Re: [Dovecot] Problem with ldap / quotas

2011-02-25 Thread Nikolaos Milas
Having received no reply on this, and trying to find my way through, I came to the hypothesis that the mentioned line should go where we do userdb lookups: So in /etc/dovecot-passdb-ldap.conf (which is identical to /etc/dovecot-usrdb-ldap.conf), we should add: hosts = localhost tls = no base

Re: [Dovecot] Problem with ldap / quotas

2011-02-23 Thread Nikolaos Milas
Also, as my virtual mail user:group is vmail:vmail, should I change permissions in auth-master path (/var/run/dovecot)? # ls -la /var/run/dovecot/ total 28 drwxr-xr-x 3 root dovecot 4096 Feb 22 23:32 . drwxr-xr-x 23 root root4096 Feb 23 08:36 .. srw--- 1 root root

Re: [Dovecot] Problem with ldap / quotas

2011-02-23 Thread Nikolaos Milas
Thank you Timo, I understand now. I am checking the documentation at: http://wiki.dovecot.org/LDA which states to define ( in socket listen { master { ): path = /var/run/dovecot/auth-master Obviously auth-master is a socket and created on the fly (?) For this to work properly, we must ha

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread 邓卫华
In Testing: Note that the warning is ONLY executed at the exact time when the limit is being crossed, so when you're testing it you have to do it by crossing the limit by saving a new mail. If something else besides Dovecot updates quota so that the limit is crossed, the warning is never exec

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Timo Sirainen
On 22.2.2011, at 23.28, Nikolaos Milas wrote: > Feb 22 23:02:35 vmail dovecot: POP3(tester): Quota rule: root=User quota > mailbox=* bytes=102400 messages=0 Looks right. > No warning mail was sent, at any point, even when the last mail was received, > which exceeded the quota. That log was fr

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Nikolaos Milas
Here is a session logged with mail_debug=yes; the mailbox has already exceeded quota (I set it to 100K for testing). Note that I have only changed IP addresses (actual ones are public) and main domain name: Feb 22 23:02:31 vmail dovecot: POP3(tester): Disconnected: Logged out top=0/0, retr=1/8

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Nikolaos Milas
I forgot to cc the list in my subsequent question in this thread, so that question and Timo's reply has not been included in the mailing list. I am submitting for thread completeness, thanking Timo for his invaluable help. Nick On 22/2/2011 6:23 μμ, Timo Sirainen wrote: On 22.2.2011, at 18

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Timo Sirainen
Auth binding is done ONLY for passdb lookup. After that it's unbound. Userdb lookups can't do auth binding, because they don't know the password. So userdb lookups bind to the "dn" setting to do the lookup. You need to set "dn" setting. On Tue, 2011-02-22 at 11:07 +0200, Nikolaos Milas wrote: > Th

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Nikolaos Milas
Thank you Timo, dovecot-ldap.conf works fine - obviously thanks to auth_bind_userdn, so it authenticates as the binding user: auth_bind_userdn = uid=%u,ou=people,dc=example,dc=com I've tried to use a similar configuration (using auth_bind_userdn) in the new configuration in dovecot-usrdb-

Re: [Dovecot] Problem with ldap / quotas

2011-02-22 Thread Timo Sirainen
On Mon, 2011-02-21 at 22:02 +0200, Nikolaos Milas wrote: > I am trying to enable per user quotas, but I get the following error: > > Feb 18 23:59:20 vmail dovecot: auth(default): > ldap(tester,10.10.100.150): ldap_search((uid=tester)) failed: No such object > > It seems as if ldapsearch for

[Dovecot] Problem with ldap / quotas

2011-02-21 Thread Nikolaos Milas
Hi, I am trying to enable per user quotas, but I get the following error: Feb 18 23:59:20 vmail dovecot: auth(default): ldap(tester,10.10.100.150): ldap_search((uid=tester)) failed: No such object It seems as if ldapsearch for username/password won't work with my new settings, but I can't

[Dovecot] Problem with LDAP query

2010-06-10 Thread Aleix Dorca
Hi people, first message to this list. I've a problem with dovecot 1.0.15 (debian latest package) and an LDAP query. The situation is the following. My LDAP users have multiple mail addresses (field 'mail') and mail should be able to be sent to any of these and the mail should always end on th

Re: [Dovecot] Problem with ldap error logging

2009-09-06 Thread Timo Sirainen
On Mon, 2009-08-24 at 11:07 +0200, Stefano Fedrigo wrote: > I configured dovecot to authenticate through ldap. When for some reason the > ldap server is not working dovecot writes this message to the system log: > > dovecot: auth(default): accept(type 1) failed: Too many open files > > "Too many

Re: [Dovecot] Problem with ldap error logging

2009-08-26 Thread Bernie Innocenti
El Tue, 25-08-2009 a las 09:25 -0400, Timo Sirainen escribió: > That's what it does..: > > % ./deliver > % echo $? > 75 > % tail -1 /var/log/dovecot.log > Aug 25 09:24:01 deliver(tss): Fatal: Plugin asdf not found from directory > /usr/local/lib/dovecot/lda > % grep define.*EX_TEMPFAIL /usr/incl

Re: [Dovecot] Problem with ldap error logging

2009-08-25 Thread Timo Sirainen
On Tue, 2009-08-25 at 00:29 -0400, Bernie Innocenti wrote: > On upgrading to Dovecot 1.2.3, the "cmusieve" plugin was replaced by > "sieve", so I started getting these errors in my maillog until I fixed > the configuration: > > Aug 19 11:33:26 trinity dovecot: deliver(bernie): Fatal: Plugin cmus

Re: [Dovecot] Problem with ldap error logging

2009-08-25 Thread Bernie Innocenti
El Mon, 24-08-2009 a las 18:27 +0200, Stefano Fedrigo escribió: > > I guess I could work around it, but then again no one else has had this > > problem.. It'll be fixed in v2.0 in any case. > > Of course the main problem is with Openldap, but such a fix could be very > useful to improve system's r

Re: [Dovecot] Problem with ldap error logging

2009-08-24 Thread Stefano Fedrigo
Timo Sirainen wrote: > On Mon, 2009-08-24 at 11:07 +0200, Stefano Fedrigo wrote: >> I configured dovecot to authenticate through ldap. When for some reason the >> ldap server is not working dovecot writes this message to the system log: >> >> dovecot: auth(default): accept(type 1) failed: Too many

Re: [Dovecot] Problem with ldap error logging

2009-08-24 Thread Timo Sirainen
On Mon, 2009-08-24 at 11:07 +0200, Stefano Fedrigo wrote: > I configured dovecot to authenticate through ldap. When for some reason the > ldap server is not working dovecot writes this message to the system log: > > dovecot: auth(default): accept(type 1) failed: Too many open files > > "Too many

[Dovecot] Problem with ldap error logging

2009-08-24 Thread Stefano Fedrigo
I configured dovecot to authenticate through ldap. When for some reason the ldap server is not working dovecot writes this message to the system log: dovecot: auth(default): accept(type 1) failed: Too many open files "Too many open files" is caused by an openldap bug. The serious problem is tha

Re: [Dovecot] problem with ldap

2009-04-01 Thread Timo Sirainen
On Fri, 2009-03-27 at 09:56 +0800, Xueron Nee wrote: > seems still has some problems :) > > Mar 27 10:03:44 mail dovecot: Dovecot v1.2.beta4 starting up (core dumps > disabled) > Mar 27 10:03:44 mail dovecot: Panic: auth(default): > passdb_register_module(ldap): Already registered How about now:

Re: [Dovecot] problem with ldap

2009-03-26 Thread Xueron Nee
seems still has some problems :) Mar 27 10:03:44 mail dovecot: Dovecot v1.2.beta4 starting up (core dumps disabled) Mar 27 10:03:44 mail dovecot: Panic: auth(default): passdb_register_module(ldap): Already registered Mar 27 10:03:44 mail dovecot: auth(default): Raw backtrace: dovecot-auth [0x806

Re: [Dovecot] problem with ldap

2009-03-26 Thread Timo Sirainen
On Mar 26, 2009, at 5:20 AM, Xueron Nee wrote: It's OK when not build ldap as a plugin. This should help: http://hg.dovecot.org/dovecot-1.2/rev/643a96aec996

Re: [Dovecot] problem with ldap

2009-03-26 Thread Xueron Nee
It's OK when not build ldap as a plugin. I checked passed.c and userdb.c and compared with 1.1.x, and modified them: change: passdb_register_module(&passdb_ldap); to: #if defined(PASSDB_LDAP) && defined(BUILTIN_LDAP) passdb_register_module(&passdb_ldap); #endif and OK. There are

Re: [Dovecot] problem with ldap

2009-03-23 Thread Michal Hlavinka
And the same problem here, I can't get it compiled. (This is first time, I'm packaging 1.2 branch). It fails for ldap plugin (./configure --with-ldap=plugin is enough to reproduce this) linking src/auth/dovecot-auth >/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -W

Re: [Dovecot] problem with ldap

2009-03-16 Thread Xueron Nee
And, It's OK with the src downloaded from http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz with the same > # CPPFLAGS="-I/home/dovecot/include -I/home/dovecot/include/mysql" \ > LDFLAGS="-L/home/dovecot/lib -L/home/dovecot/lib/mysql" \ > ./configure --prefix=/home/dovecot \ > --with-ldap=p

Re: [Dovecot] problem with ldap

2009-03-16 Thread Xueron Nee
The same with the src downloaded from: http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz BDB-4.6, openldap-2.4.11, openssl, mysql were installed in /home/dovecot. # CPPFLAGS="-I/home/dovecot/include -I/home/dovecot/include/mysql" \ LDFLAGS="-L/home/dovecot/lib -L/home/dovecot/lib/mysq

[Dovecot] problem with ldap

2009-03-16 Thread Xueron Nee
Hi, dovecot-1.2 from hg.dovecot.org openldap-2.4.11 passdb.o: In function `passdbs_init': /home/src/dovecot-1.2/src/auth/passdb.c:230: undefined reference to `passdb_ldap' userdb.o: In function `userdbs_init': /home/src/dovecot-1.2/src/auth/userdb.c:177: undefined reference to `userdb_ldap' col