remote_api (3.1): validate_server_mail_config isn't run if configuration is changed through server_config_set
Is 'validate_server_mail_config' supposed to be run upon changing server configuration through remote_api? It seems it doesn't.
Checked with setting 'mailbox_virtual_uidgid_maps', changing it on server with email users present causes an error if done through web interface (which is correct), but it doesn't fail if executed through API (db record gets changed as well).
P.S. As an aside, is it safe to change this option through DB on server with existing email users, if immediately followed by:
- fixing user uid/gid in the 'mail_user' table (mb with 'mail_user_update')
- fixing maildir permissions at fs level
Are there some other changes needed?
Upd: 2. seems to be unnecessary, as fs permissions get changed automatically with 'mail_user_update' {'uid': -1} remote_api call, no problems found so far