Technical article 107700

How to set up a basic sendmail configuration.

OpenServer 6.0.0OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7UnixWare 7.1.3UnixWare 7.1.4

Written · Last revised

Problem

I want to configure sendmail as the Mail Transfer Agent on
my system.  How do I do this?

Solution

If you are converting from MMDF to sendmail, see TA107593, "How do I change from MMDF to sendmail in SCO OpenServer Release 5?" for instructions on removing MMDF from your system and installing sendmail.

Before following the instructions in this article, back up the user
mailboxes in /usr/spool/mail.  Also, stop the MMDF delivery daemon
by entering the /etc/init.d/mmdf stop command.  It is a good idea
to copy the contents of the /usr/mmdf directory to another location
before removing the MMDF package.  That way you can cross-reference
between the two environments once sendmail is installed.

To install version 8.8.5 of sendmail, see TA105451, "What is Support Level Supplement (SLS) OSS443A, the Sendmail Security Supplement?" for instructions on getting this updated version of sendmail onto your system.

Once you have sendmail installed, follow these instructions for basic configuration:

For OpenServer5/6:
Execute the "mkdev cf" command.
For UnixWare7:

Execure the "/etc/mail/manage_sendmail" command or "scoadmin mail" for versions earlier than 7.1.4.

You will see the following menu:
SCO Sendmail Configuration Utility
        1. Edit UUCP Connections
        2. Edit DOmain
        3. NIS Support
        4. Edit Alternate Host Names
        5. Miscellaneous Items
        6. Set up X.400 Gateway Configuration
        7. Review Configuration information
        8. Generate sendmail.cf file

To configure your server for basic TCP/IP-based email, respond only to these three menu options: "2. Edit Domain", "4. Edit Alternate Host Names" and "5. Miscellaneous Items". Option 5 has two sub-menu items that will require input: "3 smarthost option", and "4 Internet connection".

You can respond to "2. Edit Domain" in one of two ways. Either enter your domain name, or let the system give the answer by executing the 'hostname' command. For the 'hostname' command to work correctly, you must have your domain name for TCP/IP set up.

Answering "4. Enter Alternate Host Names" will cause your host name to be checked using the 'uname -n' command and will append the current domain name to it.

If you have a server on your network that resolves unknown email addresses (smarthost), such as addresses outside your domain or not known on the current server, enter the name of this server in "5. Miscellaneous Items" submenu selection 3: "Is there a smart mail host on your network?". The smarthost server needs to be kept up to date with user email addresses to ensure email is sent and received successfully.

Even if your server is not connected to the Internet, you must answer yes to the submenu 4 option of "5. Miscellaneous Items". It asks if this machine is on the Internet. Answering yes to this ensures SMTP is configured for TCP/IP connectivity.

Once you have answered the above menu items, select "8. Generate sendmail.cf file". Next, exit the menu and restart the sendmail daemon by entering the command '/etc/init.d/sendmail start'. sendmail is now configured and running. Test sendmail methodically by sending a message first to yourself, then to another node on your network, then to a machine external to your network. Check for success between each send. Check that mail is being received properly by first sending from another host on your network to the newly configured server, then from a host external to your network to the newly configured server. Check /usr/adm/syslog for sendmail errors.

TROUBLESHOOTING
---------------
          To check you can reach the SmartHost you have configured try:
# telnet <smarthost> 25

otherwise you may experience errors similar to these in "syslog":

Feb 16 15:58:10 myserver sendmail[3643]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon Daemon0: cannot bind: Address already in use

Feb 16 15:58:10 myserver sendmail[3643]: daemon Daemon0: problem creating SMTP socket

Feb 16 15:58:10 ukcrn02 sendmail[3643]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon Daemon0: server SMTP socket wedged: exiting

If you experience these problems and see you email being delivered in a '/dead.letter' file then check you have:

a) Check the release notes of the server's Maintenance Packs to ensure the latest version of SendMail is installed and installed correctly.

b) Check your /etc/resolv.conf file for any DNS errors or /etc/hosts if DNS is not used, if you can 'telnet <smarthost ip addr> 25' produces a connection.

c) Check your 'sendmail.cf' for any additional configuration errors.

See also

TA107544, "Converting from MMDF to sendmail."

TA107593, "How do I change from MMDF to sendmail in SCO OpenServer Release 5?"

TA105451, "What is Support Level Supplement (SLS) OSS443A, the Sendmail Security Supplement?"

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