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 myselfIf /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=nNext, locate a second line that is similar to the following:
SMART=yChange this line to:SMART=nSave 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 Utility1. 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)