Richard
2006-Aug-20 16:55 UTC
[Dovecot] maildir autodetect failing. what's wrong with this setup?
i'm setting up for virtual_users w/ maildir. i have in my dovecot.conf: auth default { passdb passwd-file { args = /etc/dovecot/imapd.passwd } userdb static { args = static uid=300 gid=300 home=/var/dovecot/mail mail=maildir:/var/dovecot/mail/%d/%n/Maildir nice=10 } } default_mail_env maildir:/var/dovecot/mail/%d/%n/Maildir:INDEX=/var/dovecot/indexes/%d/%n in /etc/dovecot/imapd.passwd, i have: omn at server.com:{PLAIN}pass:300:300::/var/dovecot/mail::: i've created: /var/dovecot/mail/server.com/omn/Maildir/cur but, on login @ telnet with: x login omn at server.com pass i see: dovecot: Aug 20 08:07:33 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=x.x.x.x rip=x.x.x.x resp=<hidden> dovecot: Aug 20 08:07:33 Info: auth(default): client out: OK 1 user=omn at server.com dovecot: Aug 20 08:07:33 Info: auth(default): master in: REQUEST 1 28584 1 dovecot: Aug 20 08:07:33 Info: auth(default): master out: USER 1 omn at server.com static uid=300 gid=300 homemail=maildir:/server.com/omn/Maildir nice=10 dovecot: Aug 20 08:07:33 Info: imap-login: Login: user=<omn at server.com>, method=PLAIN, rip=x.x.x.x, lip=x.x.x.x, secured dovecot: Aug 20 08:07:33 Error: statfs(/server.com/omn/Maildir) failed: No such file or directory dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): Effective uid=300, gid=300 dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): Namespace: type=private, prefix=Private/, sep=/, inbox=yes, hidden=no, subscriptions=no dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): maildir autodetect: stat($default_mail_env/cur) failed: No such file or directory dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): mbox autodetect: data=$default_mail_env dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): mbox autodetect: INBOX file: stat($default_mail_env) failed: No such file or directory dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): mbox autodetect: has .imap/: stat($default_mail_env/.imap) failed: No such file or directory dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): mbox autodetect: has inbox: stat($default_mail_env/inbox) failed: No such file or directory dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): mbox autodetect: has mbox: stat($default_mail_env/mbox) failed: No such file or directory dovecot: Aug 20 08:07:33 Error: IMAP(omn at server.com): Ambiguous mail location setting, don't know what to do with it: $default_mail_env (try prefixing it with mbox: or maildir:) dovecot: Aug 20 08:07:33 Error: IMAP(omn at server.com): Failed to create storage for 'Private/' with data: $default_mail_env dovecot: Aug 20 08:07:33 Error: child 28587 (imap) returned error 89 thanks.
Timo Sirainen
2006-Aug-21 01:17 UTC
[Dovecot] maildir autodetect failing. what's wrong with this setup?
On Sun, 2006-08-20 at 09:55 -0700, Richard wrote:> i'm setting up for virtual_users w/ maildir. > > i have in my dovecot.conf: > > auth default { > passdb passwd-file { > args = /etc/dovecot/imapd.passwd > } > userdb static { > args = static uid=300 gid=300 home=/var/dovecot/mail > mail=maildir:/var/dovecot/mail/%d/%n/Maildir nice=10 > } > } > default_mail_env > maildir:/var/dovecot/mail/%d/%n/Maildir:INDEX=/var/dovecot/indexes/%d/%nYour userdb static's mail overrides the default_mail_env. Probably better to use: args = static uid=300 gid=300 home=/var/dovecot/mail/%d/%n and nice=10 default_mail_env = maildir:~/Maildir:INDEX=/var/dovecot/indexes/%d/%n> in /etc/dovecot/imapd.passwd, i have: > > omn at server.com:{PLAIN}pass:300:300::/var/dovecot/mail:::If you're using userdb static, there's no point in having anything else in here than just "user:pass".> omn at server.com static uid=300 gid=300 home> mail=maildir:/server.com/omn/Maildir nice=10This doesn't look anymore what you showed above. Have you set mail_chroot or something? Or just show what "dovecot -n" says.> type=private, prefix=Private/, sep=/, inbox=yes, hidden=no, subscriptions=no > dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): maildir autodetect: > stat($default_mail_env/cur) failed: No such file or directoryI suppose you're trying to use $default_mail_env in namespace's location? That won't work. Just don't set location at all and that does it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060821/c9731031/attachment.bin>
Richard
2006-Aug-21 01:46 UTC
[Dovecot] maildir autodetect failing. what's wrong with this setup?
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 hi timo, thanks for the reply! Timo Sirainen wrote, On 8/20/06 6:17 PM:>> auth default { >> passdb passwd-file { >> args = /etc/dovecot/imapd.passwd >> } >> userdb static { >> args = static uid=300 gid=300 home=/var/dovecot/mail >> mail=maildir:/var/dovecot/mail/%d/%n/Maildir nice=10 >> } >> } >> default_mail_env >> maildir:/var/dovecot/mail/%d/%n/Maildir:INDEX=/var/dovecot/indexes/%d/%n > > Your userdb static's mail overrides the default_mail_env.aha.> Probably better to use: > > args = static uid=300 gid=300 home=/var/dovecot/mail/%d/%n and nice=10 > > default_mail_env = maildir:~/Maildir:INDEX=/var/dovecot/indexes/%d/%ngot it. changed.>> in /etc/dovecot/imapd.passwd, i have: >> >> omn at server.com:{PLAIN}pass:300:300::/var/dovecot/mail::: > > If you're using userdb static, there's no point in having anything else > in here than just "user:pass".i didn't originally *think* so, but i was seeing odd behaviors, and got confused. changed to: omn at server.com:{PLAIN}pass:::::::>> omn at server.com static uid=300 gid=300 home>> mail=maildir:/server.com/omn/Maildir nice=10 > > This doesn't look anymore what you showed above. Have you set > mail_chroot or something?nope. or, at least, no knowingly ...> Or just show what "dovecot -n" says.here you go, per request: % dovecot -n log_path: /var/Logs/dovecot/dovecot.log info_log_path: /var/Logs/dovecot/dovecot.log listen: *:143 ssl_listen: *:993 ssl_ca_file: /etc/ssl/CERTS/main.CA.cert.rsa.pem ssl_cert_file: /etc/ssl/CERTS/mail.server.com.rsa.pem ssl_key_file: /etc/ssl/PRIVATE_KEYS/mail.server.com.privkey.rsa.pem ssl_parameters_regenerate: 24 ssl_cipher_list: ALL:!SSLv2:!aNULL:!NULL:!EXPORT:!DES:!LOW:@STRENGTH verbose_ssl: yes login_dir: /var/Process/dovecot/login login_executable: /usr/local/dovecot/libexec/dovecot/imap-login login_user: dovecot_login login_greeting: mail.server.com Dovecot IMAP4 v1.0 server ready login_chroot: no login_greeting_capability: yes login_max_processes_count: 64 login_max_connections: 128 max_mail_processes: 256 first_valid_uid: 300 last_valid_uid: 300 mail_extra_groups: dovecot default_mail_env: maildir:~/Maildir:INDEX=/var/dovecot/mail/indexes/%d/%n mail_debug: yes maildir_copy_with_hardlinks: yes mbox_dotlock_change_timeout: 30 mbox_dirty_syncs: no mbox_lazy_writes: no umask: 7 mail_drop_priv_before_exec: yes mail_process_size: 128 mail_plugin_dir: /usr/local/dovecot-imap imap_client_workarounds: delay-newmail outlook-idle namespace: type: private separator: / prefix: Private/ inbox: yes namespace: type: public separator: / prefix: Public/ namespace: type: shared separator: / prefix: Shared/ auth default: mechanisms: plain digest-md5 cram-md5 user: dovecot verbose: yes debug: yes process_size: 64 passdb: driver: passwd-file args: /etc/dovecot/imapd.passwd userdb: driver: static args: static uid=300 gid=300 home=/var/dovecot/mail/%d/Accounts/%n nice=10>> type=private, prefix=Private/, sep=/, inbox=yes, hidden=no, subscriptions=no >> dovecot: Aug 20 08:07:33 Info: IMAP(omn at server.com): maildir autodetect: >> stat($default_mail_env/cur) failed: No such file or directory > > I suppose you're trying to use $default_mail_env in namespace'ste > location?yup.> That won't work. Just don't set location at all and that does > it.ok. removed. now, with login via telnet, i see: dovecot: Aug 20 18:42:29 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=x.x.x.x rip=x.x.x.x resp=<hidden> dovecot: Aug 20 18:42:29 Info: auth(default): client out: OK 1 user=omn at mail.server.com dovecot: Aug 20 18:42:29 Info: auth(default): master in: REQUEST 1 7529 1 dovecot: Aug 20 18:42:29 Info: auth(default): master out: USER 1 omn at mail.server.com static uid=300 gid=300 home=/var/dovecot/mail/mail.server.com/Accounts/omn nice=10 dovecot: Aug 20 18:42:29 Info: imap-login: Login: user=<omn at mail.server.com>, method=PLAIN, rip=x.x.x.x, lip=x.x.x.x, secured dovecot: Aug 20 18:42:30 Error: statfs(/var/dovecot/mail/indexes/mail.server.com/omn) failed: No such file or directory dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): Effective uid=300, gid=300 dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): Namespace: type=private, prefix=Private/, sep=/, inbox=yes, hidden=no, subscriptions=no dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): maildir: data=/var/dovecot/mail/mail.server.com/Accounts/omn/Maildir:INDEX=/var/dovecot/mail/indexes/mail.server.com/omn dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): maildir: root=/var/dovecot/mail/mail.server.com/Accounts/omn/Maildir, index=/var/dovecot/mail/indexes/mail.server.com/omn, control=, inboxdovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): Namespace: type=public, prefix=Public/, sep=/, inbox=no, hidden=no, subscriptions=no dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): maildir: data=/var/dovecot/mail/mail.server.com/Accounts/omn/Maildir:INDEX=/var/dovecot/mail/indexes/mail.server.com/omn dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): maildir: root=/var/dovecot/mail/mail.server.com/Accounts/omn/Maildir, index=/var/dovecot/mail/indexes/mail.server.com/omn, control=, inboxdovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): Namespace: type=shared, prefix=Shared/, sep=/, inbox=no, hidden=no, subscriptions=no dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): maildir: data=/var/dovecot/mail/mail.server.com/Accounts/omn/Maildir:INDEX=/var/dovecot/mail/indexes/mail.server.com/omn dovecot: Aug 20 18:42:30 Info: IMAP(omn at mail.server.com): maildir: root=/var/dovecot/mail/mail.server.com/Accounts/omn/Maildir, index=/var/dovecot/mail/indexes/mail.server.com/omn, control=, inbox which, IIUC, is "good" :-) if, so, Thank you, sir! Richard - -- /"\ \ / ASCII Ribbon Campaign X against HTML email, vCards / \ & micro$oft attachments [GPG] OpenMacNews at gmail dot com fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iEYEAREDAAYFAkTpEGAACgkQlffdvTZxCMZrWQCfbenOYQBc4EkaR0mdhh1YrQkv IEgAoL2IW2VLwjzN/aSV2orXcmsM0NOa =SqVn -----END PGP SIGNATURE-----