Managing sendmail Services in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014

How to Automatically Rebuild a Configuration File

If you have built your own copy of or, the configuration file is not rebuilt during the upgrade process. The following procedure shows how to configure the sendmail service properties so that the file is automatically rebuilt for you. For instructions on how to automatically build the configuration file, see Example 2–1. You may combine these procedures if you need to build both files.

  1. Become an administrator.

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

  2. Set the sendmail properties.
    # svccfg -s sendmail
    svc:/network/smtp:sendmail> setprop config/path_to_sendmail_mc=/etc/mail/cf/cf/ 
    svc:/network/smtp:sendmail> quit
  3. Refresh and restart the sendmail service.

    The first command pushes the changes into the running snapshot. The second command restarts the sendmail service using the new options.

    # svcadm refresh svc:/network/smtp:sendmail 
    # svcadm restart svc:/network/smtp:sendmail
Example 2-1  Establishing Automatic Rebuilding of

This procedure configures the sendmail service, such that the configuration file is rebuilt automatically.

# svccfg -s sendmail-client:default
svc:/network/smtp:sendmail> setprop config/path_to_submit_mc=/etc/mail/cf/cf/ 
svc:/network/smtp:sendmail> exit
# svcadm refresh svc:/network/sendmail-client 
# svcadm restart svc:/network/sendmail-client