This issue is resolved in vSphere 6.5 P01, available at VMware Downloads.
To work around this issue if you do not want to upgrade, set the root account on the VCSA to masquerade as another account.
These steps will change the root@VCSA_FQDN email address in sendmail to the configured MASQUERADE ([email protected]) address.
To configure masquerading:
- Log in to the VCSA as the root user.
- Open the genericstable file in a text editor.
Note: The default location is /etc/mail/.
- To define an email address for the root user, add the line:
root user@domain.com
- To regenerate the genericstable, run the makemap command:
makemap -r hash /etc/mail/genericstable.db < /etc/mail/genericstable</font>
Note: For performance reasons, the Sendmail application does not use the genericstable directly and relies on a hashed version located at /etc/mail/genericstable.db.
- To configure Sendmail to use the masqueraded account, create a sendmail.mc file by running the command:
/sbin/conf.d/SuSEconfig.sendmail -m4 > /sendmail.mc
- Open the sendmail.mc file in a text editor.
- Add or modify the lines as indicated in red in these examples:
Note: Ensure you replace domain.com with the your own domain details.
######################################################################
# /etc/sendmail.cf
#
# Generated by /sbin/conf.d/SuSEconfig.sendmail on <YYYY-MM-DD>T<time>
# controlled by /etc/sysconfig/mail and /etc/sysconfig/sendmail
#
######################################################################
divert(-1)
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)dnl
VERSIONID(`@(#)Setup for SuSE Linux 8.14.2-0.9 (SuSE Linux) Date')dnl
OSTYPE(`suse-linux')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`greet_pause', `2000')dnl
FEATURE(genericstable)dnl
FEATURE(generics_entire_domain)dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
</time>MASQUERADE_AS(`domain.com')dnl
MASQUERADE_DOMAIN(`vcenter_fqdn')dnl
GENERICS_DOMAIN(`domain.com')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/genericstable')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
DOMAIN(`generic')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`procmail')dnl
MAILER(`uucp')dnl
MAILER(`bsmtp')dnl
MAILER(`fido')dnl
LOCAL_CONFIG
Cwlocalhost vcenter_FQDN
Note: See the Additional Information section for more examples.
- Ensure that the sendmail.cf file, located at /etc/ directory, does not already exist. If the file exists, rename it by running the command:
mv /etc/sendmail.cf /etc/sendmail.cf.orig
- To apply the settings defined in step 5, create the new sendmail.cf file by running the command:
m4 /sendmail.mc > /etc/sendmail.cf
- Open the sendmail.cf file in a text editor.
- Update the SMTP relay address by locating the entry:
#"Smart" relay host(may be null)
DS
- Change the entry to reflect the correct address of your SMTP relay server ensuring you include the brackets:
#"Smart" relay host(may be null)
DS[RELAYIPADDRESS]
- Look for the line:
C{E}root
- To allow masquerading of the root address change it to:
#C{E}root
- Restart the Sendmail service for the new configuration to take effect by running the command:
/etc/init.d/sendmail restart