[Dovecot] Ambiguous mail location setting
"Using Dovecot v1.0.alpha4 on OpenBSD 3.8 (same problem find using Dovecot v1.0.alpha3 on OpenBSD 3.7)
Log output:
dovecot: Nov 04 11:15:28 Info: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=127.0.0.1 rip=127.0.0.1 resp=AHl2cmlAbjN1dHJpbm4uaXQAeXVyaW6zgXRyaW1v dovecot: Nov 04 11:15:28 Info: auth(default): sql(myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot,127.0.0.1): query: SELECT password FROM user_accounts WHERE username='myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot' dovecot: Nov 04 11:15:28 Info: auth(default): client out: OK 1 user=myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot dovecot: Nov 04 11:15:28 Info: auth(default): master in: REQUEST 5 32206 1 dovecot: Nov 04 11:15:28 Info: auth(default): sql(myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot,127.0.0.1): SELECT '/var/mail/'||mailbox AS mail, uid, gid FROM user_accounts WHERE username='myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot' dovecot: Nov 04 11:15:28 Info: auth(default): master out: USER 5 myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot mail=/var/mail/mydomain.com/myuser uid=10001 gid=10001 dovecot: Nov 04 11:15:28 Error: imap(myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot): Ambiguous mail location setting, don't know what to do with it: /var/mail/mydomain.com/myuser (try prefixing it with mbox: or maildir:) dovecot: Nov 04 11:15:28 Error: imap(myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot): Failed to create storage with data: /var/mail/mydomain.com/myuser
I verified that "default_mail_env" on my dovecot configuration file are "maildir:" correctly prefixed:
"default_mail_env = maildir:/var/mail/%d/%n"
and ... permissions of /var/mail/mydomain and /var/mail/mydomain/myuser are 2755 and owner is root:mail. I'm sure that isn't an authentication problem. I've tried some days to understand and to find over internet and here in the dovecot mailing list but I've not find a solution yet. I think it's a dovecot internal bug. Someone know what I'm talking about?"
Set permissions on the mail folder to 2775 because dovecot runs as its own user and group and you need the mail file in that folder to accept writes from mail and from dovecot groups. Also in the config file dovecot.conf you need to specify if the files are maildir or mbox. They are probably mbox but try both for the error messages.
Le 5 juil. 09 à 07:56, Shawn a écrit :
"Using Dovecot v1.0.alpha4 on OpenBSD 3.8 (same problem find using
Dovecot v1.0.alpha3 on OpenBSD 3.7)[...] dovecot: Nov 04 11:15:28 Error: imap(myuser at mydomain.com <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot
): Ambiguous mail location setting, don't know what to do with it: / var/mail/mydomain.com/myuser (try prefixing it with mbox: or maildir:) dovecot: Nov 04 11:15:28 Error: imap(myuser at mydomain.com <http://dovecot.org/cgi-bin/mailman/listinfo/dovecot ): Failed to create storage with data: /var/mail/mydomain.com/myuser [...]
Hello Shawn,
A very quick guess here...
Could it be that the dot in "/var/mail/mydomain.com/myuser" is
interpreted as a hierachy separator?
HTH, Axel
On 7/5/2009, Shawn (shawn.collins@mts.net) wrote:
"Using Dovecot v1.0.alpha4 on OpenBSD 3.8 (same problem find using Dovecot v1.0.alpha3 on OpenBSD 3.7)
Ummm... upgrade??
Seriously... 1.0alpha?? When the current stable version is 1.2?
--
Best regards,
Charles
On Sun, 2009-07-05 at 00:56 -0500, Shawn wrote:
"Using Dovecot v1.0.alpha4 on OpenBSD 3.8 (same problem find using Dovecot v1.0.alpha3 on OpenBSD 3.7)
Like Charles said, v1.0 alphas are way too old. You really should be using at least v1.0.0 or you're going to run into other bugs.
dovecot: Nov 04 11:15:28 Info: auth(default): sql(myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot,127.0.0.1): SELECT '/var/mail/'||mailbox AS mail, uid, gid FROM user_accounts WHERE username='myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot' dovecot: Nov 04 11:15:28 Info: auth(default): master out: USER 5 myuser at mydomain.com http://dovecot.org/cgi-bin/mailman/listinfo/dovecot mail=/var/mail/mydomain.com/myuser uid=10001 gid=10001
See the mail=/var/mail/mydomain.com/myuser output there.
I verified that "default_mail_env" on my dovecot configuration file are "maildir:" correctly prefixed:
default_mail_env is completely overridden by the mail= returned from user_query. Add maildir: prefix to the mail field returned by user_query.
participants (4)
-
Axel Luttgens
-
Charles Marcus
-
Shawn
-
Timo Sirainen