I'm trying to migrate our server away from using Plesk 5.0.

The problem I'm having is with qmail / courier-imap and the poppasswd file. The passwords are prefixed with $1$ so they're all in MD5 format, but I don't know how to manually encrypt passwords like that.

What about the salt? Do I have to know what salt Plesk is using when it creates these passwords if I want to manually add them?