Eduardo M KALINOWSKI
2008-Jun-22 13:52 UTC
[Dovecot] v1.0.13: maildirfolder not being created
Hi, I'm using version 1.0.13 of dovecot. I know it's somewhat dated, but that's the latest that Debian etch offers, and I would like to avoid compiling by myself if possible. dovecot is not creating the 'maildirfolder' in folders that are created via IMAP. Looking at the NEWS file, this was implemented in v1.0.rc7, so my version should have that working already. Is there anything else that needs to be done? Here's dovecot -n: # 1.0.13: /etc/dovecot/dovecot.conf log_path: /var/log/dovecot/main.log info_log_path: /var/log/dovecot/info.log log_timestamp: %Y-%m-%d %H:%M:%S ssl_cert_file: /etc/ssl/certs/server.pem ssl_key_file: /etc/ssl/private/server.pem login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_processes_count: 1 first_valid_uid: 100 mail_privileged_group: mail mail_location: maildir:/home/vmail/%d/%n/INBOX:INDEX=/home/vmail/%d/%n/dovecotidx mail_plugins: quota imap_quota auth default: mechanisms: plain login cram-md5 passdb: driver: passwd-file args: /home/vmail/%d/db/passwd passdb: driver: pam userdb: driver: static args: uid=104 gid=8 home=/home/vmail/%d/%n userdb: driver: passwd socket: type: listen client: path: /var/run/dovecot/auth-client mode: 438 plugin: quota: maildir:ignore=Trash -- I want the presidency so bad I can already taste the hors d'oeuvres. Eduardo M KALINOWSKI eduardo at kalinowski.com.br http://move.to/hpkb
On Jun 22, 2008, at 4:52 PM, Eduardo M KALINOWSKI wrote:> Hi, > > I'm using version 1.0.13 of dovecot. I know it's somewhat dated, > but > that's the latest that Debian etch offers, and I would like to avoid > compiling by myself if possible. > > dovecot is not creating the 'maildirfolder' in folders that are > created via IMAP. Looking at the NEWS file, this was implemented in > v1.0.rc7, so my version should have that working already. Is there > anything else that needs to be done?I haven't touched that code for a long time. I just tested with 1.0.15 and it is created correctly. There isn't really anything in configuration that should break it either.. Well, you could always see if it gets created manually: telnet localhost 143 x login user pass y create testbox And then check again for sure that there's no maildirfolder in /home/ vmail/%d/%n/INBOX/.testbox/ If there really isn't, you could see if strace shows something useful. Before the testbox creation run "strace -p <pid of imap process>" and post the output. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080622/ef70fa69/attachment-0002.bin>
Eduardo M KALINOWSKI
2008-Jun-22 14:21 UTC
[Dovecot] v1.0.13: maildirfolder not being created
Timo Sirainen wrote:> On Jun 22, 2008, at 4:52 PM, Eduardo M KALINOWSKI wrote: >> Hi, >> >> I'm using version 1.0.13 of dovecot. I know it's somewhat dated, but >> that's the latest that Debian etch offers, and I would like to avoid >> compiling by myself if possible. >> >> dovecot is not creating the 'maildirfolder' in folders that are >> created via IMAP. Looking at the NEWS file, this was implemented in >> v1.0.rc7, so my version should have that working already. Is there >> anything else that needs to be done? > > I haven't touched that code for a long time. I just tested with 1.0.15 > and it is created correctly. There isn't really anything in > configuration that should break it either.. Well, you could always see > if it gets created manually: > > telnet localhost 143 > x login user pass > y create testbox > > And then check again for sure that there's no maildirfolder in > /home/vmail/%d/%n/INBOX/.testbox/I've made this test, and found out that the maildirfolder is created if there is no dovecot-shared file in INBOX/. But if there is, then it does not get created.> If there really isn't, you could see if strace shows something useful. > Before the testbox creation run "strace -p <pid of imap process>" and > post the output.I've done that, and apparently dovecot isn't even trying to create the maildirfolder file: Process 32277 attached - interrupt to quit gettimeofday({1214144259, 856957}, {240, 0}) = 0 gettimeofday({1214144259, 856996}, NULL) = 0 epoll_wait(4, {}, 3, 7450) = 0 gettimeofday({1214144267, 306066}, {240, 0}) = 0 gettimeofday({1214144267, 306107}, NULL) = 0 epoll_wait(4, {{EPOLLIN, {u32=135105032, u64=135105032}}}, 3, 10000) = 1 gettimeofday({1214144272, 528408}, {240, 0}) = 0 read(0, "4 create test3\n", 4096) = 15 setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0 stat64("/home/vmail/kalinowski.com.br/test/INBOX/.test3", 0xbf9350ac) -1 ENOENT (No such file or directory) stat64("/home/vmail/kalinowski.com.br/test/INBOX/dovecot-shared", {st_mode=S_IFREG|0640, st_size=0, ...}) = 0 umask(027) = 077 mkdir("/home/vmail/kalinowski.com.br/test/INBOX/.test3/cur", 0777) = -1 ENOENT (No such file or directory) mkdir("/home/vmail/kalinowski.com.br/test/INBOX/.test3", 0777) = 0 mkdir("/home/vmail/kalinowski.com.br/test/INBOX/.test3/cur", 0777) = 0 mkdir("/home/vmail/kalinowski.com.br/test/INBOX/.test3/new", 0777) = 0 stat64("/home/vmail/kalinowski.com.br/test/INBOX/.test3/tmp", 0xbf93505c) = -1 ENOENT (No such file or directory) mkdir("/home/vmail/kalinowski.com.br/test/INBOX/.test3/tmp", 0777) = 0 chown32("/home/vmail/kalinowski.com.br/test/INBOX/.test3/cur", -1, 8) = 0 chown32("/home/vmail/kalinowski.com.br/test/INBOX/.test3/new", -1, 8) = 0 chown32("/home/vmail/kalinowski.com.br/test/INBOX/.test3/tmp", -1, 8) = 0 open("/home/vmail/kalinowski.com.br/test/INBOX/.test3/dovecot-shared", O_WRONLY|O_CREAT|O_LARGEFILE, 0640) = 7 umask(077) = 027 fchown32(7, -1, 8) = 0 close(7) = 0 write(1, "4 OK Create completed.\r\n", 24) = 24 setsockopt(1, SOL_TCP, TCP_CORK, [0], 4) = 0 gettimeofday({1214144272, 529943}, NULL) = 0 epoll_wait(4, {}, 3, 4777) = 0 gettimeofday({1214144277, 305725}, {240, 0}) = 0 gettimeofday({1214144277, 305758}, NULL) = 0 epoll_wait(4, {}, 3, 1) = 0 gettimeofday({1214144277, 306737}, {240, 0}) = 0 gettimeofday({1214144277, 306767}, NULL) = 0 epoll_wait(4, {{EPOLLIN, {u32=135105032, u64=135105032}}}, 3, 10000) = 1 gettimeofday({1214144279, 474945}, {240, 0}) = 0 read(0, "", 4081) = 0 write(2, "\1IConnection closed\n", 20) = 20 epoll_ctl(4, EPOLL_CTL_DEL, 0, {0, {u32=135105032, u64=135105032}}) = 0 close(0) = 0 close(1) = 0 epoll_ctl(4, EPOLL_CTL_DEL, 2, {0, {u32=135099264, u64=135099264}}) = 0 munmap(0xb7f68000, 10336) = 0 munmap(0xb7e27000, 39884) = 0 close(3) = 0 epoll_ctl(4, EPOLL_CTL_DEL, 5, {0, {u32=135099168, u64=135099168}}) = 0 close(5) = 0 close(6) = 0 close(4) = 0 exit_group(0) = ? Process 32277 detached -- I bought some used paint. It was in the shape of a house. -- Steven Wright Eduardo M KALINOWSKI eduardo at kalinowski.com.br http://move.to/hpkb
Reasonably Related Threads
- maildirfolder file created in maildir root during auto-creation with 2.3.4.1 but not 2.2.27
- convert plugin created maildirfolder file in root maildir directory
- maildirfolder is created world-writeable
- v1.1.1: Some files not created with dovecot-shared permissions
- v1.0.13 and v1.1.rc3 released