You can use CtrlClnt to send administration commands to AfterLogic XMail Server. These commands are defined in the previous section (XMAIL ADMIN PROTOCOL). The syntax of CtrlClnt is:
CtrlClnt [-snuptfSLcKCXHD] ...
where:
set server address.
set server port [6017].
set username.
set password.
set timeout [60].
set dump filename [stdout].
enable SSL link negotiation (talks to a CTRL port)
use native SSL link (talks to a CTRLS port)
set the SSL private key file (the environment variable ''CTRL_KEY_FILE'' also sets it)
set the SSL certificate file (the environment variable ''CTRL_CERT_FILE'' also sets it)
set the SSL certificate-list file (the environment variable ''CTRL_CA_FILE'' also sets it). See [SSL CONFIGURATION] for more information
set the SSL certificate-store directory (the environment variable ''CTRL_CA_PATH'' also sets it). See [SSL CONFIGURATION] for more information
enable debug output
With the command and parameters that follow adhering to the command syntax, ie:
CtrlClnt -s mail.foo.org -u someone-user -p ciao=> useradd home.bogus foouser foopasswd U
executes the command useradd with parameters 'home.bogus foouser foopasswd U'.
CtrlClnt returns 0 if the command is successful and != 0 if not. If the command is a query, then the result is printed to stdout.
[top]