Re: [Dovecot] question about mysql authentication

2008-01-17 Thread Chantal Rosmuller
On Wednesday 16 January 2008 18:39:56 Timo Sirainen wrote:
 On Wed, 2008-01-16 at 18:33 +0100, Chantal Rosmuller wrote:
  On Wednesday 16 January 2008 17:32:33 you wrote:
   On Wed, 2008-01-16 at 16:02 +0100, Chantal Rosmuller wrote:
When I use this:
  
   Starting from dovecot-example.conf would have worked better than trying
   to modify 0.99 configuration to work with v1.0.
 
  actually I got the configuration from a howto, maybe I should have looked
  at the example instead :)

 Yes, from a HOWTO written for v0.99..

  However now I get an error in the logfiles:
  auth(default): Error in configuration file /etc/dovecot-mysql.conf line
  4: Unknown setting: db
  Is there something wrong with my mysql configuration as well?

 Yes, you have it also in 0.99 format. See the dovecot-sql-example.conf
 included with v1.0 (sources at least) for how it's configured nowadays.

Thanks a lot! It works now.


[Dovecot] Postfix Dovecot LDA

2008-01-17 Thread tomzu
Hi, I was using Dovecot (POP3,IMAP+quotas) with postfix quota addon.
But the postfix's quotas were reported differently and the quota file
gets messed up all the time. So now I have also Dovecot's LDA, and
everything works like charm... but... Now postfix can pass only one
mail at a time to LDA. And that slows down delivery. Postfix master
file: dovecot   unix  -   n   n   -   -   pipe  
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f
${sender} -d ${recipient} Is there a way to pass more than one mail at
a time?

Re: [Dovecot] convert plugin fails - drops root privileges then tries to create file in /

2008-01-17 Thread Charles Marcus

On 1/16/2008, Mikel Ward ([EMAIL PROTECTED]) wrote:

I'm running dovecot-1.0-1.2.rc15.el5 on CentOS 5.


This is old and pre-release... upgrade please...


[Dovecot] Error with 1.1 Beta

2008-01-17 Thread Jeff Grossman
I am running the latest version of the 1.1 beta and just got the 
following error:


Jan 17 06:20:13 apple dovecot: IMAP(jeff): 
rename(/home/jeff/Maildir/.Sent Items/dovecot.index.cache.lock, 
/home/jeff/Maildir/.Sent Items/dovecot.index.cache) failed: No such file 
or directory
Jan 17 06:20:13 apple dovecot: IMAP(jeff): file_dotlock_replace() failed 
with index cache file /home/jeff/Maildir/.Sent 
Items/dovecot.index.cache: No such file

or directory

Is it something I should be concerned about?  I had just sent an e-mail 
about 30 seconds before that one which did not give the error.  I will 
see if I get the error again when I send this one.


Jeff


[Dovecot] Problem with Quotas

2008-01-17 Thread Ranjith Kumar
Hi,

I am using dovecot 1.0.10 and using passwd-file as userdb. I have
enabled quota plugin in /etc/dovecot.conf.
Extra fields are added into userdb.

user1:X:500:500:User1:/home/user1:/bin/bash:userdb_quota=maildir:storage=1024

Location of the inbox is /var/spool/mail/user1

I dont think this is working. The user already have 5MB in INBOX and
if I send a new mail, it is being delivered.

Do I need to change any settings?


Thanks,

Ranjith


[Dovecot] Converting from Maildir to dbox

2008-01-17 Thread Kjartan Andreassen
Hi,

How do i convert from Maildir to dbox using the convert plugin?

My users reside in /home/user/Maildir.

In the dovecot.conf file i've set up 

convert_mail = dbox:%h 

but I am not sure about the syntax.  Im getting the error:

Couldn't create mailbox directory INBOX
Mailbox conversion failed, exiting

Thanks

--
Kjartan

Re: [Dovecot] Need help to install dovecot on solaris 10 with openldap libs

2008-01-17 Thread Bill Cole
WARNING: The following advice has not been specifically tested, 
because I do not actually run Dovecot on Solaris. It is based on my 
experience with building other open source software on Solaris.



At 1:45 AM -0800 1/17/08, Dovecot Jami wrote:

Hi,

  I install dovecot with ldap support at Solaris 10 (x86). I know 
that solaris LDAP is broken and so I install openldap. OpenLDAP 
shared libraries are at /usr/local/lib and /usr/local/include. While 
installing dovecot, I did the followings:


  I execute this before run ./configure --with-ldap

  LDFLAGS=-L/usr/local/BerkeleyDB.4.2/lib 
-R/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib -R/usr/local/lib


Why are you including the Berkeley directories?


  but dovecot is using the Solaris default LDAP lib files.

  I also run

  LDFLAGS=-R/usr/local/lib
   and

  LDFLAGS=-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib 
/usr/local/lib/libldap-2.3.so.0 


  But dovecot is still using solaris ldap libs.


The configure script probably did not see the LDFLAGS variable 
because it was not in the configure command line and were not 
exported.


Also, it is not clear from your message whether you did everything 
necessary to remove your earlier build of Dovecot. That should 
include:


   make distclean

This removes all of the linked binaries, intermediate compiled 
objects, makefiles, and build configuration files in your Dovecot 
source directory that may have been created by previous attempts to 
configure and build the software. You need this to be absolutely sure 
that anything made using the previous build config is gone.


   CPPFLAGS=-I/usr/local/include \
   LDFLAGS='-L/usr/local/lib -R/usr/local/lib' \
   ./configure --with-ldap

NOTE THE TRAILING BACKSLASHES ON THE FIRST TWO LINES. You can either 
use those to escape the linebreaks from the shell or you can enter 
all three of the lines shown in one unbroken line. It should also 
work to set the flag variables and export them, but that could result 
in unwanted side-effects later. Setting the variables ahead of 
./configure makes the shell pass them in the environment, and 
configure also supports doing the assignments as arguments to the 
script itself.


If configure is seeing OpenLDAP, its output will include these lines:

   checking for ldap_init in -lldap... yes
   checking ldap.h usability... yes
   checking ldap.h presence... yes
   checking for ldap.h... yes
   checking for ldap_initialize in -lldap... yes
   checking for ldap_start_tls_s in -lldap... yes

NOTE: That is not conclusive proof that you ARE looking at OpenLDAP, 
but if those are not all 'yes' then you definitely are NOT.


   make

That will do the build, leaving the various Dovecot binaries in 
subdirectories of src (e.g. src/suth/dovecot-auth) Those can be 
examined with ldd. If all is well, you can install with:


   make install

That will install the binaries where they need to be.


--
Bill Cole
[EMAIL PROTECTED]



[Dovecot] Out of the box: Thank you!

2008-01-17 Thread Patrick Ben Koetter
I've just enabled IMAP quota support on a LDAP userbase in about an hour.

In this hour I read the Dovecot documentation on quota support, extended the
customers LDAP schema, added a mailQuota-attribute and a value to all users,
enabled the plugin in dovecot.conf, added the attribute query in
dovecot-ldap.conf, reloaded the system and tested the functionality and ...
everything worked out of the box.

Thank you Timo!

[EMAIL PROTECTED]

-- 
state of mind
Agentur für Kommunikation, Design und Softwareentwicklung

Patrick KoetterTel: 089 45227227
Echinger Strasse 3 Fax: 089 45227226
85386 Eching   Web: http://www.state-of-mind.de

Amtsgericht MünchenPartnerschaftsregister PR 563


[Dovecot] Patch for seg fault in 1.0.10

2008-01-17 Thread Richard Platel


Hi

SELECTING a non-existent folder in 1.0.10 with maildir causes a seg  
fault and client disconnect.  I believe this patch fixes the problem.


zlib-plugin.c.patch
Description: application/applefile


zlib-plugin.c.patch
Description: Binary data


Re: [Dovecot] Quota 1.1 problem

2008-01-17 Thread Raphael Bittencourt S. Costa
Solved.

I changed the user_attrs and could set user quota.

user_attrs =
mailMessageStore=home,qmailUID=uid,qmailGID=gid,mailQuotaSize=quota_rule=*:bytes

On Wed, 2008-01-16 at 17:52 -0200, Raphael Bittencourt S. Costa wrote:

 Helo all,
 
 I'm trying to use Dovecot v1.1.beta13 lda with ldap. I made a tons of
 change in configurations but still can't set quota from ldap. See
 below:
 
 Log:
 Jan 16 17:37:09 mailserver-03 dovecot: auth(default):
 userdb([EMAIL PROTECTED],127.0.0.1): Invalid GID value '*:bytes=1033'
 
 
 dovecot-ldap.conf:
 user_attrs =
 mailMessageStore=home,qmailUID=uid,qmailGID=gid,mailQuotaSize=quota_rule=*:bytes=%$
 
 ldap:
 dn: cn=teste,ou=xxx.com.br,ou=accounts
 mailHostAddress: 10.0.149.3
 userPassword:: e1NIQX1kNXFTUFdteTRISjBleEdYVzZocFNkNFdjRGM9
 mailQuotaSize: 10485760
 deliveryMode: nombox
 objectClass: top
 objectClass: person
 objectClass: organizationalPerson
 objectClass: inetOrgPerson
 objectClass: qmailUser
 accountStatus: active
 cn: teste
 qmailGID: 1033
 qmailUID: 1033
 mail: [EMAIL PROTECTED]
 mailMessageStore: /data/services/dominios/xxx.com.br/t/te/teste/
 uid: [EMAIL PROTECTED]
 sn: teste
 mailHost: mailserver03.xxx.com.br
 
 []s,
 
 Raphael Costa

Atenciosamente,










Raphael Bittencourt S. Costa
Engenharia
---
ALOG Data Centers do Brasil
Excelência em Projetos de Hosting
R Voluntários da Pátria 360 - RJ -
CEP 22270-010
Telefone: 21 3083-3364 - Fax: 21
3083-3300 http://www.alog.com.br 
attachment: _img_ass.jpg

signature.asc
Description: This is a digitally signed message part