LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2008, 05:03 PM   #1
linux-who?
Member
 
Registered: Jul 2005
Location: Florida
Distribution: Red Hat
Posts: 34

Rep: Reputation: 15
how to configure email


Hi All,
Ok, here is what i am trying to do. I have a shell script that runs each night and creates a log file. when it completes, i want the shell script to email me the report in the body of an email. This script runs on multiple servers.....some running RHEL4 others running SCO Unixware. From searching the web i have found that i can do this with either sendmail, mutt, mail, or mailx commands. I would like to find a sollution that does NOT require installing any new packages....so i'm leaning towards mail or mailx (sendmail and mutt are not installed by default on SCO unixware....not sure if they are compatible with SCO unixware either). It is also my understanding that i must configure an MTA. This is where i am totally lost. Can someone give me detailed steps on how to do this? Is the concept of configuring an MTA comparable to configuring the server settings, etc in MS outlook?
Thanks
 
Old 01-09-2008, 05:55 PM   #2
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Rep: Reputation: 31
configuring an MTA and outlook are completely different. look for a good how-to (flurdy.com/docs/postfix/) on the internet for installing an MTA called postfix, it wraps sendmail though so mail and xmail would not work with it, but Postfix should do what you need. Postfix will turn your box into an email server that can send and receive email independently of any other service (hotmail, gmail, aol.com, etc). Be sure to follow all the instructions in the how to and make sure your server is not an Open Relay (meaning spammers can use your box to send there junk).

When you properly configure the mail server, I suggest having your script output to stdout and then you can use the following command in cron set to the time you want and you will be set:

Code:
jim@my_box_name:/home/username$ my_script_name | sendmail name@domain.com
I hope this works for you. Setting up an email server can be a doosey, so be prepared to put some time into the project.

best of luck to you.

- Jim

Last edited by jimbo1708; 01-09-2008 at 05:59 PM.
 
Old 01-10-2008, 03:07 PM   #3
linux-who?
Member
 
Registered: Jul 2005
Location: Florida
Distribution: Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jimbo1708 View Post
Postfix will turn your box into an email server that can send and receive email independently of any other service (hotmail, gmail, aol.com, etc).
Thanks for the reply Jimbo1708. I may be totally missing the concept here, but the servers that i am running the script on are not publicly registered machines. they have access to the internet, but that's it. So, i need for these machines to send me the email through a hosted email address (hotmail, gmail, aol, etc).
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix configure as email gateway cylix2000 Linux - Server 3 11-07-2006 03:44 AM
configure email server digity Linux - Newbie 6 04-15-2005 04:03 PM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 05:43 AM
How to configure DNS for email? aroop Linux - Networking 2 10-04-2004 09:01 PM
HOW TO CONFIGURE Email server Redhat_guy Red Hat 4 12-22-2003 02:13 PM


All times are GMT -5. The time now is 07:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration