If dovecot-auth was crashing with you, this release should fix it. I don't know when it did though, I just applied a patch from Andrey Panin with that description :)
Fixed also another dovecot-auth crash with Solaris and maybe some other systems.
Contains the first attempt of a Dovecot LDA. It's still in pretty ugly shape, but it should work, more or less. I wouldn't recommend using it in production yet. There are two ways to use it:
- As a normal user. The username is taken from passwd.
- Giving -d <username> option. This connects to dovecot-auth and requests the uid, gid, home, etc. from it. dovecot-auth's master socket is expected to be in /var/run/dovecot/auth-master but you can override this with -a parameter.
To actually create the auth-master socket you'll need to add this inside auth { .. } :
socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 } }
Dovecot LDA also currently needs dovecot-lda.conf file. Everything that is read from it is just dumped into environment variables internally. You should be able to set pretty much all the same settings in there as exists in dovecot.conf. The most important exception is that instead of default_mail_env there's just "mail". Example dovecot-lda.conf would be:
# note that namespaces aren't supported yet.. mail = mbox:~/mail:INBOX=/var/mail/%u mbox_read_locks = flock mbox_write_locks = flock # EOF
All this goes away once I get the config process implemented.
The actual usage goes something like:
/usr/local/libexec/dovecot/deliver -d username < mail_file
ie. the mail is read from standard input. Any suggestions if the "deliver" name should be changed and maybe moved to /usr/bin/?
Another large change is that I created dynamically growing array implementation with possibility to do compile time type checking. The old code was using buffer_t for arrays, but that got pretty ugly. I changed most of those in lib-index/ to the new array API. I'd be happy if someone changed the rest of them since it's pretty boring and time consuming job :) See lib/array.h for explanation how it works.
And finally a small advertisement: http://mjr.iki.fi/texts/patentfund
I can't compile 1.0-test65; it's barfing on one of the ARRAY_SET_TYPE instances:
cd ~/usr/src/dovecot-1.0-test65/src/lib-index/
make -k
source='mail-index-transaction.c' object='mail-index-transaction.o'
libtool=no DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib
-I../../src/lib-mail -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -c mail-index-transaction.c
mail-index-transaction.c: In function
mail_index_buffer_convert_to_uids': mail-index-transaction.c:102: syntax error before
struct'
[...]
FreeBSD 4.10, gcc 2.95.4. No problems compiling -test63 or -test64 on the same machine.
-- Nicholas Riley njriley@uiuc.edu | 4111 Siebel Center Department of Computer Science | 201 N. Goodwin Ave. and Medical Scholars Program | Urbana, IL 61801-2302 Univ. of Illinois at Urbana-Champaign | +1 217 244 2274
participants (2)
-
Nicholas Riley
-
Timo Sirainen