Technical article 128165

How to get started with Sendmail 8.17 on UnixWare7 Definitive 2018 or OpenServer6 Definitive 2018

OpenServer Definitive 2018UnixWare 7 Definitive 2018OpenServer 6UnixWare 7

Written · Last revised

Problem

How to get started with Sendmail 8.17 on UnixWare7 Definitive 2018 or OpenServer6 Definitive 2018

This sendmail version is only available with Update Pack 1 (needs a license) or later on OpenServer 6 Definitive 2018 and UnixWare7 Definitive 2018.

Solution

Setup Sendmail on UW7D or OSR6D

To configure sendmail please run the setup script:

# /opt/xinuos/sbin/setup-sendmail.sh
This will take a while.
Generating DH parameters, 2048 bit long safe prime
...
Creating certificate for sendmail.
stopping sendmail
restarting sendmail
Starting Xinuos sendmail
Starting sm-client:
See /opt/xinuos/etc/sendmail/hosts.allow
for sample sendmail entries

Only a limited number of features are enabled by default. Depending on your needs you will need to customize the .mc files in /etc/mail and run ./make <file>.cf

By default sendmail only listens on localhost For incoming mail,
set either EXT_ONBOOT or INT_ONBOOT to yes in
/etc/mail/sendmail.options
and run /etc/init.d/sendmail restart
You may need to customize sendmail-ext.mc or sendmail-int.mc
#
NOTE:     to use the latest sendmail version you need to
          install and register an Update Pack license.

The sendmail configuration files can be found in /etc/mail. There are multiple well commented *.mc files available.

Only a limited number of features are enabled by default.
Depending on your needs you will need to customize the .mc files
in /etc/mail.  To modify and compile an individual mc file execute:
# cd /etc/mail
# vi <file>.mc
# ./make <file>.cf

Multipe mc files can be compiled simultaneously using:

# ./make all

sendmail-xinuos.mc is used to configure all outgoing email settings. sendmail-int.mc is apropriate for incoming mail in your internal network. sendmail-ext.mc is apropriate for incoming mail from the internet.

By default sendmail only listens on the localhost network interface. For incoming mail, set either EXT_ONBOOT (external) or INT_ONBOOT (internal) to yes in /etc/mail/sendmail.options depending on the network interface used.

After every configuration change, the daemon needs to be restarted:

# /etc/init.d/sendmail restart

If you use tcp wrappers, see /opt/xinuos/etc/sendmail/hosts.allow for sample sendmail entries you can add to the version in /etc/inet.

EXAMPLE:  To setup an outgoing smarthost, uncomment the
SMART_HOST line in the
sendmail-xinuos.mc config file by removing the "dnl #" section and
modifying the "smtp.your.provider" entry:
change: dnl #client auth# define(`SMART_HOST',`smtp.your.provider')dnl
to:
define(`SMART_HOST',`smtp.your.provider')dnl
EXAMPLE:  Masquerading can hide your internal server name
from the rest of the  world. The feature rewrites the hostname
in the address of outgoing
mail.  To use masquerading uncomment the MASQUERADE_AS line in the
sendmail-xinuos.mc config file by removing the
"dnl #" section and modifying the "mydomain.com" entry:
 from: dnl MASQUERADE_AS(`mydomain.com')dnl
 to:   MASQUERADE_AS(`mydomain.com')dnl
NOTE:     by default masquerading is only valid for non-root users with
          sendmail.
          In case messages for root need the hostname masqueraded as well,
          remove the user from the macro in the
          sendmail-xinuos.cf:
          from: C{E}root
          to:   C{E}
NOTE:     dnl means "delete through newline". Nothing beginning with dnl
          through end of line will make it out of a sendmail.mc file and
          into the .cf file. dnl # makes the line a comment.  It is required
          to remove "dnl #" to use the the option/feature. Anything beginning
          with # and not deleted above will make it into sendmail.cf
          as a comment.

From the Xinuos technical article database, record 128165. Reproduced with permission. The original is at www.sco.com/ta/128165, 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.