sendmail smtp auth sasl

i have been trying to get this working for a while and it is not simple - here are some of the steps to get it working:

apt install sasl2-bin

service saslauthd start

saslpasswd2 -c -u <mydomain> <myusername>

sasldblistusers2

testsaslauthd -u <myusername> -p <mypassword>

grep -v '^#' /etc/default/saslauthd

START=yes

DESC="SASL Authentication Daemon"

NAME="saslauthd"

MECHANISMS="sasldb"