From b4353f802dbdec0a71b0e1cb64672c51d15c3c5e Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Fri, 2 Jan 2026 08:48:00 +0100 Subject: [PATCH 1/3] fix(dovecot)!: upgrade configuration file for dovecot to 2.4 --- emailwiz.sh | 117 +++++++++++++++++++++++++++++----------------------- 1 file changed, 66 insertions(+), 51 deletions(-) diff --git a/emailwiz.sh b/emailwiz.sh index 249551f..d0e8035 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -217,87 +217,102 @@ mv /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.backup.conf echo "Creating Dovecot config..." echo "# Dovecot config -# Note that in the dovecot conf, you can use: -# %u for username -# %n for the name in name@domain.tld -# %d for the domain -# %h the user's home directory +dovecot_config_version = 2.4.0 +dovecot_storage_version = 2.4.0 ssl = required -ssl_cert = <$certdir/fullchain.pem -ssl_key = <$certdir/privkey.pem +ssl_server_cert_file = $certdir/fullchain.pem +ssl_server_key_file = $certdir/privkey.pem ssl_min_protocol = TLSv1.2 -ssl_cipher_list = "'EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:EDH+aRSA+SHA256:EDH+aRSA:EECDH:!aNULL:!eNULL:!MEDIUM:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED'" -ssl_prefer_server_ciphers = yes -ssl_dh = /etc/dovecot/dovecot.conf From da777f611e0162224f5c738cff72ffd1d00d1b20 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Tue, 13 Jan 2026 18:19:36 +0100 Subject: [PATCH 2/3] fix(dovecot): set mailbox_list_layout to fs 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. --- emailwiz.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emailwiz.sh b/emailwiz.sh index d0e8035..04beee0 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -242,6 +242,9 @@ passdb pam { driver = pam } +# 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\`. +mailbox_list_layout = fs mail_driver = maildir mail_path = ~/Mail mail_inbox_path = ~/Mail/Inbox From 236a6a36e75c51cef9affcbd6a3780ba8fca42ad Mon Sep 17 00:00:00 2001 From: Goldey <80442811+qoldey@users.noreply.github.com> Date: Tue, 13 Jan 2026 22:59:49 -0800 Subject: [PATCH 3/3] Update README with Dovecot 2.4 version info. Specifying Dovecot version in README: https://github.com/LukeSmithxyz/emailwiz/pull/352#issue-3775814312 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 295666f..ec1d233 100644 --- a/README.md +++ b/README.md @@ -156,11 +156,12 @@ this script or documentation has saved you some frustration, donate here: - btc: `bc1qzw6mk80t3vrp2cugmgfjqgtgzhldrqac5axfh4` - xmr: `8A5v4Ci11Lz7BDoE2z2oPqMoNHzr5Zj8B3Q2N2qzqrUKhAKgNQYGSSaZDnBUWg6iXCiZyvC9mVCyGj5kGMJTi1zGKGM4Trm` -## Sites for Troubleshooting +## Troubleshooting Can't send or receive mail? Getting marked as spam? There are tools to double-check your DNS records and more: - Always check `journalctl -xe` first for specific errors. +- This script creates a configuration file for Dovecot >= 2.4. See [#347](https://github.com/LukeSmithxyz/emailwiz/issues/347). - [Check your DNS](https://intodns.com/) - [Test your TXT records via mail](https://appmaildev.com/en/dkim) - [Is your IP blacklisted?](https://mxtoolbox.com/blacklists.aspx)