Hi,

We had a 900 user vpasswd file disappear on us, running
an old 4.9.3 version. We don't know why. Either a disk
error occurred (when the machine rebooted fsck complained
about missing inodes, etc). Or there was a race condition
of more than one program trying to add a new user.
(The race condition problem has been fixed in 4.9.6)

Anyway. We were faced with an empty vpasswd file,
all the users directories and no idea what thier
passwords were.

I wrote a program to walk through the directory
structure and create vpasswd lines with a fake
passwd. (I'll post this program in the next release)

Then we complied vpopmail to have error logging.
This logs the users full email address and the
password they were trying to use, in clear text.

Then I wrote a program that parses the log file
and sets users passwords to what they tried.
It actually takes it's standard input. So we
could do: tail -f /var/log/maillog | ./fixit

I'll post post programs in the next version
of vpopmail.

Just thought this information might be handy
for someone in the future.

It would be cool if someone could write a 
program that recreates a vpasswd file from
a vpasswd.cdb file. ;]

Ken Jones

Reply via email to