Go to main content

Managing sendmail Services in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

How to Manage Mail Delivery by Using an Alternate Configuration of sendmail.cf

This procedure ensures that your daemon runs only to accept connections from the local host.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Stop the sendmail-client service.
    # svcadm disable -t sendmail-client
  3. Make a copy of the configuration file that you are changing.
    # cd /etc/mail/cf/cf
    # cp submit.mc submit-host-domain.mc
  4. Edit the new configuration file.

    Change the listening host IP address to the msp definition.

    # grep msp submit-host-domain.mc
    FEATURE(`msp', `[#.#.#.#]')dnl
  5. Build the configuration file by using m4.
    # make submit-host-domain.cf
  6. () Install the new configuration file after making a copy of the original.
    # cp /etc/mail/submit.cf /etc/mail/submit.cf.save
    # cp submit-host-domain.cf /etc/mail/submit.cf
  7. Restart the sendmail-client service.
    # svcadm enable sendmail-client

    For more information, see submit.cf Configuration File in Version 8.12 of sendmail.