QMAIL batch users join

xiaoxiao2021-03-06  138

#! / bin / sh

#batchadduser.sh: Batch add mail user. #install step. #CHMOD u x batchadduser #. / batchadduser.sh domain datafile

IF [$ # -lt 2] Then Echo "USAGE: $ 0 domain datafile" EXIT 1 FI

Domain = $ 1 datafile = $ 2 addcmd = / home / vpopmail / bin / vedduser

While Read Username Passwd Do

$ addcmd $ usrname @ $ domain $ passwd

DONE <$ datafile

Data file format ////

Test Test

转载请注明原文地址:https://www.9cbs.com/read-127611.html

New Post(0)