Converting sendmail .db files to text
Posted by jpluimers on 2016/09/15
If you want to inverse the work of newaliases, you can use makemap to convert them to text:
makemap -u hash access.db
This is quite handy to see if the newaliases indeed put all information into the db file (for instance if you use a script, you can verify it ran correctly).
It works for any db, but you need to be aware of the database format: hash
type or btree
type.
To my knowledge only one uses the btree type format:
- userdb.db
All others use hash type format:
- aliases.db
- aliases-maillist.db
- mailertable.db
- genericstable.db
- virtusertable.db
- access.db
- auth-info.db
- domaintable.db
–jeroen
Leave a Reply