[BlueOnyx:03020] Re: List of all usernames

Taco Scargo taco at scargo.nl
Mon Dec 7 05:15:36 -05 2009


Hi Enid,


For your first request:

clistuser -l | awk '{print $1}'

If you want to know which site the users belong to, please use:

for i in `clistuser -l | awk '{print $1}'`; do echo -n "$i : "; grep -e "^$i at .*###$i" /etc/mail/virtusertable| awk '{print $1}'; done

Please replace ### with a tab. You can insert a tab on the prompt by pressing CTRL+V and then hit tab

Regards,

Taco




On 7 dec 2009, at 09:12, enid vx wrote:

> Hello to all,
> 
> Is there a way to find all usernames existing in the BO server, in the form
> username1
> username2
> username3 ....
> 
> and/or
> 
> username1 at domain1.com
> username2 at domain2.com
> username3 at domain3.com
> 
> etc.
> 
> Thanks,
> 
> Enid
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20091207/a3a932ed/attachment.html>


More information about the Blueonyx mailing list