发新话题
打印

[求助] userctl.pl怎么不能批处理的导入用户了???

userctl.pl怎么不能批处理的导入用户了???

关于extmain/tools/userctl 文件批量导入问题
[root@mail tools]# ./userctl.pl --mode=badd --file=username-password.txt

cdqidi03i918x@extmail.com exists!
我的文件里面有很多用户,有些用户导入有些用户没有导入邮件系统。为什么这个工具程序只能读取第一个记录???

以下是文件的部份内容:
cdqidi03i918x@extmail.com 123456
cdqidi03rdgta@extmail.com 123456
cdqidi03i918x@extmail.com 123456
cdqidi033o7r4@extmail.com 123456
cdqidi038suhr@extmail.com 123456
cdqidi039v8de@extmail.com 123456
cdqidi02xrwcd@extmail.com 123456
cdqidi02g6ubs@extmail.com 123456
cdqidi02vcsnw@extmail.com 123456

以前就是用这种文件格成功导入过,可今天怎么导入只有只能导入进第一个用户啦! 我试了N次依然不行?特求教各位老大啦 !

TOP

cdqidi03i918x@extmail.com exists!

如果用户已经存在,则会报这个错误退出。在username-password.txt中删除该用户,再执行命令即可。
http://extmail.org
http://postfix.org.cn
-------- chifeng

TOP

引用:
原帖由 chifeng 于 2008-8-21 20:42 发表
cdqidi03i918x@extmail.com exists!

如果用户已经存在,则会报这个错误退出。在username-password.txt中删除该用户,再执行命令即可。
老大编写的userctl.pl工具使用还是有问题!
[root@mail tools]# ls
aliasctl.pl  domainctl.pl    maildirmake.pl  purgeuser.pl    setid.pl  t_hashdir.pl  username-password.txt
adminctl.pl  diffinfo.pl  expireusers.pl  makegbook.pl    reportusage.pl  test.pl   userctl.pl
[root@mail tools]# mv username-password.txt username.txt
[root@mail tools]# ./userctl.pl --mode=bdel --file=username.txt
username.txt file no exist!
文件明明就在当前目录下,怎么显示文件不存在?
以下是username.txt文件内容:
cdqidi03i918x@extmail.com 123456
cdqidi03rdgta@extmail.com 123456
cdqidi03i918x@extmail.com 123456
cdqidi033o7r4@extmail.com 123456
cdqidi038suhr@extmail.com 123456
cdqidi039v8de@extmail.com 123456
cdqidi02xrwcd@extmail.com 123456
cdqidi02g6ubs@extmail.com 123456
cdqidi02vcsnw@extmail.com 123456

[ 本帖最后由 tonny0830 于 2008-8-22 10:35 编辑 ]

TOP

chifeng# ./userctl.pl --mode=bdel --file=username.txt

email = 1111@extmail.org
status = 1
email = 222@extmail.org
status = 1

我测试没有问题哦。lz用的那个版本的extman?
http://extmail.org
http://postfix.org.cn
-------- chifeng

TOP

引用:
原帖由 chifeng 于 2008-8-22 10:41 发表
chifeng# ./userctl.pl --mode=bdel --file=username.txt

email = 1111@extmail.org
status = 1
email = 222@extmail.org
status = 1

我测试没有问题哦。lz用的那个版本的extman?
回报老大,我用的是extman 0.2.4

TOP

引用:
原帖由 chifeng 于 2008-8-22 10:41 发表
chifeng# ./userctl.pl --mode=bdel --file=username.txt

email = 1111@extmail.org
status = 1
email = 222@extmail.org
status = 1

我测试没有问题哦。lz用的那个版本的extman?
CHIFENG老大有没有关于extman/extmail的详细设计的文档?我愿意购买一份,为EXTMAIL的社区发展作点小贡献。另外也帮助自己更好理解extmail的源代码!我是菜鸟,最近分析extmail的源代码,perl也是刚刚开看!

[ 本帖最后由 tonny0830 于 2008-8-22 15:08 编辑 ]

TOP

发新话题