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, tools, and much more.