Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

How to Change the .forward File Search Path

If you want to put all .forward files in a common directory, use the following instructions.

  1. Become an administrator.

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

  2. Make a copy of /etc/mail/cf/domain/solaris-generic.m4 or your site-specific domain m4 file.
    # cd /etc/mail/cf/domain
    # cp solaris-generic.m4 filename.m4
  3. Add the following line to the file that you just created.
    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.

  4. Build and install a new configuration file.

    For more information, see How to Build a New sendmail.cf File.


    Note -  When you edit the .mc file, change DOMAIN(`solaris-generic') to DOMAIN(`filename').