- Server operating system version
- Ubuntu 22.04.5 LTS
- Plesk version and microupdate number
- Plesk Obsidian 18.0.73 Update #3 Web Host Edition
Just in case others experience issues after Plesk updates Dovecot to version 2.4, here's what happened on our server.
Basically Dovecot failed to start, and after running sudo doveconf -n, it pointed to an error in a custom configuration file : Fatal: Error in configuration file /etc/dovecot/conf.d/50-custom.conf line 1: mail_location: Unknown setting: mail_location
After a bit of a panic and the phone ringing off the hook I tracked it down to the fact that mail_locaton is no longer supported.
Here was a our custom config file:
After changing it to the following Dovecot started and I had happy customers again:
Hopefully this will help others in a similar situation.
Basically Dovecot failed to start, and after running sudo doveconf -n, it pointed to an error in a custom configuration file : Fatal: Error in configuration file /etc/dovecot/conf.d/50-custom.conf line 1: mail_location: Unknown setting: mail_location
After a bit of a panic and the phone ringing off the hook I tracked it down to the fact that mail_locaton is no longer supported.
Here was a our custom config file:
mail_location = maildir:/var/qmail/mailnames/%Ld/%Ln/Maildir:LAYOUT=fs:UTF-8
namespace inbox {
separator = /
inbox = yes
prefix =
mailbox Sent {
auto = subscribe # autocreate and autosubscribe the Sent mailbox
special_use = \Sent
}
mailbox Spam {
auto = create # autocreate Spam, but don't autosubscribe
special_use = \Junk
}
mailbox Drafts {
auto = create
special_use = \Drafts
}
mailbox Trash {
auto = create
special_use = \Trash
}
}
After changing it to the following Dovecot started and I had happy customers again:
mail_home = /var/qmail/mailnames/%{user | domain | lower}/%{user | username | lower}
mail_driver = maildir
mail_path = /var/qmail/mailnames/%{user | domain | lower}/%{user | username | lower}/Maildir
mailbox_list_layout = fs
# mailbox_name_charset = utf-8
namespace inbox {
separator = /
inbox = yes
prefix =
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Spam {
auto = create
special_use = \Junk
}
mailbox Drafts {
auto = create
special_use = \Drafts
}
mailbox Trash {
auto = create
special_use = \Trash
}
}
Hopefully this will help others in a similar situation.