uapi to determine if WHM is set to mdbox or maildir?
I'll spare the long-winded back story though it would be exceptionally helpful to know via uapi (or another terminal command) if the server is set to mdbox or maildir. What is the command to do this?
This is not the same as inquiring about specific mail accounts though I wouldn't mind knowing how to determine if a specific mail account is using mdbox or maildir.
-
Hey there! The only one I see is buried inside this guy:
https://api.docs.cpanel.net/openapi/cpanel/operation/Variables-get_server_information/
You're looking for "mailbox_storage_format" in that output.
For a per-account solution, we have this guy:
https://api.docs.cpanel.net/openapi/cpanel/operation/get_webmail_settings/
and it will show "has_maildir:1" if that's what's in use for that account enabled.
Will those work for you?
0
Please sign in to leave a comment.
Comments
1 comment