IceWarp 서버 API 사용방법 중 tool.exe를 사용하여 사용자 정보를 변경하는 방법은 다음과 같습니다 :
먼저 IceWarp 가 설치된 폴더로 CMD를 사용하여 이동합니다.
c:\program files\IceWarp\
tool modify account 사용자메일주소 변경하고자할 사용자 변수 변경하고자하는 값
예: tool modify account demo@softmail.co.kr u_password 123456 u_forwardto hongkildong@merak.co.kr
이와 같이 CMD에서 커맨드를 입력하면 demo@softmail.co.kr 주소의 비번은 123456으로 변경되고 전달할 주소는 hongkildong@merak.co.kr로 설정됩니다.
만약 다량의 계정을 동시에 변경하려면
텍스트편집기에서 사용자 마다 tool 명령어를 지정하고 텍스트 파일을 bat 형식으로 바꾸어 저장한 후 이 bat 파일을 실행하면 배치파일로 다수의 사용자 계정을 변경할 수 있습니다.
도메인 및 사용자 계정 등 IceWarp 메일서버의 시스템변수는 IceWarp 관리도구에서 F1 도움말을 눌러 API 변수 부분을 참조하면 됩니다. 아래 테이블은 이 중에 사용자 계정에 관한 일부 변수를 보여줍니다.
회사사번과 아이디를 이메일 주소와 계정으로 등록하기
TOOL CREATE ACCOUNT 아이디 U_PASSWORD 비번 U_MAILBOX 아이디 U_ALIAS 아이디;사번
예) TOOL CREATE ACCOUNT brian u_password 1234 u_mailbox brian u_alias brian;16101001
U_EmailAlias |
String |
Email alias |
U_PhoneAlias |
String |
Phone alias |
U_Mailbox |
String |
Username |
U_Password |
String |
Password |
U_AuthMode |
Int |
Authentication mode 0 - Standard 1 - NT domain 2 - Active Directory 3 - Any password |
U_AuthModeValue |
String |
Authentication mode value This variable can also contain a full path to a file. If the path is valid and the file exists, its content is used as U_AuthModeValue. However, it is not possible to combine file paths with server definitions using the "|" (vertical bar) character. |
U_Comment |
String |
User comment |
U_AccountType |
Int |
Mailbox protocol type 0 - POP3 1 - IMAP & POP3 2 - IMAP |
U_Admin |
Bool |
Administrator permissions 0 |
U_DomainAdmin |
Bool |
Domain administrator permissions 0 |
U_ForwardTo |
String |
Forward to address |
U_GW_DailyAgenda |
Bool |
Sending of daily agenda to a user |
U_GW_Reminders |
Bool |
Sending of reminders to a user |