The CommuniGate Pro Server provides several methods to access its CLI:
When the CLI is used over the PWD connection, the CLI commands are accepted as soon as the user is authenticated. For each CLI command the Server checks the authenticated user access rights.
If a command produces some data, the data is sent after the protocol line with the positive response. The CR-LF combination is sent after the data.
Below is a sample PWD session with CLI commands:
C: telnet servername.com 106 S: 200 CommuniGate Pro at mail.servername.com PWD Server 5.3 ready C: USER postmaster S: 300 please send the PASS C: PASS postmasterpassword S: 200 login OK C: CreateAccount "user1" S: 200 OK C: CreateAccount "user1" S: 501 Account with this name already exists C: RenameAccount "user1" into "user2" S: 200 OK C: CreateDomain "client1.com" S: 200 OK C: CreateAccount "email@example.com" TextMailbox S: 200 OK C: ListDomains S: 200 data follow S: (mail.servername.com, client1.com, client2.com) C: QUIT S: 200 CommuniGate Pro PWD connection closed
The CommuniGate Pro Perl Interface document contains a set of the Perl language utilities that allow a Perl script to access the CommuniGate Pro CLI API via the PWD protocol. The document also contains links to several useful sample Perl scripts (automated Account registration and removal, etc.)
The CommuniGate Pro Java Interface document contains the set of the Java language classes that allow a Java program to access the CommuniGate Pro CLI API via the PWD protocol. The document also contains links to several sample Java programs.