soko.tica
2014-Nov-26 08:04 UTC
mail_location maildir:~/Maildir Invalid user settings[SOLVED]
Hallo list, I was having quite a hard time configuring dovecot on OpenBSD -current. The problem was default Maildir setting in 10-mail.conf, namely: mail_location maildir:~/Maildir was unable to locate user's home directory. As far as I can remember, it was the correct setting on OpenBSD-current a week or two ago. Once I figured out and changed it to mail_location maildir:/path/to/home/%u/Maildir the problem was solved. Attached are dmesg, maillog and doveconf -n output. -------------- next part -------------- OpenBSD 5.6-current (GENERIC) #525: Wed Nov 19 22:47:44 MST 2014 deraadt at i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC -------------- next part -------------- Nov 26 07:11:01 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:01 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:01 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:01 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:01 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:01 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:01 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:01 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:01 mail smtpd[9800]: delivery: TempFail for fbf36ef37c9c77b7: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=5h40m36s, stat=Error (exited abnormally) Nov 26 07:11:01 mail smtpd[9800]: delivery: TempFail for 4bb3fc1714ae81fc: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=5h41m, stat=Error (exited abnormally) Nov 26 07:11:01 mail dovecot: master: Dovecot v2.2.15 starting up for imap, pop3, lmtp Nov 26 07:11:02 mail smtpd[9800]: smtp-in: New session 9b58df7942912f06 from host mail.home.lan [local] Nov 26 07:11:02 mail smtpd[9800]: smtp-in: New session 9b58df7a831a623b from host mail.home.lan [local] Nov 26 07:11:02 mail smtpd[9800]: smtp-in: Accepted message c8316a42 on session 9b58df7942912f06: from=<>, to=<root at mail.home.lan>, size=10090, ndest=1, proto=ESMTP Nov 26 07:11:02 mail smtpd[9800]: smtp-in: Closing session 9b58df7942912f06 Nov 26 07:11:02 mail smtpd[9800]: smtp-in: Accepted message 8cdef080 on session 9b58df7a831a623b: from=<>, to=<root at mail.home.lan>, size=2704, ndest=1, proto=ESMTP Nov 26 07:11:02 mail smtpd[9800]: smtp-in: Closing session 9b58df7a831a623b Nov 26 07:11:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:02 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=0s, stat=Error (exited abnormally) Nov 26 07:11:02 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=0s, stat=Error (exited abnormally) Nov 26 07:11:13 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:13 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:13 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:13 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:13 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:13 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:13 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=11s, stat=Error (exited abnormally) Nov 26 07:11:13 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:13 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:13 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=11s, stat=Error (exited abnormally) Nov 26 07:11:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:11:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:11:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:11:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:11:42 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=40s, stat=Error (exited abnormally) Nov 26 07:11:42 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=40s, stat=Error (exited abnormally) Nov 26 07:12:32 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:12:32 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:12:32 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:12:32 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:12:32 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:12:32 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:12:32 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:12:32 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:12:32 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=1m30s, stat=Error (exited abnormally) Nov 26 07:12:32 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=1m30s, stat=Error (exited abnormally) Nov 26 07:13:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:13:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:13:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:13:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:13:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:13:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:13:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:13:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:13:42 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=2m40s, stat=Error (exited abnormally) Nov 26 07:13:42 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=2m40s, stat=Error (exited abnormally) Nov 26 07:15:13 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:15:13 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:15:13 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:15:13 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:15:13 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:15:13 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:15:13 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:15:13 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:15:13 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=4m11s, stat=Error (exited abnormally) Nov 26 07:15:13 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=4m11s, stat=Error (exited abnormally) Nov 26 07:17:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:17:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:17:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:17:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:17:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:17:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:17:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:17:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:17:02 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6m, stat=Error (exited abnormally) Nov 26 07:17:02 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6m, stat=Error (exited abnormally) Nov 26 07:19:12 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:19:12 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:19:12 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:19:12 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:19:12 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:19:12 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:19:12 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=8m10s, stat=Error (exited abnormally) Nov 26 07:19:12 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:19:12 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:19:12 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=8m10s, stat=Error (exited abnormally) Nov 26 07:21:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:21:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:21:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:21:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:21:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:21:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:21:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:21:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:21:42 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=10m40s, stat=Error (exited abnormally) Nov 26 07:21:42 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=10m40s, stat=Error (exited abnormally) Nov 26 07:22:41 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:22:41 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:22:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:22:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:22:42 mail smtpd[9800]: delivery: TempFail for 4bb3fc1714ae81fc: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=5h52m41s, stat=Error (exited abnormally) Nov 26 07:23:05 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:23:05 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:23:05 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:23:05 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:23:05 mail smtpd[9800]: delivery: TempFail for fbf36ef37c9c77b7: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=5h52m40s, stat=Error (exited abnormally) Nov 26 07:24:32 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:24:32 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:24:32 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:24:32 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:24:32 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:24:32 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:24:32 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:24:32 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:24:32 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=13m30s, stat=Error (exited abnormally) Nov 26 07:24:32 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=13m30s, stat=Error (exited abnormally) Nov 26 07:27:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:27:42 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:27:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:27:42 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:27:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:27:42 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:27:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:27:42 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:27:42 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=16m40s, stat=Error (exited abnormally) Nov 26 07:27:42 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=16m40s, stat=Error (exited abnormally) Nov 26 07:31:12 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:31:12 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:31:12 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:31:12 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:31:12 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=20m10s, stat=Error (exited abnormally) Nov 26 07:31:12 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:31:12 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:31:12 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:31:12 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:31:12 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=20m10s, stat=Error (exited abnormally) Nov 26 07:35:03 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:35:03 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:35:03 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:35:03 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:35:03 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:35:03 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:35:03 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:35:03 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:35:03 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=24m1s, stat=Error (exited abnormally) Nov 26 07:35:03 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=24m1s, stat=Error (exited abnormally) Nov 26 07:38:11 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:38:11 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:38:11 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:38:11 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:38:11 mail smtpd[9800]: delivery: TempFail for 4bb3fc1714ae81fc: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6h8m10s, stat=Error (exited abnormally) Nov 26 07:38:35 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:38:35 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:38:35 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:38:35 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:38:35 mail smtpd[9800]: delivery: TempFail for fbf36ef37c9c77b7: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6h8m10s, stat=Error (exited abnormally) Nov 26 07:39:12 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:39:12 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:39:12 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:39:12 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir Nov 26 07:39:12 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:39:12 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': Home directory not set for user. Can't expand ~/ for mail root dir in: ~/Maildir Nov 26 07:39:12 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:39:12 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:39:12 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=28m10s, stat=Error (exited abnormally) Nov 26 07:39:12 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=28m10s, stat=Error (exited abnormally) Nov 26 07:40:42 mail dovecot: master: Warning: SIGHUP received - reloading configuration Nov 26 07:40:43 mail dovecot: master: Warning: fd limit (ulimit -n) is lower than required under max. load (512 < 1000), because of default_client_limit Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:41:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin~/Maildir Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin~/Maildir Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:41:02 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin~/Maildir Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin~/Maildir Nov 26 07:41:02 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin~/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin~/Maildir, altNov 26 07:41:02 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin~/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin~/Maildir, altNov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : /var/home/admin~/Maildir doesn't exist yet, using default permissions Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : Using permissions from /var/home/admin~/Maildir: mode=0700 gid=default Nov 26 07:41:02 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin~/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin~/Maildir, altNov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : /var/home/admin~/Maildir doesn't exist yet, using default permissions Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : Using permissions from /var/home/admin~/Maildir: mode=0700 gid=default Nov 26 07:41:02 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin~/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin~/Maildir, altNov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : /var/home/admin~/Maildir doesn't exist yet, using default permissions Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : /var/home/admin~/Maildir doesn't exist yet, using default permissions Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : Using permissions from /var/home/admin~/Maildir: mode=0700 gid=default Nov 26 07:41:02 mail dovecot: lda(admin): Debug: Namespace : Using permissions from /var/home/admin~/Maildir: mode=0700 gid=default Nov 26 07:41:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': mkdir(/var/home/admin~/Maildir) failed: Permission denied (euid=1000(admin) egid=1000(admin) missing +w perm: /var/home, dir owned by 0:0 mode=0755) Nov 26 07:41:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': mkdir(/var/home/admin~/Maildir) failed: Permission denied (euid=1000(admin) egid=1000(admin) missing +w perm: /var/home, dir owned by 0:0 mode=0755) Nov 26 07:41:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:41:02 mail smtpd[9800]: delivery: TempFail for 4bb3fc1714ae81fc: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6h11m1s, stat=Error (exited abnormally) Nov 26 07:41:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': mkdir(/var/home/admin~/Maildir) failed: Permission denied (euid=1000(admin) egid=1000(admin) missing +w perm: /var/home, dir owned by 0:0 mode=0755) Nov 26 07:41:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:41:02 mail dovecot: lda(admin): Error: user admin: Initialization failed: Namespace '': mkdir(/var/home/admin~/Maildir) failed: Permission denied (euid=1000(admin) egid=1000(admin) missing +w perm: /var/home, dir owned by 0:0 mode=0755) Nov 26 07:41:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:41:02 mail smtpd[9800]: delivery: TempFail for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=30m, stat=Error (exited abnormally) Nov 26 07:41:02 mail dovecot: lda(admin): Fatal: Invalid user settings. Refer to server log for more information. Nov 26 07:41:02 mail smtpd[9800]: delivery: TempFail for fbf36ef37c9c77b7: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6h10m37s, stat=Error (exited abnormally) Nov 26 07:41:02 mail smtpd[9800]: delivery: TempFail for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=30m, stat=Error (exited abnormally) Nov 26 07:45:23 mail dovecot: master: Warning: SIGHUP received - reloading configuration Nov 26 07:45:24 mail dovecot: master: Warning: fd limit (ulimit -n) is lower than required under max. load (512 < 1000), because of default_client_limit Nov 26 07:45:27 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:45:27 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:45:27 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin/Maildir Nov 26 07:45:27 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin/Maildir Nov 26 07:45:27 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin/Maildir, altNov 26 07:45:27 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin/Maildir, altNov 26 07:45:27 mail dovecot: lda(admin): Debug: userdb lookup skipped, username taken from passwd lookup for process euid Nov 26 07:45:27 mail dovecot: lda(admin): Debug: userdb lookup skipped, username taken from passwd lookup for process euid Nov 26 07:45:27 mail dovecot: lda(admin): Debug: none: root=, index=, indexpvt=, control=, inbox=, altNov 26 07:45:27 mail dovecot: lda(admin): Debug: none: root=, index=, indexpvt=, control=, inbox=, altNov 26 07:45:27 mail dovecot: lda(admin): Debug: Destination address: admin at mail.home.lan (source: user at hostname) Nov 26 07:45:27 mail dovecot: lda(admin): Debug: Destination address: admin at mail.home.lan (source: user at hostname) Nov 26 07:45:27 mail dovecot: lda(admin): msgid=unspecified: saved mail to INBOX Nov 26 07:45:27 mail smtpd[9800]: delivery: Ok for 8cdef080cf1ba84f: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=34m25s, stat=Delivered Nov 26 07:45:28 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:45:28 mail dovecot: lda(admin): msgid=<14337214018328326006.enqueue at mail.home.lan>: saved mail to INBOX Nov 26 07:45:28 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin/Maildir Nov 26 07:45:28 mail smtpd[9800]: delivery: Ok for 4bb3fc1714ae81fc: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6h15m27s, stat=Delivered Nov 26 07:45:28 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin/Maildir, altNov 26 07:45:28 mail dovecot: lda(admin): Debug: Effective uid=1000, gid=1000, homeNov 26 07:45:28 mail dovecot: lda(admin): Debug: userdb lookup skipped, username taken from passwd lookup for process euid Nov 26 07:45:28 mail dovecot: lda(admin): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/home/admin/Maildir Nov 26 07:45:28 mail dovecot: lda(admin): Debug: none: root=, index=, indexpvt=, control=, inbox=, altNov 26 07:45:28 mail dovecot: lda(admin): Debug: maildir++: root=/var/home/admin/Maildir, index=, indexpvt=, control=, inbox=/var/home/admin/Maildir, altNov 26 07:45:28 mail dovecot: lda(admin): Debug: Destination address: admin at mail.home.lan (source: user at hostname) Nov 26 07:45:28 mail dovecot: lda(admin): Debug: userdb lookup skipped, username taken from passwd lookup for process euid Nov 26 07:45:28 mail dovecot: lda(admin): Debug: none: root=, index=, indexpvt=, control=, inbox=, altNov 26 07:45:28 mail dovecot: lda(admin): msgid=<17580214401781573954.enqueue at mail.home.lan>: saved mail to INBOX Nov 26 07:45:28 mail dovecot: lda(admin): Debug: Destination address: admin at mail.home.lan (source: user at hostname) Nov 26 07:45:28 mail smtpd[9800]: delivery: Ok for fbf36ef37c9c77b7: from=<root at mail.home.lan>, to=<root at mail.home.lan>, user=admin, method=mda, delay=6h15m3s, stat=Delivered Nov 26 07:45:28 mail dovecot: lda(admin): msgid=unspecified: saved mail to INBOX Nov 26 07:45:28 mail smtpd[9800]: delivery: Ok for c8316a4287fd0ec0: from=<>, to=<root at mail.home.lan>, user=admin, method=mda, delay=34m26s, stat=Delivered -------------- next part -------------- # 2.2.15: /etc/dovecot/dovecot.conf # OS: OpenBSD 5.6 i386 ffs auth_debug_passwords = yes auth_socket_path = /var/dovecot/auth-userdb auth_verbose = yes auth_verbose_passwords = yes first_valid_uid = 1000 hostname = mail.home.lan imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes lda_original_recipient_header = X-Original-To mail_debug = yes mail_full_filesystem_access = yes mail_location = maildir:/var/home/%u/Maildir mmap_disable = yes namespace inbox { hidden = no inbox = yes list = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = separator = / subscriptions = yes type = private } passdb { driver = bsdauth } pop3_client_workarounds = outlook-no-nuls oe-ns-eoh postmaster_address = postmaster at home.lan service auth-worker { user = root } service auth { unix_listener auth-userdb { group = _dovenull mode = 0666 user = _dovenull } } service lmtp { unix_listener lmtp { mode = 0666 } } ssl_cert = </etc/ssl/dovecotcert.pem ssl_key = </etc/ssl/private/dovecot.pem userdb { driver = passwd } verbose_ssl = yes protocol lmtp { mail_plugins = } protocol lda { mail_plugins = }
Steffen Kaiser
2014-Dec-03 06:56 UTC
mail_location maildir:~/Maildir Invalid user settings[SOLVED]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 26 Nov 2014, soko.tica wrote:> I was having quite a hard time configuring dovecot on OpenBSD -current. > > The problem was default Maildir setting in 10-mail.conf, namely: > mail_location maildir:~/Maildir > was unable to locate user's home directory.Dovecot makes use of an user's home dir in some situations. You should investigate the problem further, esp. if you think about to enable Sieve.> As far as I can remember, it was the correct setting on > OpenBSD-current a week or two ago. > Once I figured out and changed it to > mail_location maildir:/path/to/home/%u/Maildir > the problem was solved.Actally, you worked around the problem. Dovecot seems to have problems to read the home dir from /etc/passwd. Do you have some Unix-hardening stuff ( Mandatory Access Control, Systrace) in place? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBVH60KXz1H7kL/d9rAQK1xAf9FCQdNxQlgKSsdflMLRWvWjzYr5DXrAfO PBly3bqtY1HrjK7yXA9zngntJ3OspdBG7Sbp8wyWQ7GAsNCCFviz/f+2S+tPlZ4b abqsNQ9kuR1J6o/ewUZQgRK0NivwRUv/1VU2NJ1EUiYGd5/u9k3FRQwuzR+Hax/t Mw9Joib68+yC6eX6V2zbUOriKEfhGDJaCZcBjxHPU6peDl9EQxBPqmtTQEe9APTw rvepTq1yxlK47Gpi6wCP77zLGSHJSexlDTtBgLc/7mW+svhKoXe1ORA+F7oBpTPj XkB0b/hq+lFOBJbjU3iRt7x8wLLcdl5idqXcx4x81Zk35jZnrDf0lA==dVRV -----END PGP SIGNATURE-----