Skip to content

Upgrade configuration file in emailwiz for dovecot 2.4#352

Open
mielota wants to merge 4 commits intoLukeSmithxyz:masterfrom
mielota:fix/dovecot-2.4.1
Open

Upgrade configuration file in emailwiz for dovecot 2.4#352
mielota wants to merge 4 commits intoLukeSmithxyz:masterfrom
mielota:fix/dovecot-2.4.1

Conversation

@mielota
Copy link

@mielota mielota commented Jan 2, 2026

This aims to fix issue #347

Maybe we should specify in the README that this specific version of the script is for Dovecot >= 2.4

@wtweekPR
Copy link

wtweekPR commented Jan 2, 2026

thank you, this is very helpful!

@mielota mielota changed the title Upgrade configuration file in emailwif for dovecot 2.4 Upgrade configuration file in emailwiz for dovecot 2.4 Jan 2, 2026

# Our mail for each user will be in ~/Mail, and the inbox will be ~/Mail/Inbox
# The LAYOUT option is also important because otherwise, the boxes will be \`.Sent\` instead of \`Sent\`.
mail_location = $mailbox_format:~/Mail:INBOX=~/Mail/Inbox:LAYOUT=fs
Copy link

@norbjert norbjert Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good changes, but you missed a small detail:

- mail_location = $mailbox_format:~/Mail:INBOX=~/Mail/Inbox:LAYOUT=fs

After migrating my familys Email server I noticed that mail folders dont show up as they should. The reason for that was the removal of the LAYOUT=fs option here.

Since dovecot 2.4, you have to specify it with a different variable instead:
mailbox_list_layout=fs

By default, your current configuration would assume all Mail folders to start with a dot, f.e. ".Sent" or ".Trash"
Previous versions of emailwiz used a filesystem layout that created folders without the dot, "Sent" or "trash"

dovecot documentation for list layout

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi norbjert

I am sorry for this, I will send a fix right now.

mielota and others added 2 commits January 13, 2026 18:19
mailbox_list_layout = fs must appear explicitly in the config file even
though it's the default value used according to https://doc.dovecot.org/2.4.1/core/config/mail_location.html#mailbox_list_layout

If not set the folders will appear as .Drafts .Junk .Sent .Trash in the user's Mail directory instead of Drafts Junk Sent and Trash.
@qoldey
Copy link

qoldey commented Jan 14, 2026

Maybe we should specify in the README that this specific version of the script is for Dovecot >= 2.4

Added a line in the Troubleshooting section for this.

Update README with Dovecot 2.4 version info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants