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/sendmail.mc file:


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

to:

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

Add the following line to the /etc/mail/sendmail.mc file:

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.