Mail Administration Guide

How to Change the .forward File Search Path

  1. Become root.

  2. Make a copy of /usr/lib/mail/domain/solaris-generic.m4 or your site-specific domain m4 file:


    # cd /usr/lib/mail/domain
    # cp solaris-generic.m4 myhost.domain.m4
    
  3. Add a line like the following to the file you just created:


    define(`confFORWARD_PATH',`~z/.forward:/var/forward/$u')dnl

    If a line already exists in the domain m4 file that you are using, replace the line.

  4. Build and install a new configuration file.

    See "How to Build a New sendmail.cf File" for a complete procedure.