Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
How do I get all the mail to go to one mail server. Do I alias it? Relay it? And what files do I need to modify? I have dug through the man pages and bought a book, but I am finding that sendmail is a little obscure.
all the mail from where? i'm usre you know what your question means to you, but it could mean a million things to someone else. alias it as what?? relay what to where?? please try and explain your topolgy a bit to give some info.
Sorry bout that... Well, I have 4 Linux Machines on 192.168.1.0 network. I use one as a web server, db server, mail server, and development. Each machine has tripwire install, and a couple have some CRON jobs that run backups and whatnot. Right now I would like to have all of ROOT's mail be forwarded to the mail server from each of the machines. Does that help?
right, well how do you access this mail? if you are just using a convetional unix mailbox system then you'd usually share the mailboxes as an nfs share and mount them on each machine as necessary, then acces them as you would the local mail (inded it then IS the local mail). you'd also set each clients SMTP server to be the mail server in order to send all mail out, and assuming you have an external IP, you would update your MX records to pass all mail to the mail server. Being Unix every question has loads of answers, and as most people hate to find out, a "mail server" on unix is made up of loads of little bits doing very different things... i get teh impression you know that fine though!
Well, I currently use ChangeIP.com as my Dynamic DNS provider. What is great about them is that they also allow Dynamic SMTP. Since my ISP (AT&T Broadband) blocks all traffic on port 25 (smtp) I was unable to receive mail. With the dSMTP, mail traffic flows over a high numbered port which is not monitored/blocked. The problem is that I do not want any of roots mail to be sent out to the web, and since ChangeIPs MX record has a greater precedence than mine (I think they do store and forward) roots mail would leave my network. That is the last thing that I want. So ideally, I would like each of the linux machine to relay/forward all my mail to one mailbox on my mailserver. Which I then use POP3 to retrieve.
yes, that's fine but the mail on the internal network never needs to know about the external IP's and everything, it's a closed little world of its own. you should just do what i sugested with the nfs shares. if you do have an internal sendmail running on each machine then you could always use procmail to forward it to the server, but that's really not necessary.. this is assuming you're only using linux / unix machines tho. windows need not apply...
to get mail from where? fetchmail is used to download mail from a REMOTE server and place it in your standard unix mailbox, i.e. the same place where sendmail puts any mail it recieves. if you want to be able to access the same email from your other linux machines, then yet again, i'm referring you back to the nfs share method, a very simlpe and comprehensive idea. Sixpax's suggestion is fine too, but if that's the way you want to do it then you will need to use an imap or pop3 server on mail to get to the mail again
I already have POP3 running which I use KMAIL to view. I have several accounts aliased and all mail is to be picked up by my main user account. Since I administer all the machines on the network, I was looking for a way to retrieve all relevant mail via that user account. I currently don't run any NFS shares on my network and all file transfers are done via scp or sftp. I know that there is a benefit to using NFS but I want to keep things as simple as possible, and right now its using scp and sftp.
Thanks for the help, I do appreciate it.
Last edited by needamiracle; 08-28-2002 at 02:13 PM.
I think that there is a spot in the sendmail config file that says where all root mail is sent to. Just set that up to send to your account on your mail server. I use Webmin to config most of my settings, since it is quick and easy (I'm lazy). You might want to try it out. Also learn NFS, it's not that hard and you'll love it. It's a lot better than FTP, and you can backup directories to one server easily.