I have a server with a couple of domains. Is there a way to change the message’s storage size using CLI, Axigen API or any python script ?
Because of some restriction on my network I can’t use Axigen GUI.
Please check below an example where I’ve changed the maxFileSize from 1G to 2G.
$ telnet 127.0.0.1 7000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Welcome to AXIGEN's Command Line Interface
You must login first. For a list of available commands, type HELP
<login> user admin
<password> xxx-xxx-xxx
For a list of available commands, type HELP
+OK: Authentication successful
<#> edit domain name abc.ro
+OK: command successful
<domain-edit#> show
domain editing parameters:
domainLocation = /var/opt/axigen/domains/abc.ro?maxFiles=128&maxFileSize=1048576
domainObjectsLocation = /var/opt/axigen/domains/abc.ro/objects?maxFiles=128&maxFileSize=1048576
groupwareSupport = no
message storage locations:
/var/opt/axigen/domains/abc.ro/messages?maxFiles=128&maxFileSize=1048576
+OK: command successful
<domain-edit#> UPDATE MessagesLocation /var/opt/axigen/domains/abc.ro/messages /var/opt/axigen/domains/abc.ro/messages?maxFiles=128&maxFileSize=2097152
+OK: command successful
<domain-edit#> commit
committing changes and switching back to previous context.
This operation might take some time. Please wait....
+OK: command successful
<#> save config
+OK: command successful
<domain-edit#> quit
WARNING: all changes made and not committed are lost
connection to AXIGEN closing.
+OK: have a nice day
Connection closed by foreign host.
Thank you very much for your reply, it was very helpful and it works like a charm. It was so simple that I don’t know how I didn’t manage to find it.
Thanks again for your help, I’m really grateful.