+ # generating secure pass, and storing for server too:
+ # user=USUALLY_SAME_AS_HOSTNAME
+ # f=$(mktemp)
+ # apg -m 50 -x 70 -n 1 -a 1 -M CLN >$f
+ # echo "$user:$(mkpasswd -m sha-512 -s <$f)" >>/p/c/filesystem/etc/exim4/passwd
+ # echo "mail.iankelling.org:$user:$(<$f)" >> /p/c/machine_specific/$user/filesystem/etc/mailpass
+ #
+ # for ad-hoc testing of some random new host:
+ # host=testhost # client host username & hostname
+ # f=$(mktemp)
+ # apg -m 50 -x 70 -n 1 -a 1 -M CLN >$f
+ # s sed "/^host:/d" /etc/exim4/passwd
+ # echo "$host:$(mkpasswd -m sha-512 -s <$f)" | s tee -a /etc/exim4/passwd
+ # echo "mail.iankelling.org:$host:$(<$f)" | ssh root@$host dd of=/etc/exim4/passwd.client
+ s cat /etc/mailpass| while read -r domain port pass; do
+ # reference: exim4_passwd_client(5)
+ printf "%s:%s" "$domain" "$pass" | s tee -a $f >/dev/null
+ done
+