Set all users passwords

Does anyone know if I can set all users in a domain’s mailbox passwords ?

I need to set them all the same for an export and the web interface is just too slow to do large amounts of users.

I actually wrote something for this the other day. Here you go:

/home/vpopmail/bin/vpopbull -nV | xargs -n1 -i% /home/vpopmail/bin/vpasswd % <password>

where <password> is the password you want. DANGER: This is super dangerous to do. I don’t recommend it. Ever. Find a better way, please. This is like last-resort-my-other-software-was-engineered-by-bad-people dangerous.