Examples

Example

Description

Create New Domain

tool create domain doe.com d_description "Test domain"

Create Accounts Using Name, Pass and Comment

tool create account john@doe.com u_name "John Doe" u_password "john_pass" u_comment "First test account"

tool create account alex@doe.com u_name "Alex Doe" u_password "alex_pass" u_comment "Second test account"

tool create account tom@doe.com u_name "Thomas Doe" u_password "tom_pass" u_comment "Third test account. Tom's first mail account."

Display Comments of All doe.com Accounts

tool display account "*@doe.com" domain u_comment

Export All Accounts of doe.com Where Comment Contains Word "first" to File doe_com.csv Using --filter Option

tool --filter="u_comment like ''%first%''" export account "*@doe.com" u_name u_password u_comment > doe_com.csv

Export All Accounts of doe.com to csv File (base64 Encoded)

tool export account "*@doe.com" u_backup > doe_com.csv

Display Comments of All doe.com Accounts

tool display account "*@doe.com" domain u_comment

Delete All Domain Accounts

tool delete account "*@doe.com"

Import Accounts from File

tool import account "doe_com.cvs" u_name u_password u_comment

Modify Comment of All Accounts @doe.com

tool modify account "*@doe.com" u_comment "Modified comment"

Delete All Accounts of doe.com Domain and Delete doe.com Domain

tool delete account "*@doe.com"

tool delete domain "doe.com"

Show some System Variables

tool display system c_system_services_smtp_port c_version c_configpath

Change System Variable

tool modify system c_as_general_enable 1

Display some Information

tool display service smtp st_runningtime st_serverout st_server

tool display userstatistics 2004/10/01 2004/10/31 "*"

tool display remoteaccount "*@icewarp.com" ra_server ra_username

Create Remote Account

tool create remoteaccount @doe.com ra_server server.name.com ra_username user_name

Upgrade Database from Version 8.0.3 to Current

tool upgrade 8.0.3

Display All Domains on Remote Server and its Description

tool -remote="admin,adminspass,remote.server.com:32000" display domain "*" D_Description

Display Variables of Object

tool search domain