System Administration Guide: Network Services

ProcedureHow to Automatically Rebuild a Configuration File

If you have built your own copy of or, the configuration file is not replaced 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 13–1. You may combine these procedures if you need to build both files.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  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 13–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