编程接口:
◇ 所有的对邮局管理只要直接对MySQL/MSSQL数据库操作即可生效。
◇ 增加一个邮局:在mail_domains表中搜入一条记录,如:
insert into mail_domains (domainpostmaster,domainmaxsize,domainaddomain,domainuseplusaddressing,
domainplusaddressingchar,domainantispamoptions,domainenablesignature,domainsignaturemethod,
domainsignatureplaintext,domainsignaturehtml,domainaddsignaturestoreplies,
domainaddsignaturestolocalemail,domainname,domainactive,domainmaxmessagesize,
domainmaxnoofaccounts,domainmaxnoofaliases,
domainmaxnoofdistributionlists,domainlimitationsenabled,domainmaxaccountsize)
values ( '' ,'0' ,'' ,'0' ,'+' ,'1' ,'0' ,'1' ,'' ,'' ,'0' ,'1'
,'rootmail.cn' ,'1' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' )
domainname:邮局域名
domainmaxsize:邮箱最大大小
domainmaxaccountsize:邮件最多用户数
◇ 添加子邮箱:在mail_accounts表中搜入一条记录,如:
insert into mail_accounts (accountdomainid,accountadminlevel,accountaddress,accountpassword,
accountmaxsize,accountactive,accountisad,accountaddomain,
accountadusername,accountvacationmessageon,accountvacationmessage,
accountvacationsubject,accountpwencryption,accountforwardenabled,
accountforwardaddress,accountforwardkeeporiginal,accountenablesignature,
accountsignatureplaintext,accountsignaturehtml,
accountlastlogontime,accountvacationexpires,accountvacationexpiredate) values
(1 ,2,'admin@rootmail.cn','b59c67bf196a4758191e42f76670ceba',0,1,0,''
,'',0,'','',2,0,'',0,1,'','',getdate(),0,getdate()) ;
accountdomainid:ip地址
accountadminlevel:0,普通用户;1,域管理员;2,系统管理员
accountaddress:邮箱地址
accountpassword:邮箱密码的md5值
accountmaxsize:邮件大小,以M为单位
|