Lystopad Olexandr
2010-Dec-19 07:02 UTC
[Dovecot] stat(/..../Maildir/cur) failed: No such file or directory
Hi! I use dovecot 1 without any problems for years. Thanks for it! Now I try to migrate to dovecot2. I have small problem. # dovecot --version 2.0.7 # dovecot -n # 2.0.7: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 8.1-RELEASE i386 auth_verbose = yes disable_plaintext_auth = no first_valid_gid = 26 first_valid_uid = 26 lda_mailbox_autocreate = yes login_greeting = imap/pop mailserver ready mail_debug = yes mail_location = maildir:~/Maildir mail_max_userip_connections = 50 mail_privileged_group = mail passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf driver = sql } protocols = pop3 imap service auth { unix_listener auth-userdb { group = mailnull mode = 0600 user = mailnull } user = root } service imap-login { inet_listener imap { address = * port = 143 } inet_listener imaps { address = * port = 993 } } service imap { process_limit = 512 } service pop3-login { inet_listener pop3 { address = * port = 110 } inet_listener pop3s { address = * port = 995 } } service pop3 { process_limit = 512 } ssl_cert = </usr/local/etc/exim/mail.crt ssl_key = </usr/local/etc/exim/mail.key userdb { args = /usr/local/etc/dovecot/dovecot-sql.conf driver = sql } verbose_proctitle = yes verbose_ssl = yes protocol pop3 { pop3_client_workarounds = outlook-no-nuls oe-ns-eoh pop3_uidl_format = %08Xu%08Xv } protocol imap { imap_client_workarounds = delay-newmail tb-extra-mailbox-sep } # dovecot-sql.conf: driver = mysql connect = host=localhost user=exim_user password=xxx dbname=exim default_pass_scheme = MD5-CRYPT password_query = SELECT login as user, crypt as password FROM accounts WHERE login = '%u' user_query = SELECT homedir as home, uid, gid, maildir as mail FROM accounts WHERE login = '%u'; exim router: mysql_account: driver = accept condition = ${lookup mysql{MYSQL_Q_MAILDIR}{$value}fail} transport = dovecot_delivery cannot_route_message = Unknown account $local_part@$domain exim transport: dovecot_delivery: driver = pipe command = /usr/local/libexec/dovecot/dovecot-lda -e -k -d $local_part@$domain \ -f $sender_address -a $original_local_part@$original_domain -m INBOX #use_shell user = mailnull message_prefix = "" message_suffix = "" return_path_add = true envelope_to_add = true delivery_date_add = true temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78 log_output And my problem: Dec 19 08:50:05 server dovecot: auth: Error: mysql: Query failed, retrying: MySQL server has gone away Dec 19 08:50:05 server dovecot: auth: mysql: Connected to localhost (exim) Dec 19 08:50:05 server dovecot: lda: Debug: auth input: 3mail at somedomain.priv home=/d/mail/somedomain.priv/3mail uid=26 gid=26 mail=/d/mail/somedomain.priv/3mail/Maildir Dec 19 08:50:05 server dovecot: lda: Debug: Added userdb setting: mail=/d/mail/somedomain.priv/3mail/Maildir Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Debug: Effective uid=26, gid=26, home=/d/mail/somedomain.priv/3mail Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Debug: maildir autodetect: stat(/d/mail/somedomain.priv/3mail/Maildir/cur) failed: No such file or directory Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Debug: mbox autodetect: INBOX file: is a directory (/d/mail/somedomain.priv/3mail/Maildir) Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Debug: mbox autodetect: has .imap/: stat(/d/mail/somedomain.priv/3mail/Maildir/.imap) failed: No such file or directory Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Debug: mbox autodetect: has inbox: stat(/d/mail/somedomain.priv/3mail/Maildir/inbox) failed: No such file or directory Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Debug: mbox autodetect: has mbox: stat(/d/mail/somedomain.priv/3mail/Maildir/mbox) failed: No such file or directory Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Error: user 3mail at somedomain.priv: Initialization failed: Initializing mail storage from mail_location setting failed: Ambiguous mail location setting, don't know what to do with it: /d/mail/somedomain.priv/3mail/Maildir (try prefixing it with mbox: or maildir:) Dec 19 08:50:05 server dovecot: lda(3mail at somedomain.priv): Fatal: Invalid user settings. Refer to server log for more information. If I manually mkdir /d/mail/somedomain.priv/3mail/Maildir/cur and chown it to 26:26 mail succesfully delieveried. Why lda_mailbox_autocreate=yes does not create this dir? Thanks. -- Lystopad Olexandr
Holger Mauermann
2010-Dec-19 10:54 UTC
[Dovecot] stat(/..../Maildir/cur) failed: No such file or directory
Am 19.12.2010 08:02, schrieb Lystopad Olexandr:> ... > mail_location = maildir:~/Maildir > ... > user_query = SELECT homedir as home, uid, gid, maildir as mail FROM accounts WHERE login = '%u'; > ... > Dec 19 08:50:05 server dovecot: lda: Debug: auth input: 3mail at somedomain.priv home=/d/mail/somedomain.priv/3mail uid=26 gid=26 mail=/d/mail/somedomain.priv/3mail/MaildirHave you tried SELECT homedir as home, uid, gid FROM accounts WHERE login = '%u' in your user_query? If mail_location is the same for all users you don't need to override it with "SELECT ... maildir as mail...". But if you do you have to prefix it with the mailbox format. Holger
Reasonably Related Threads
- Dovecot2 Antispam MAILTRAIN backend with SpamAssassin
- libvirtd does not update VM .xml configurations on filesystem after virsh snapshot/blockcommit
- libvirtd does not update VM .xml configuration on filesystem after virsh blockcommit
- 4.0 stopped working after updating xubuntu 13.04
- (no subject)