LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices



Reply
 
Search this Thread
Old 08-26-2002, 12:05 PM   #1
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Rep: Reputation: 15
Multiple Linux Machines using sendmail...


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.

Any help would be appreciated,
needamiracle
 
Old 08-26-2002, 12:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 08-26-2002, 01:54 PM   #3
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Original Poster
Rep: Reputation: 15
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?

Regards,
needamiracle
 
Old 08-26-2002, 04:10 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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!
 
Old 08-27-2002, 11:37 AM   #5
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Original Poster
Rep: Reputation: 15
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.
 
Old 08-27-2002, 01:49 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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...
 
Old 08-27-2002, 01:59 PM   #7
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Original Poster
Rep: Reputation: 15
what about fetchmail? I've been doing some reading, could I set that up to get all the mail from the mailserver?
 
Old 08-28-2002, 12:45 PM   #8
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
Try this, on each of the machines, except the mail server, create/edit the /etc/aliases file.

Add an entry like so:

root : root@192.168.1.2 <---- IP or hostname of your mail server

Save it and run "newaliases".

Think you might have to restart sendmail afterwards, but not sure.
 
Old 08-28-2002, 01:25 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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
 
Old 08-28-2002, 02:11 PM   #10
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Original Poster
Rep: Reputation: 15
Hey Chris,

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.
Ryan

Last edited by needamiracle; 08-28-2002 at 02:13 PM.
 
Old 08-28-2002, 02:41 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well if you're not willing to learn the very basics of networking under unix...

oh and kmail will totally shaft any MH mailbox in my experience
 
Old 08-28-2002, 03:21 PM   #12
needamiracle
Member
 
Registered: Apr 2002
Location: North Attleboro, MA
Distribution: RH 7.3
Posts: 106

Original Poster
Rep: Reputation: 15
okay point taken...I'll try the NFS route. Do you have any suggestions for a different mail package other than KMAIL? Have you had any experience with Mozilla's mail package?
 
Old 08-28-2002, 03:27 PM   #13
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
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.
 
Old 08-28-2002, 03:38 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i'd suggest sylpheed if you want a big jumpy dancy mail client, personally i just use pine, and it rules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Machines Compiling RemusX2 Linux - General 4 07-06-2005 12:54 PM
Multiple Machines Compiling RemusX2 Linux - General 2 07-06-2005 05:44 AM
dhcp and multiple machines xthel Linux - Networking 7 06-16-2004 09:32 PM
Manage multiple linux-machines through one linux-machine howto ? Satriani Linux - Networking 18 06-10-2003 10:54 AM
Linux and multiple windows machines artman62 Linux - Networking 3 11-12-2001 10:50 PM


All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration