Technical article 107602

I reconfigured sendmail not to use a smarthost; now mail isn't being delivered.

OpenServer 5.0.0OpenServer 5.0.6

Written · Last revised

Problem

sendmail was originally configured to use a "smart host".  Now
a smart host is no longer needed.  Running "mkdev cf" and
answering "n" to the question "Is there a smart mailhost on your
network?" doesn't remove the smarthost from the configuration table.

There may be messages generated in /usr/adm/syslog that look similar to:

Feb  8 13:33:02 host sendmail[269]:  root: configure: mail loops
back to myself

If /usr/lib/sendmail.cf was edited and the smarthost macro (DF) was commented out or left blank, sendmail will generate an error that looks similar to:

554 null host name for [IPC] mailer

Solution

You must be logged in as root.  The options set by "mkdev cf",
when it creates the sendmail.cf, are set in the file
/usr/lib/sendmail.d/sendmail.ans.
Change directories to /usr/lib/sendmail.d.  Using your favorite
text editor, edit the file "sendmail.ans".  Find the entry
that looks similar to the following:
ZZSMARTZZ="smarthost.domain.com"
Change this line to:
ZZSMARTZZ=n

Next, locate a second line that is similar to the following:

SMART=y
Change this line to:
SMART=n
Save and exit the file.
It will be necessary to generate a new sendmail.cf file using
the configuration just created.  Do this by running mkdev cf.

From the menu, you will see the following:

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 9. Quit

Enter the number five (5) to verify that the question "Is there a smart mailhost on your network? is followed by [n].

Return to the main menu and select option eight (8), "Generate sendmail.cf file". This will create a sendmail.cf that isn't configured to use a smarthost.

See also

sendmail(ADMN), sendmail.cf(SFF)

From the Xinuos technical article database, record 107602. Reproduced with permission. The original is at www.sco.com/ta/107602, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.