IMAIL Mail Server Remote Management - Command Line Application
Imail Server's command line applications are very useful for those who can automate, otherwise the administrator will fall into huge trouble. These applications can receive console input from Windows NT; at the same time, feedback information is also output to control Tape interface. There are a variety of methods to run these applications. You can start them at the console, run in the batch file, or run the program specified in the text file. The command line program can handle input from the browser. Information. For example, users can fill in the online form information, and the system administrator can use the script file executor addDomain.exe to create a virtual host on the Imail Server. Or, the administrator can use the form from the Internet The generated text file, uses the program imaiL1.exe to generate an email according to the information in this text file. This appendix describes the Imail Server command line application:. Addalias.exe - Add, modify, delete alias. AddDomain.exe - Add , Modify, delete virtual hosts. AddUser.exe - Add, modify, delete users. Immsgexp.exe - Remove the old email from the user's directory. LDAPER.EXE - Publish the LDAP database. MAILALL.EXE - Send broadcast mail to all users on a host. Regback.exe - Back up information in the Imap registration list. SMTP32.exe - Distribute an email. Isplcln.exe - Remove the old emails located in the spool directory Add an alias.exe Adgetalias.exe can add alias batch processing stored in a text file to the system, or delete and modify the alias in the system. If you are just in the console, you can put it in the console Addalias, you You can manually enter the command, you type a line to strike Enter to enter the next line. Press the combination key Ctrl-z Exit. Basic Command Syntax Basic syntax addalias [-h hostname] [-CX] [- {a | d | m}] Alias [= destination] Argument Explanation Parameter Interpretation - H Hostname Using Parameters - H argument to specify a virtual host. If you do not specify, use the primary host. (If you use -h in text file, you will affect all in this file All content) .- CX Specifies a custom separator character with -c. Note that the space is Not allowed. (If you use -c in text file, you will affect all content in this file.) - A AliasName Use -a to add an alias, if the alias does not exist. AliasName is what you want to increase Alias. A command is allowed to join an alias.-M aliasName uses -m to modify or add an alias. AliasName is an alias you want to modify. One command is allowed to modify an alias. -D AliasName takes -d to delete one Alias. AliasName is an alias you want to delete, only one alias is allowed in a command. -F FiLename You can write multiple adds alias to a text file. Use -f to specify the file name. (Above All commands can be used, but must be noted that parameters - h and -c will affect all content in the file.) - l Use -l to list the current alias. This command cannot be used in text files. -? Use -? View command help. Add an alias to the default domain name below Add an alias NEWALIAS to a domain name Email.Addalias -c: -a newalias: emaildalias -a newalias = emaildalias -c: newalias: emaildalias newalias =
Emailaddalias Newalias Email Adds the example below the specified domain name Add an alias to NEWALIAS to a host for the domain name of the domain name Email. Addalias -h secondhost.com -a newalias email delete a separate name Example Delete an alias adDalias -d OldaliasAddalias -h Another.net -d Alias1Return Codes Return Code Addalias Returns 1 If this command executes at least one request; return 0 If you fail. Using text files You can use text file batch to complete the above Part of the work. You can use this technology to add alias from other mail systems to your iMail Server system, and the conditions are other mail programs to generate text files in the specified format. For example, you can generate a text file Test.txt The following contents: test1 = metst2 = test1test3 = test2-h Virtual001 Test1 = metst3 = me-m test2 = HIM-D TEST3 in the console, you can enter: addalias
Note addDomain.exe will not issue a warning message when you assign a already assigned IP address to a new host. Adding users (addUser.exe) addUser.exe can increase, modify, delete users, but modified mail hosts Must be in use the IMAIL database or an external database. (AddUser.exe does not increase the user to the mail host using the Windows NT user database.) You can use addUser.ex to add users stored in a text file to the server. User password The length is between 4 and 15 characters. If you just enter no parameter command adduser in the console, then you can manually enter the command, one line of command, type the Enter, type Ctrl-z Exit. Basic syntax Adduser.exe [-h hostname] [-k userid] [-m userid] [-P password] [-P number] [-f filename] [-l] [± chgpass] [± web] [± Active] [± info] Argument WHEN to User parameters Using -H Hostname Using -H Specifies the user's virtual host, the name of the HostName host. If no host name is specified, the primary host will be used. (When you are When using parameters in text files, you will affect all content in the file.) - k Userid uses -k to delete a user account, UserId is the account that wants to delete. One command can only delete a user account. -M UserId utilization -m Modify the user account, UserID is the account that wants to modify. One command can only modify one user.-U Userid uses -u to add a user account, Userid is a hoping account. One command can only add an account.-N "Name "Use -n to specify the full name of the user, use the double-class number. Name is the full name of the user. Add an example of the following user account to add a user who is named TEST01.Adduser -h myhost.com -u test01 -n" MS Test "-p YourPassadduser -u test01 -n" mr test "-p nopassadduser -u test01adduser test01-l Add repute address and user address to the LDAP database. -p utilizes -p to specify the password of the user account, Password is the user's password. If there is no specified, the default password is 'Password.'. -q Use -Q to close repeat alias check. -C x uses -c to specify an optional separator character, x represents the separator. Does not allow the space. (If you use -c in a file, you will affect all the content in the file.). -f filename You can place multiple commands in a text file for the ADDUSER.EXE batch execution. Use the -f parameter to specify the name of the file. -chgpass uses -chgpass shutdown function - users can change the password themselves. CHGPASS Utilize CHGPASS Open Features - Users can change the password themselves. -Web Use -Web Close Function - The user can use Web Messaging. Web Utilize Web Open Features - users can use Web Messaging. -Active uses -Active enables users to log in. Active Utilize Active enables users to log in. -INFO User information will not be displayed in WHOIS, Finger and LDAP queries. INFO uses info to make the user information Can be displayed in WHOIS, Finger, and LDAP queries. - Using -? View Help Information. #:; Comment symbol (used in text files).
Delete an example of a user account to remove a user account. ADDUSER -K -U TEST01ADDUSER -H Another.net -k test01 Return code addUser returns 1 After the service is executed. Return 0 After the operation failed. Use the text file With text files, you can set multiple operations together - convenient for batch operations, reduce system administrators' workload. Suppose you need to add four users (userid, smith, test1, and jones) to server WKS013 .Adduser.exe assumes no parameters in the text file, the information of each line is the username, password, and full name. For example, you can create a text file addfour.txt, including the following: UserID, Password, Full Namesmith, Whypass, mrs smithtest1, mr smithjones, Okpass, Tom Jones In the console, enter: adduser -h station1.ipswitch.com -f addfour.txt you will get the following feedback: current host is wks013.augusta.ipswitch.comok : added userid to host station1.ipswitch.comok: added smith to host station1.ipswitch.comok: added test1 to host station1.ipswitch.com ipsok: added Joneswitch.com Occoses users Test1 Will will have a default Password "Password". Watch the web access function of the web option to the web access function is open, unless you use parameters in the console (- / CHGPASS, - / Web, - / Active, - / Info ). Modifying a user does not affect the setting of his web feature unless you contain a parameter for setting up a web feature in a command in the console: a user can use the web function to be turned off or open according to your given parameters. The text file example #entries below default to primary domain automaticly. # Address nopass, and full name Mr. Test100test100, nopass, "Mr. Test100" #adds user test101 with password nopass, name of Ms. Test101, # has ability to #change own password, access from web, # account is not disabled, user info is accessible from outside .-u test101 -p nopass -n "Ms. test101" chgpass web active info # Add user killthisone-u killthisone # Remove user killthisone-k killthisone # Change domain (host) -h virtual001 # Change delimiter from default (,) TO A ( ) .- C # add user test100 with password of password and name of mr. Test100test100 password "mr. Test100" #modify user test100 with new name of mrs. test100-m -u test100 -n "MRS. TEST100"
#Change domain (host) -h virtual002 # Change delimiter back to default-c, # Add user test101 with password nopass and name Mrs. Test101test101, nopass, "Mrs. Test101" #Add user test103 with default password, with default name test103 , has #ability to change own password, access from web, account is notdisabled, user #information is accessible from outside.-u test103 chgpass web active info # Add user test104 with default password, with default name test103, has #ability to change own password, access from web, account is notdisabled, user #information is not accessible from outside.-u test104 -chgpass web active -info # Modify user test103 so user information is not accessible fromoutside.-m test103 -info results: current host is mail.some.where.comok: added test100 to host mail.some.where.comok: added test101 to host mail.some.where.comok: Added KillThisone to Host Mail. Some.where.comok: User "KillThisone" Removed from "mail.some.where.com" .inf: current host is virtual001ok: added test100 t o host virtual001OK: user test100 modified in virtual001INF: current host is virtual002OK: added test101 to host virtual002OK: added test103 to host virtual002OK: added test104 to host virtual002OK: user test103 modified in virtual002 send mail (imail1.exe) Imail1.exe create mail And via SMTP distribute mail to the local host's mailbox or remote host's mailbox. (SMTP division is done by program SMTP1.exe.) Imail1.exe's roles and SENDMAIL in UNIX. Note Email must be from one file Get the body. When you specify the file, you want to give a complete path and file name. IMail1.exe is limited to the size of the body of the message generated in the editor, below 32k. The size of the final message (including attachment) The visibility is determined. Imail1.exe can now create mime messages containing binary encoded content-transfer-encoding, base64 encoding, content-types of text. Command Syntax Imail1.exe supports the following command syntax: -u "userid" uses -u to specify the user who sends mail (ie from: block);
It is recommended that the user name is called.-T "Recipient1 [, Recipient2] [, ...]" uses -t specified mail primary recipient (ie TO: area). IMail1 -s "Subject" specifies the subject of the message. c "Recipient1 [, Recipient2] [, ..." specifies the recipient of the message (ie CC: block) .- b "Recipient1 [, Recipient1] [, ...]" Using -B Specifies the hidden recipient (Ie BCC: Region) .- f FileName Parameters -F Specifies the text. Specify a file being sent (the recipient's mail address is also provided in the command line) .- i filename -i display a interactive Create a message window, which can be displayed and editable. -R Use -R to add file header ARMY "Registered:" .- a filename (IMAIL 4.01 or later version) Utail-available attachment file (MIME) Format's name. Deleting old mail (immsgexp.exe) immsgexp.exe allows administrators to delete old messages in the specified days. Basic symsgexp -t startdirectory -d #of_days_to_save All mailboxes under directory STARTDIRECTORY will be checked And the date of the message is longer than the specified number of days. The message is deleted, how much disk space is released. (Based on file and directory). Example IMMSGEXP -TC: / IMAIL -D60 released to the LDAP database (ldaper.exe) LDAPER.EXE Posted in the user properties Tag General specified in the user properties To the LDAP database. This is a tool that is very convenient to release to the LDAP database when you use the program addUser.exe. Basic LDAPER [Options]: ldaper.exe supports the following command line options. Options and linked fonts Or counter-alignment combined as a prefix.-H hostname -u username -P password -N user's first name - SN User's second name - S Street Address - C City - ST State / City / Province - CO National-Z Zip Code Send Mail to All User (Maill.exe) Mail All.exe is a command line tool that can send all users on the specified host or users on all hosts, of course, based on the Imail Server system. Basic syntax mailall -h hostname | all> -f sender -d [-S Subject]