Roundcube plugin that checks if users belong to a whitelist or blacklist.
This plugin is useful for multi-domain setups (https://github.com/roundcube/roundcubemail/wiki/Configuration:-Multi-Domain-Setup) where specific users need to be whitelisted or blacklisted from specific domains. This gives more control and flexibility than Roundcube built-in settings 'username_domain' and 'username_domain_forced'. I recommend placing user_check plugin configuration (see example configuration in config.inc.dist) in host-specific configuration files through Roundcube built-in setting 'include_host_config' to enable per-host user whitelists or blacklists. Filters will be matched against Roundcube usernames, which may or may not contain a domain part.