If, for example, you want to put all .forward files in a common directory, follow these instructions.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# cd /etc/mail/cf/domain # cp solaris-generic.m4 mydomain.m4
define(`confFORWARD_PATH',`$z/.forward:/var/forward/$u')dnl
If a value for –confFORWARD_PATH already exists in the m4 file, replace the value with this new value.
If you need help with this step, refer to How to Build a New sendmail.cf File.