If you have built your own copy of sendmail.cf or submit.cf, the configuration file is not rebuilt during the upgrade process. The following procedure shows how to configure the sendmail service properties so that the sendmail.cf file is automatically rebuilt for you. For instructions on how to automatically build the submit.cf configuration file, see Example 2–1. You may combine these procedures if you need to build both files.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# svccfg -s sendmail svc:/network/smtp:sendmail> setprop config/path_to_sendmail_mc=/etc/mail/cf/cf/myhost.mc svc:/network/smtp:sendmail> quit
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
This procedure configures the sendmail service, such that the submit.mc configuration file is rebuilt automatically.
# svccfg -s sendmail-client:default svc:/network/smtp:sendmail> setprop config/path_to_submit_mc=/etc/mail/cf/cf/submit-myhost.mc svc:/network/smtp:sendmail> exit # svcadm refresh svc:/network/sendmail-client # svcadm restart svc:/network/sendmail-client