Solaris 8 Sendmail masquerading

The following steps may be used to quickly masquerade mail as domain.com instead of hostname.domain.com on a Solaris 8 system.

1. cd /usr/lib/mail/cf

2. cp main-v7sun.mc sendmail.mc

3. vi sendmail.mc

Add the following items:

MASQUERADE_AS(`domain.com')dnl
MASQUERADE_DOMAIN(`.domain.com')dnl
EXPOSED_USER(`root')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl


4. /usr/ccs/bin/make sendmail.cf

5. cp sendmail.cf /etc/mail/sendmail.cf

6. If you are running Sendmail as a daemon (-bd mode), send the Sendmail PID a SIGHUP signal.

Back to brandonhutchinson.com.

Last modified: 01/16/2003