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 OSR6DTo 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 entriesOnly 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>.cfMultipe mc files can be compiled simultaneously using:
# ./make allsendmail-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 restartIf 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')dnlEXAMPLE: 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')dnlNOTE: 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.