Mike Constabel
2008-Dec-15 14:07 UTC
[Dovecot] cmusieve, vacation and error at file_dotlock_create
Hello again, managesieve is working. Now I tried a vacation script with the result that the vacation response is sent but I got he following error: deliver(test1 at xxxxxx.de): 2008-12-15 14:34:28 Error: file_dotlock_create(/home/vmail/%d/%n/Maildir/.dovecot.lda-dupes) failed: No such file or directory /home/vmail/xxxxxx.de/test1/Maildir/ is the correct dir, there are the other files like dovecot.index And mails are stored there correctly. Are %d/%n not expanded? Possible another error in my config? /etc/imap.passwd: test1 at xxxxxx.de:{plain}yyyyyy:vmail:vmail::/home/vmail/%d/%n/Maildir::userdb_mail=maildir:/home/vmail/%d/%n/Maildir # 1.1.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-1-686 i686 Debian lenny/sid log_path: /var/log/dovecot/dovecot.log info_log_path: /var/log/dovecot/dovecot-info.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3s managesieve listen(default): 127.0.0.1:143 listen(imap): 127.0.0.1:143 listen(pop3): 2xx.xx.xx.xx:110 listen(managesieve): localhost:2000 ssl_listen(default): 2xx.xx.xx.xx:993 ssl_listen(imap): 2xx.xx.xx.xx:993 ssl_listen(pop3): 2xx.xx.xx.xx:995 ssl_listen(managesieve): ssl_ca_file: /etc/postfix/ssl/ssl.xxxxxxxxx.de.ca-bundle ssl_cert_file: /etc/postfix/ssl/ssl.xxxxxxxxx.de.cert ssl_key_file: /etc/postfix/ssl/ssl.xxxxxxxxx.de.key ssl_verify_client_cert: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login login_processes_count: 2 login_max_processes_count: 32 mail_privileged_group: mail mail_location(default): maildir:~/Maildir mail_location(imap): maildir:~/Maildir mail_location(pop3): maildir:~/Maildir mail_location(managesieve): /home/vmail/%d/%n/Maildir mail_debug(default): no mail_debug(imap): no mail_debug(pop3): no mail_debug(managesieve): yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota expire trash autocreate mail_plugins(imap): quota imap_quota expire trash autocreate mail_plugins(pop3): quota expire trash mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve sieve_storage(default): sieve_storage(imap): sieve_storage(pop3): sieve_storage(managesieve): /home/vmail/sieve-scripts/%d/%n sieve(default): sieve(imap): sieve(pop3): sieve(managesieve): /home/vmail/%d/%n/.dovecot.sieve namespace: type: private inbox: yes list: yes subscriptions: yes auth default: username_format: %Lu verbose: yes process_size: 64 passdb: driver: passwd-file args: /etc/imap.passwd userdb: driver: passwd-file args: /etc/imap.passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: quota: maildir:User quota quota_rule: *:storage=250M quota_rule2: Trash:storage=50M quota_rule3: Spam:storage=50M trash: /etc/dovecot/dovecot-trash.conf expire: Trash 1 Trash/* 7 Spam 30 foobar 1 expire_dict: proxy::expire autocreate: Trash autocreate2: Junk autocreate3: Sent autocreate4: Drafts autosubscribe: Trash autosubscribe2: Junk autosubscribe3: Sent autosubscribe4: Drafts sieve: /home/vmail/sieve-scripts/%d/%n.sieve dict: expire: sqlite:/etc/dovecot/dovecot-expire-sql.conf
Timo Sirainen
2008-Dec-15 16:59 UTC
[Dovecot] cmusieve, vacation and error at file_dotlock_create
On Mon, 2008-12-15 at 15:07 +0100, Mike Constabel wrote:> Are %d/%n not expanded?No.> test1 at xxxxxx.de:{plain}yyyyyy:vmail:vmail::/home/vmail/%d/%n/Maildir::userdb_mail=maildir:/home/vmail/%d/%n/MaildirYou can't use %variables here in the home directory (otherwise it wouldn't be backwards compatible with existing passwd files containing % chars in home dirs). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081215/7b73472e/attachment-0002.bin>
Mike Constabel
2008-Dec-15 19:00 UTC
[Dovecot] cmusieve, vacation and error at file_dotlock_create
Hello Timo, Timo Sirainen schrieb am Montag, den 15. Dezember 2008:> On Mon, 2008-12-15 at 15:07 +0100, Mike Constabel wrote: > > Are %d/%n not expanded? > > No. > > > test1 at xxxxxx.de:{plain}yyyyyy:vmail:vmail::/home/vmail/%d/%n/Maildir::userdb_mail=maildir:/home/vmail/%d/%n/Maildir > > You can't use %variables here in the home directory (otherwise it > wouldn't be backwards compatible with existing passwd files containing % > chars in home dirs).Ah, ok. But instead I can use this: test1 at xxxxxx.de:{plain}yyyyyy:vmail:vmail::::userdb_mail=maildir:/home/vmail/%d/%n/Maildir userdb_home=/home/vmail/%d/%n/Maildir This seems to work for me. Thank you, Mike