How do I setup a Sendmail server to forward all mail to a different mail server?

Updated -

First, you setup the mail server to allow connections from other systems. Change the following line in the /etc/mail/ file:

DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl


DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

Add the following line to the /etc/mail/ file:

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