oops...accidentally overwrote postfix aliases file

I have directory/dns server running sparc solaris 9.

while troubleshooting another issue, i overwrote the aliases file on accident.

my question is: is there any way to revert this?

any help super appreciated...especially since this a production box!

Options

  1. Restore file from backup. :smiley:
  2. Copy file from similar server. :slight_smile:
  3. Update your resume... :eek:

I'm assuiming postfix keeps it's aliases in a similar hash-style DB file as sendmail does. If so, and provided you still have this file (ie you deleted the human-readable aliases file but not the 'compiled' one postfix uses) you can run 'strings' over it to get the relevant data back out - you'll lose all your comments and formatting but the important bits will be preserved.

Hope this helps :slight_smile: