Dear all
I have single installation server of ZCO 6.8
I want to block gmail,yahoo,hotmail for 100 users ,and open the gmail,yahoo,hotmail for 10 users.
I know I should use this command
zmprov ma
user1@avit.com.eg +amavisBlacklistSender "gmail.com"
I need to execute this command over 100 users ,it will be headache if I typed it 100 times so I know that I can get all the account from this command zmaccts
zmaccts
admin@avitdc.local active 12/22/10 09:40 02/20/11 15:45
ham.pludpzud@avitdc.local active 12/22/10 09:41 never
nagwan_sowelam@avitdc.local active 01/05/11 09:19 01/17/11 23:33
rina@avitdc.local active 12/22/10 13:24 02/20/11 15:47
spam.xtt_amrw1i@avitdc.local active 12/22/10 09:41 never
wiki@avitdc.local active 12/22/10 09:41 never
I want to make the argument of CMD zmprov ma to be variable and read from the output of zmaccts
Can anyone help me?