# allow shell access for users. See doc/configuration.txt for more information.
#valid_chroot_dirs =
+# Default chroot directory for mail processes. This can be overridden by
+# giving /./ in user's home directory (eg. /home/./user chroots into /home).
+#mail_chroot =
+
# Default MAIL environment to use when it's not set. By leaving this empty
# dovecot tries to do some automatic detection as described in
# doc/mail-storages.txt. There's a few special variables you can use:
home_dir = data + reply->home_idx;
chroot_dir = data + reply->chroot_idx;
+ if (*chroot_dir == '\0')
+ chroot_dir = set->mail_chroot;
+
if (*chroot_dir != '\0' && !validate_chroot(set, chroot_dir)) {
i_error("Invalid chroot directory: %s", chroot_dir);
return FALSE;
/* mail */
DEF(SET_STR, valid_chroot_dirs),
+ DEF(SET_STR, mail_chroot),
DEF(SET_INT, max_mail_processes),
DEF(SET_BOOL, verbose_proctitle),
/* mail */
const char *valid_chroot_dirs;
+ const char *mail_chroot;
unsigned int max_mail_processes;
int verbose_proctitle;