Scripting Utilities

EmailArchitect Email Server (EAS) provides feature-rich objects for accessing server services, domains and users. Based on this object technology Scripting Utilities was built to facilitate daily operations and maintenances of EAS. You can click here to download this tool.

Scripting Utilities consists of 6 vbscripts. They are:

CreateDomains.vbs Create domains from text file.
CreateDomainsEx.vbs Create domains from CSV file with all options.
ImportUsersFromCSV.vbs Import users from CSV file.
ImportUsersFromCSVEx.vbs Import users from CSV file with all options.
ImportUsersFromDB.vbs Import users from database.
DeleteUsers.vbs Delete specified users listed in a text file.

CreateDomains.vbs

CreateDomains.vbs is for creating domains from a text file. The file "domains.txt" in Scripting Utilities stores the domain names to be created.

[domains.txt]
emailarchitect.com
emailarchitect.net

You can use CreateDomains.vbs under DOS prompt like this:

cscript "c:\unzipped\scripting\CreateDomains.vbs" "mypassword" "domains.txt"

"mypassword" is the password of system user of EAS.

CreateDomainsEx.vbs

CreateDomainsEx.vbs is for creating domains from a csv file with all options. The file "domainsex.csv" in Scripting Utilities stores the domain names to be created.

[domainsex.csv]
name,max users,quota,noboday alias
emailarchitect.com,200,20,default@emailarchitect.com
emailarchitect.net,100,10,default@emailarchitect.net

You can use CreateDomainsEx.vbs under DOS prompt like this:

cscript "c:\unzipped\scripting\CreateDomainsEx.vbs" "mypassword" "domainsex.csv"

"mypassword" is the password of system user of EAS.

ImportUsersFromCSV.vbs

ImportUsersFromCSV.vbs is for importing users from a CSV file to a specified domain. The file "users.csv" stores the user account information to be imported.

[users.csv]
User,First Name,Last Name,Password
ivan,Ivan,Lui,123456
support,Support,Team,1d3456
dennis,Dennis,Shek,131231

You can use ImportUsersFromCSV.vbs under DOS prompt like this:

cscript "c:\unzipped\scripting\ImportUsersFromCSV.vbs" "mypassword" "adminsystem.com" "users.csv"

"mypassword" is the password of system user of EAS; "adminsystem.com" is an existed domain on the EAS.

ImportUsersFromCSVEx.vbs

ImportUsersFromCSVEx.vbs is for importing users from a CSV file to a specified domain with all options. The file "usersex.csv" stores the user account information to be imported.

[usersex.csv]
User,First Name,Last Name,Password,Size of Single Email,Quota Size,
Domain Administrator,Can Change Password,Can't Web Mail, 
Can't SMTP Service,Can't POP3 Service, MAIL FROM equal AUTH USER
ivan,Ivan,Lui,123456,4096,10,1,1,0,0,0,0
support,Support,Team,1d3456,4096,20,0,1,0,0,0,0
dennis,Dennis,Shek,131231,4096,10,0,0,0,0,0,0

You can use ImportUsersFromCSVEx.vbs under DOS prompt like this:

cscript "c:\unzipped\scripting\ImportUsersFromCSVEx.vbs" "mypassword" "adminsystem.com" "usersex.csv"

"mypassword" is the password of system user of EAS; "adminsystem.com" is an existed domain on the EAS.

ImportUsersFromDB.vbs

ImportUsersFromDB.vbs is for importing user account information from MS Access to a specified domain. The file  "users.mdb" in Scripting Utilities stores the user account information to be imported. You can also edit ImportUsersFromDB.vbs to import the data from other database such as MS SQL, Oracle and etc...

You can use ImportUsersFromDB.vbs under DOS prompt like this:

cscript "c:\unzipped\scripting\ImportUsersFromDB.vbs" "mypassword" "adminsystem.com" "users.mdb"

"mypassword" is the password of system user of EAS, "adminsystem.com" is an existed domain on the EAS.

DeleteUsers.vbs

DeleteUsers.vbs is for deleting specified users listed in a text file. The file "delusers.txt" in Scripting Utilities stores the user account names to be deleted.

[delusers.txt]
ivan
dennis
support

You can use DeleteUsers.vbs under DOS prompt like this:

cscript "c:\unzipped\scripting\DeleteUsers.vbs" "mypassword" "adminsystem.com" "delusers.txt"

"mypassword" is the password of system user of EAS, "adminsystem.com" is an existed domain on the EAS.