8.16 HP Utility Meter User's Guide (June 2010)
sendmail-config: are not allowed direct email connections to the internet.
sendmail-config: To disable domain masquerading or the SMTP relay, enter a
sendmail-config: single dash ('-') when prompted for the host/domain to use.
sendmail-config: Domain to masquerade as ('-' for no masquerading)
sendmail-config: [subdomain.busines.example]: business.example.com
sendmail-config: Outbound SMTP relay host ('-' for no relay)
sendmail-config: []: smtp-out.business.example.com
sendmail-config: Verifying connectivity with smtp-out.business.example.com...ok.
sendmail-config: Setting sendmail masquerading to business.example.com.
sendmail-config: Setting sendmail SMTP relay to smtp-out.business.example.com.
sendmail-config: Edits complete, restarting sendmail.
You have completed configuring hostname masquerading on the Utility Meter and can continue to
Section 2.12.3: “Verifying Hostname Masquerading”.
2.12.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.12.3: “Verifying Hostname Masquerading”.
36 Installing and Configuring the Utility Meter Software