Technical article 125764

Does Unixware or OpenServer support SMTP AUTH?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

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.4

If 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/authinfo

The 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')dnl

The 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_sendmail

This will bring up the same menu as used on OpenServer 6.0.0 with:

# mkdev cf

From 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)

From the Xinuos technical article database, record 125764. Reproduced with permission. The original is at www.sco.com/ta/125764, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.