in reply to Reverse-Engineering sendmails alias file

Did you try makemap -u hash igusers.db? On some systems, it will dump out the contents of the database. Also, check that the file is a Berkeley DB database and that the version of the library is the same. The file format has changed with newer versions. From the sendmail maps that I looked at, they are standard key to value maps with no binary format.

Your first code shouldn't work. $val2 isn't defined anywhere but I bet that is a typo in your posting. The second won't work because $val isn't a reference. Even if it was a reference, ref doesn't dereference it, it returns the type.

Replies are listed 'Best First'.
Re: Re: Reverse-Engineering sendmails alias file
by l2kashe (Deacon) on Nov 08, 2002 at 21:26 UTC
    Another way as well would be the 'db_dump -p ./igusers.db'.
    db_dump comes with berkeley db and should be under INSTALL_ROOT/bin.

    /* And the Creator, against his better judgement, wrote man.c */