Topic: Disabling a User via CLI Instead of iRedAdmin
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, I'd like to know how to disable one of my users from the CLI instead of using iRedAdmin. For example, I know there is a Python command to disable 2FA with sudo /usr/sbin/sogo-tool user-preferences set defaults user1@mailsrv.com SOGoGoogleAuthenticatorEnabled":0}'.
I’ve already tried using curl with the postmaster credentials, but that didn’t work. I need a solution for scripting purposes. Could you please guide me on how to achieve this?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.