Are you talking about local mail or outbound smtp mail?
If you want to forward local mail, it's not too difficult.
Here's my setup:
RH 6.2
Sendmail 8.9.3-20
Webmin 0.82-1
Bring up Webmin, go to the Servers tab, click on Sendmail. Under
Sendmail options, the first three listed options are for forwarding.
Since I only needed to forward local mail, I simply specified the name
of the server that I needed to forward to.
I would think that the other forwarding options would cover smtp mail as
well, but I personally have no experience with them.
Keep in mind that this is what worked for me, YMMV.
HTH,
Wayne
Eric Mings wrote:
>
> I would like to setup my linux webserver to forward on all mail to
> another machine on my LAN. I have a static ip for the webserver but
> would use private ip (192.168....) for my other machine. The
> webserver machine also serves as a gateway to the net and already has
> ip masquerading on it. Can someone tell me what I need to do in order
> for all mail to be forwarded on to my other machine? Thanks much!
> --
> Regards,
>
> Eric Mings Ph.D.