Vit
1
good afternoon. Tell me please. How can I disable the Webmail service for a specific user using a script - set-bulk-accounts.py .
I’m running the command - python3 set-bulk-accounts.py file=Webmaildisable.txt host=127.0.0.1 port=7000 WebMail:actions=disable
It doesn’t work, can you help me with the correct syntax?
Thanks!
Hello @Vit
Considering that available services are set in “Limits” context for each account the command that you should use is:
python3 set-bulk-accounts.py file= Webmaildisable.txt limits:services="(smtpIncoming smtpOutgoing pop3 imap)"
Another option is to can create an AccountClass that has Webmail disabled and move all the desired accounts to this new AccountClass
Regards,
Florin