sendmail alias expansion not working in RHEL

Solution Verified - Updated -

Issue

When sending emails from a host, aliases in /etc/aliases are ignored.
If /etc/aliases contains:

root:     alerts@my.remotehost.com

Mail sent via this host for the aliased address (root in this example) actually ends up being delivered to the local account instead of the expanded alias (i.e. it goes to root instead of alerts@my.remotehost.com)

Environment

Red Hat Enterprise Linux - any version

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content