On 29/05/22 12:11 pm, Jim Garrison wrote:
1) The command I got from an internet post to generate the base64
encoded user/password was incorrect, or intended for a different
version of the echo command. In
$ echo -ne '\000myu...@mydomain.com\000[password]' | base64
bash echo expects numeric escapes to be \0nnn. It correctly
parsed the first \000 but my password happens to start with
a digit, so it didn't generate the nul there. I needed \0000
instead.
Random sites on the internet tend to give bad advice to use the
unreliable echo command for this. This is better (and is in the postfix
SASL_README doc):
printf '\0%s\0%s' 'username' 'password' | openssl base64
Peter