TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

E-Mail forwarding problem



I would guess that the solution to this problem is quite simple, but I have not 
been able to figure it out yet. At the risk of embarrassing myself, here goes...

I want to forward any e-mail for root (or any local users) on my small collection 
of linux servers to one of the company's two main Internet connected mail 
servers.

The linux servers are all on different LAN's and they are all running sendmail 
on a RedHat 6.2 system. I would like the messages forwarded to the main mail 
server that is running on Windows 98 and connected to the Internet with a 
modem. I have a single (very simple) DNS server running also. I mention this 
because I guess that an 'MX' record may come into play here.

Question: must I place .forward files into each account I want forwarded or is 
there some way around this with DNS and MX records? Can't I just send mail 
out to anywhere somehow? My knowledge of these things is quite basic, but I 
am trying to learn.

=====

I started by placing a .forward file in a local account we will call 'joe'.
The  .forward file contained one line that read 'jblow@mail.corp.com' where 
'mail.corp.com' is the hostname of the mail server I want messages to end up 
at. The actual e-mail account on that mail server would be 'jblow@corp.com'. I 
can do a ping or nslookup on the linux server for mail.corp.com and get a reply 
from the mail server so I think DNS is working ok (there are no MX records). 
When I try to forward out a message it doesn't work though.

I am trying to set all of this up so that I only need one e-mail box to check, or 
so that certain alerts can be mailed to the appropriate people, etc.

Thanks in advance,
Mike Glaser