macOS Mojave: setgroups(501) failed: Too many extra groups

James Brown jlbrown at
Sun Nov 18 13:43:58 EET 2018

> On 11 Oct 2018, at 7:35 pm, Heiko W. Rupp <hwr at> wrote:
> On Thu, Oct 11, 2018 at 10:55:39AM +0300, Aki Tuomi wrote:
>> Maybe. Have to see when we can implement it though. It could probably
>> leverage the min/max_gid setting.
> Actually that was a great hint.
> Setting 
>   last_valid_gid = 100 
> in the config and restarting helped. 
> Having a filter-list instead of fixed upper/lower bounds would be more
> flexible. I guess though that in reality most systems/setups have ranges
> for different kinds of groups, so that the first/last_valid_gid could
> be applied.
> Thanks
>   Heiko

Hi Heiko,

I’m also trying to set up Dovecot on a Mojave system.

Would you mind leting me know what your settings are?

Ie output of:

dovecot -n

Many thanks,


More information about the dovecot mailing list