SMTP authentication howto
The trick to setting up SMTP client authentication with sendmail seems to be the following:
-
mkdir -m 700 /etc/mail/auth
-
vi /etc/mail/auth/client-info
- Dump the following into the file: '
AuthInfo:smtphost.isp "U:localuser" "I:remoteuser" "P:smtppassword" "R:smtphost.isp" "M:DIGEST-MD5 CRAM-MD5 LOGIN PLAIN"
' with the various bits and pieces tuned to reflect your setup. -
cd /etc/mail/auth; makemap hash client-info < client-info
-
vi /etc/mail/sendmail.mc
- Add '
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')
' -
m4 sendmail.mc > sendmail.cf
-
kill -HUP `cat /var/run/sendmail.pid`
Easy when you know how...