To execute these programs on the IndiMail server, you need to connect to port 4000 and use the adminclient protocol. The adminclient protocol is described below by showing a conversation between a client and the server 'indisrvr'
s - denotes server
c - denotes client
s: "Login: "
c: "userid\n"
s: "Password: "
c: "password\n"
s: "OK\n"
c: "index command arg1 arg2 ...\n"
s:
c: "\n"
s: "RETURNSTATUS[return value of command]\n"
To execute 'vuserinfo' you will need to do the following.
% telnet 0 4000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Login: admin
Password: benhur20
OK
7 vuserinfo -n manvendra@indimail.org
name : manvendra@indimail.org
RETURNSTATUS0
Index value of '7' was used for vuserinfo. A privileged user 'admin' with password 'benhur20' was used to execute vuserinfo. Each command has an index. The values are given as below.
Index Commands
----- --------
00 vadduser
01 vpasswd
02 vdeluser
03 vsetuserquota
04 vbulletin
05 vmoduser
06 valias
07 vuserinfo
08 vipmap
09 vacation
10 vmoveuser
11 vrenameuser
12 crc
13 vcfilter
14 indiversion
15 vsmtp
16 dbinfo
17 vhostid
18 mgmtpass
19 inquerytest
20 printdir
21 shit
22 vaddaliasdomain
23 vadddomain
24 vcalias
25 vcaliasrev.sh
26 vconvert
27 vdeldomain
28 vrenamedomain
29 vdominfo
30 vfstab
31 vgroup
32 vatrn
33 vpriv
34 vlimit
35 hostcntrl
36 execmysql
37 updatefile
38 vreorg
39 vdeloldusers
40 ipchange
41 svctool
42 clearopensmtp
43 hostsync
44 inquerytest
45 vmoddomain
----- --------
00 vadduser
01 vpasswd
02 vdeluser
03 vsetuserquota
04 vbulletin
05 vmoduser
06 valias
07 vuserinfo
08 vipmap
09 vacation
10 vmoveuser
11 vrenameuser
12 crc
13 vcfilter
14 indiversion
15 vsmtp
16 dbinfo
17 vhostid
18 mgmtpass
19 inquerytest
20 printdir
21 shit
22 vaddaliasdomain
23 vadddomain
24 vcalias
25 vcaliasrev.sh
26 vconvert
27 vdeldomain
28 vrenamedomain
29 vdominfo
30 vfstab
31 vgroup
32 vatrn
33 vpriv
34 vlimit
35 hostcntrl
36 execmysql
37 updatefile
38 vreorg
39 vdeloldusers
40 ipchange
41 svctool
42 clearopensmtp
43 hostsync
44 inquerytest
45 vmoddomain
If you have a user provisioning interface written in your favourite language, you can connect to the port 4000 and execute the above programs. IndiMail also provides you a command line program 'adminclient' which can execute any of the above programs. Read the man page for adminclient for further details.
No comments:
Post a Comment