Problem
How do I configure OpenServer or Unixware's standard version of Sendmail to support SMTP AUTH?
Solution
The older versions of Sendmail provided by SCO do not offer SMTP AUTH, as SASL was not pre-compiled.
You can check what Sendmail options are compiled by issuing the following command as root:
# echo '$=R' | /usr/lib/sendmail -bt -d0.4If you see SASL in this output then SMTP AUTH is compiled in.
SMTP AUTH is compiled into the sendmail version 8.13.8 which is available in UnixWare 714 Maintenance Pack 4 (714mp4) and available for OpenServer 6 in OpenServer 6 Maintenance Pack 4 (600mp4).
To configure client authentication, create the file /etc/mail/authinfo with the appropriate user information, for example:
AuthInfo:relay.smarthost.com "U:USERNAME" "P:PASSWORD" "M:PLAIN"Replacing USERNAME and PASSWORD with the actual name and password
that the host 'relay.smarthost.com' requires. The smart host may
also require a different M: authentication method like DIGEST-MD5.Create a hashed authinfo.db file from the text access file using:
# touch /etc/mail/authinfo.db
# chmod 600 /etc/mail/authinfo.db
# makemap hash /etc/mail/authinfo < /etc/mail/authinfoThe 8.13.8 sendmail needs to be configured to use the authinfo file /etc/mail/authinfo.db, to do this modify the mc file for your release.
For UnixWare 7.1.4 the mc file is /etc/mail/cf/cf/sco.uw714.mc For OpenServer 6.0 the mc file is /etc/mail/cf/cf/sco.osr6.mc This file needs an entry like this:
FEATURE(`authinfo',`hash -T<TMPF> -o /etc/mail/authinfo.db')dnlThe sendmail configuration will need to be rebuilt and the sendmail daemon will need to be restarted for this to take effect.
You may also want to modify the sendmail configuration to point to the smart host if desired and you have not already done so.
To modify the 8.13.8 sendmail configuration on UnixWare 7.1.4, use:
# /etc/mail/manage_sendmailThis will bring up the same menu as used on OpenServer 6.0.0 with:
# mkdev cfFrom this menu, you can configure the smart host using option 5 - Miscellaneous Items, choose 2 for smart host and specify the hostname of your smart host. In the case above 'relay.smarthost.com'.
Return to the main menu and choose option 7 to Generate a new sendmail.cf file and sendmail will be restarted.
Sendmail should now provide the authentication information when contacting the smart host.
See also
TA125738 "How can I tell what the compile options were for
my version of Sendmail? "
http://www.sendmail.org/m4/smtp_auth.html
/etc/mail/cf/README (SMTP AUTHENTICATION section)