Eric Mings <[EMAIL PROTECTED]> 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!
> 

Well, as usual, there is more than one way to skin the cat.

One possiblity is to run Postfix (or sendmail) on the 'other machine'
(thus making it your mail server machine), then simply forward requests
for smtp from outside your internal network to that machine's smtp port
(25).

So, what you need to do is to set up ipchains to forward that port.
(See the many ipchains howtos for details)  (assuming you are using
ipchains!)

Or, you could let the mail stop on your firewall, and have your
'other machine' transfer the mail over to itself periodically,
using a cron job or so forth....

Or, just let everyone use the firewall to get email from using
pop or whatever.

rc


Rusty Carruth          Email:     [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621  SnailMail: Schlumberger ATE
FAX:   (480) 345-8793             7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2     Tempe, AZ 85284-1825

Reply via email to