The following is the GNU All-permissive License as recommended in https://www.gnu.org/licenses/license-recommendations.en.html
Copyright (C) 2024 Free Software Foundation sysadmin@fsf.org
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
Contributions are welcome. See https://savannah.gnu.org/maintenance/fsf/.
Adding entries to a Berkeley DB file
Instrucitions assume that you are working with addresses.db.
cp addresses.db addresses.db.bak
db4.8_dump -p addresses.db > addresses.txt
cp addresses.txt addresses.new.txt
# edit addresses.new.txt by copying lines and editing addresses.
rm addresses.new.db # to avoid merging changes with old changes
db4.8_load addresses.new.db < addresses.new.txt
db4.8_dump -p addresses.new.db # check
rm addreses.txt addresses.new.txt
cat addresses.new.db > addresses.db
rm addresses.new.db
systemctl reload exim4