--- ./src/master/master-settings.c
+++ ./src/master/master-settings.c 2019-05-26 23:25:08.000000000 -0400
.protocols = "imap pop3 lmtp",
.ssl = "yes:no:required",
- .default_internal_user = "dovecot",
- .default_internal_group = "dovecot",
- .default_login_user = "dovenull",
+ .default_internal_user = "_dovecot",
+ .default_internal_group = "_dovenull",
+ .default_login_user = "_dovenull",
.default_process_limit = 100,
.default_client_limit = 1000,
+ /* macOS: `last_valid_gid = 100` to avoid the error */
+ /* imap: Fatal: setgroups(501) failed: Too many extra groups */
+ /* https://www.systemcodegeeks.com/mac-os/macos-dovecot-setgroups-failed/ */