For When You Can't Have The Real Thing
[ start | index | login ]
start > sendmail > using SMTP AUTH as a smart relay

using SMTP AUTH as a smart relay

Created by dave. Last edited by dave, 12 years and 357 days ago. Viewed 7,707 times. #5
[diff] [history] [edit] [rdf]

Using SMTP AUTH with your Smart Relay

(These notes are for RedHat Linux 9. YMMV.)

If you have been assigned a SMTP AUTH username and password for use with your Smart Relay (ie your ISP requires SMTP AUTH when sending email), you'll need to set it up.

For your sendmail configuration, edit your /etc/mail/ to include these lines:


Don't mess with your (like the previous version of this file told you to) -- submit to localhost, then have localhost relay out.

Process them normally into the corresponding .cf files. You will probably have to restart sendmail at this point.

You'll also need an /etc/mail/authinfo file:

AuthInfo:[]	"" "P:passwd" "M:DIGEST-MD5"	"" "P:passwd" "M:DIGEST-MD5"

and then process it with

$ makemap hash /etc/mail/authinfo < /etc/mail/authinfo

Some notes:

  • Sendmail is anal about ownership/permissions on /etc/mail/authinfo.db, it must be smmsp/smmsp, 640.
  • You shouldn't need to put the IP address of your mail server in, the name should be enough, but for me it didn't work for whatever reason.
  • The "M:" parameter is optional, and can depend on your local AUTH system's capabilities. PLAIN and LOGIN are not recommended as they are trivial to reverse on the wire; however they may be the only thing available if the sendmail server cannot get access to the unencrypted password (ie if your provider is using LDAP or the system passwd files for authentication). Ideally you should be protecting your session with TLS or something.
no comments | post comment

Virtual Dave Megaplex:

Internet Explorer 6 Users >>Click Here

(read this note about local search)

Logged in Users: (0)
… and 18 Guests.

Editing: snipsnap-help, Image Macro

(Et auditum est, et idcirco ego nunc simulare)

Installed 6 years and 192 days ago
Powered By >>SnipSnap Version 1.0b1-uttoxeter

This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt