SOLVED Edit Mailserver Configuration via SSH

jmginer

Well-Known Member
Jul 26, 2006
151
4
168
Alicante
cPanel Access Level
Root Administrator
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463

jmginer

Well-Known Member
Jul 26, 2006
151
4
168
Alicante
cPanel Access Level
Root Administrator
Thanks @cPanelMichael

But there is a problem with this key

Code:
  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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello @jmginer,

The following note is included under the key parameter section of the set_service_config_key WHM API 1 document:

This function currently only supports top-level configuration keys and not subkeys.
Since mail_max_userip_connections is a subkey (for IMAP and POP3), it's not supported for use with the set_service_config_key WHM API 1 function.

As an alternative, you can make custom changes to the Dovecot configuration file using the instructions on the document linked below:

Mailserver Configuration - Version 82 Documentation - cPanel Documentation

Thank you.