聊逍遥兮容与
  • Python
  • misc
  • nim
  • 旧文
  • 桌面应用
  • 生活
  • 系统运维
  • 阅读
    • Archives
    • 留言板

zimbra小技巧之批量添加用户

Date 三 06 四月 2011 By muxueqz Category 系统运维. Tags zimbra 邮件服务器 server
NAMELIST=`cat userlist.txt`
DOMAIN=email.com
PASSWD=111111
ZMPROV=/opt/zimbra/bin/zmprov
for NAME in $NAMELIST
do
$ZMPROV ca $NAME@$DOMAIN $PASSWD
done

userlist.txt格式如下:

name1
name2
  • Google Search

    • blogroll

    • 羡辙杂俎
    • Literarylark
    • My Blog
    • Categories

    • Python
    • misc
    • nim
    • 旧文
    • 桌面应用
    • 生活
    • 系统运维
    • 阅读
    • Tags


    Proudly powered by Pelican , which takes great advantage of Python .

    The theme is from Bootstrap from Twitter , and Font-Awesome , thanks!