OK, here's an easier way. Add the following line to /etc/mail/access:
Code:
Authinfo:smtp.server.com "U:username" "P:password"
Then run:
Code:
makemap -o /etc/mail/access.db < /etc/mail/access
Restart sendmail.
The answer to your last question is yes.