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 05-14-2010, 08:54 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Rep: Reputation: 48
mutt didn't send email via .sh file after reboot


I restarted a server yesterday for the first time in 2 years, but a shell script that send out an email every night via a mutt command line didn't work last night.

I don't know anything about mutt. do i have to start something in order for it to be able to work? is there a log i can look at to see what did or didn't happen making it not work?
 
Old 05-14-2010, 09:44 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by rjo98 View Post
I restarted a server yesterday for the first time in 2 years, but a shell script that send out an email every night via a mutt command line didn't work last night.

I don't know anything about mutt. do i have to start something in order for it to be able to work? is there a log i can look at to see what did or didn't happen making it not work?

Hmm...you have to find out how and where this script runs from.
It could be a cron job or it could have just been started manually.
It could be in rc.local even.
Either way....best to check the crontab and system cron to see if the entry for the script resides there.
Mutt is just a command line mail MUA package - similar to mailx or mail.
It does not run as a service or anything.
It is possible that your MTA (eg sendmail/postfix) may not have started?? You will need to do a bit of digging here, report back, then we can tell you the next step.
 
1 members found this post helpful.
Old 05-14-2010, 09:46 AM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
I see lines in my cron log that the script ran, so I think that's ok.

How do I know what MTA it uses, and how do i start it if its not running?
 
Old 05-14-2010, 09:52 AM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
I did a ./sendmail start and the email came through!!! Thanks!!!!!!!!!!!!!

But how can I tell why it didn't start automatically when I restarted the server, or if it was even set to start automatically after a reboot?
 
Old 05-14-2010, 10:37 AM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,697

Original Poster
Rep: Reputation: 48
chkconfig, that's how. I looked in inittab and i'm at default runlevel 3, and for 3 sendmail is off. i changed it to on. this is scary, i think i'm actually learning something.
 
  


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
Pipe'ing the ouput of 'cat' into 'mutt' (email) losses newlines when email received helptonewbie Linux - Newbie 2 08-28-2008 04:16 AM
Using a script to send a file to email address kopite Programming 3 06-17-2008 04:21 AM
Configuring necessary items so MUTT can send email nigma Linux - Networking 0 01-17-2005 01:07 PM
send email with mutt on command line naijaguy Linux - General 1 12-29-2004 07:33 PM
How to send email to a file for parsing archaegeo Linux - Newbie 1 10-31-2004 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 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