Search

4.12. Mail

download PDF

4.12.1. Sendmail

In some releases of Red Hat Enterprise Linux 5, the sendmail Mail Transport Agent (MTA) accepted network connections from external hosts by default. In Red Hat Enterprise Linux 6, sendmail by default only accepts connections from the local system (localhost). To grant sendmail the ability to act as a server for remote hosts, perform one of the following steps:
  • Edit /etc/mail/sendmail.mc and change the DAEMON_OPTIONS line to also listen on network devices
  • Comment out the DAEMON_OPTIONS line in /etc/mail/sendmail.mc.
To put either of these changes into effect, install the sendmail-cf package, then regenerate /etc/mail/sendmail.cf. This is done by running the following commands:
su -c 'yum install sendmail-cf'
su -c 'make -C /etc/mail'
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.