Add an MX record for every host that points to your main mail server. Also, you'll want to create a sendmail.cf file for your mail server specifying it as a mail hub and then sendmail.cf files for your hosts specifying them as null clients. The "bat book" (O'Reilly's Sendmail book) will come in handy for such a task. Gabe On Wed, Aug 16, 2000 at 08:29:59AM -0500, Mike Glaser wrote: > 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 at 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 at 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 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org > For additional commands, e-mail: tclug-list-help at mn-linux.org -- -------------------------------------------------------------------------------- Gabe Turner | X-President, UNIX Systems Administrator, | Assoc. for Computing Machinery U of M Supercomputing Institute for | Univerisity of Minnesota Digital Simulation and Advanced Computation | dopp at acm.cs.umn.edu "Hey Guedo! It's all so clear to me now. I am the keeper of the cheese, and you're the lemon merchant. Get it?" - Ren Hoek in "In the Army" -------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org For additional commands, e-mail: tclug-list-help at mn-linux.org