8.15 HP Utility Meter User's Guide (January 2010)

Table Of Contents
sendmail-config: Edits complete, restarting sendmail.
You have completed configuring hostname masquerading on the Utility Meter and can continue to
Section 2.11.3: “Verifying Hostname Masquerading”.
2.11.2 Manual Hostname Masquerading Setup
To manually set up hostname masquerading on the Utility Meter, perform the following procedure:
1. Determine the configuration file that is being used by sendmail. You can verify the sendmail
configuration file with the following command:
/usr/sbin/sendmail d0.20 bv | /usr/bin/grep Def Conf file
2. Edit the configuration file that your sendmail installation is using (from Step 1) and search for the line
starting with DM.
3. To masquerade the domain, ensure the DM line is not commented out (should not have a preceding hash
(#) character) and append the specified domain name to the DM macro. For example:
DMcorp.example.com
This sets corp.example.com as the masqueraded domain name. (corp.example.com was verified
to be resolvable by public DNS.)
4. To configure the SMTP relay, ensure the line DS line is not commented out (should not have a preceding
hash (#) character) and append the SMTP relay hostname to the DS macro. For example:
DSsmtp.corp.example.com
This sets smtp.corp.example.com as the relay hostname. (smtp.corp.example.com was verified
to have an A record in DNS.)
5. Save and close the file, and then restart sendmail using the commands :
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start
You have completed configuring hostname masquerading on the Utility Meter and can continue to
Section 2.11.3: “Verifying Hostname Masquerading”.
2.11.3 Verifying Hostname Masquerading
NOTE: You must use Ctrl-D to exit from the interactive sendmail application.
To verify the hostname masquerading, execute the following test as root. (The -C option in the sendmail
command defines the location of the sendmail configuration file):
# /usr/sbin/sendmail -bt -C /etc/mail/sendmail.cf
> $j
(Where $j is the fully qualified hostname of the Utility Meter)
meter.corp.example.com
> $M
(Where $M is the effect of masquerading)
corp.example.com
> Ctrl-D
If any of the masquerading tests do not work, check the sendmail configuration file and ensure that hostname
masquerading is implemented (through the DM macro):
2.11 Email Hostname Masquerading 35