Edit Mailserver Configuration via SSH
Hello, how we can edit this parameters via SSH ? We want to update multiple servers, so to edit with a custom script.
Service Configuration > Mailserver Configuration
Include Trash in Quota -> YES
Auto Expunge Trash -> YES
Thanks!
-
Hello @jmginer, You can use the following WHM API 1 functions to view and modify the mail server configuration via the command line: WHM API 1 Functions - get_service_config - Developer Documentation - cPanel Documentation WHM API 1 Functions - set_service_config_key - Developer Documentation - cPanel Documentation EX: whmapi1 set_service_config_key service=dovecot key=include_trash_in_quota value=1
Thank you.0 -
Thanks @cPanelMichael But there is a problem with this key protocol_imap: imap_idle_notify_interval: 24 mail_max_userip_connections: 200 protocol_pop3: mail_max_userip_connections: 30
Both have the same name... There is any option to edit via API? Thanks!0 -
Hello @jmginer, The following note is included under the key parameter section of the Mailserver Configuration - Version 82 Documentation - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
3 comments