sawyl: (Default)
sawyl ([personal profile] sawyl) wrote2005-11-15 09:01 pm
Entry tags:

SMTP authentication howto

The trick to setting up SMTP client authentication with sendmail seems to be the following:

  1. mkdir -m 700 /etc/mail/auth
  2. vi /etc/mail/auth/client-info
  3. 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.
  4. cd /etc/mail/auth; makemap hash client-info < client-info
  5. vi /etc/mail/sendmail.mc
  6. Add 'FEATURE(`authinfo',`hash /etc/mail/auth/client-info')'
  7. m4 sendmail.mc > sendmail.cf
  8. kill -HUP `cat /var/run/sendmail.pid`

Easy when you know how...


Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting