Managing sendmail Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

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

To facilitate the transport of inbound mail and outbound mail, the new default configuration of sendmail uses a daemon and a client queue runner. The client queue runner must be able to submit mail to the daemon on the local SMTP port. If the daemon is not listening on the SMTP port, the mail remains in the queue. To avoid this problem, perform the following task. For more information about the daemon and client queue runner and to understand why you might have to use this alternate configuration, refer to submit.cf Configuration File From Version 8.12 of sendmail.

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.2 .

  2. Stop 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-myhost.mc
    myhost

    Select a new name for your .mc file.

  4. Edit the new configuration file (for example, submit-myhost.mc)

    Change the listening host IP address to the msp definition.

    # grep msp submit-myhost.mc
    FEATURE(`msp', `[#.#.#.#]')dnl
  5. Build the configuration file by using m4.
    # make submit-myhost.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-myhost.cf /etc/mail/submit.cf
  7. Restart the sendmail client service.
    # svcadm enable sendmail-client