on 12/4/02 2:02 PM, Brendan McAlpine <[EMAIL PROTECTED]> wrote:

> Is there an easy way to remove a number of email accounts using
> vdeluser all at once?
> 
> My problem is this....I want to remove several thousand mail accounts
> from my server, but I don't want to manually run vdeluser for each one.
> Is there any way for vdeluser to read from a list of addresses to
> remove?
> 
> Is there a better way to do this?

If you have a list of addresses, just edit the list to place vdeluser
<space> at the beginning of each line.  Then run the result as a shell
script.

For example in vi, escape to ex mode by typing colon and then after the
colon type:
%s/^/vdeluser /

I don't know off-hand if other arguments are needed, so this is just for
example.

> 
> TIA
> 
> Brendan
> 
> 
> 


Reply via email to