LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-19-2006, 09:34 PM   #1
blackdragonblood
Member
 
Registered: May 2005
Location: Minneapolis, MN
Distribution: Debian
Posts: 217

Rep: Reputation: 30
Changes to logwatch stopped root mail!


In another LQ post I read that letting root recieve mail is a security risk. In an effort to make changes so root's mail was sent to another account, I have managed to stop the mail. Not root or the account I want the mail to go to has recieved mail in two days. If you need me to post config files, just ask and I will post. Thx!
 
Old 01-19-2006, 10:39 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm assuming that you're using Sendmail. Run the following to see if your mail daemon is still running:

Code:
ps aux | grep sendmail | grep -v 'grep'
My output for this is:

Code:
root      3118  0.0  0.2   5104  1344 ?        Ss   Jan16   0:00 sendmail: accepting connections
smmsp     3123  0.0  0.1   4896   928 ?        Ss   Jan16   0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
If it's running, have a look in /var/log/maillog to see whether any errors have been logged. You could also try sending mail to the user with the mail command.

Apart from that, I'd need more info to help.
 
Old 01-19-2006, 10:57 PM   #3
blackdragonblood
Member
 
Registered: May 2005
Location: Minneapolis, MN
Distribution: Debian
Posts: 217

Original Poster
Rep: Reputation: 30
Silly me. Looking at the log file It looks like tcp_wrapper was blocking traffic to myself. I believe I may have it fixed. I'd like to make sure, but I'm new to the mail program. I looked at the man page and I can't figure out how to send mail. Could someone show an example plz? My mail gets saved as a dead letter.
 
Old 01-19-2006, 11:04 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you mean an example of the `mail` command? Have a read of `man mail` and try the following. Just substitute a real email address for username, a message where I have 'Test data' and finish the message by entering a dot '.' and pressing enter. The EOT is the response by mail:

Code:
$ mail -s "Test email" username
Test data
.
EOT
To read mail, just enter `mail` at a command prompt...

Last edited by gilead; 01-19-2006 at 11:07 PM.
 
Old 01-19-2006, 11:51 PM   #5
blackdragonblood
Member
 
Registered: May 2005
Location: Minneapolis, MN
Distribution: Debian
Posts: 217

Original Poster
Rep: Reputation: 30
It works. Thx a bunch! I'm not blocked by my wrappers anymore.
 
Old 01-19-2006, 11:53 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
No problem - glad it worked
 
  


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
Have Logwatch mail attachments stefaandk Linux - Newbie 4 09-05-2013 12:23 PM
How to stop the redhat sending me e-mail called "LogWatch" automatically? chuanweizuo Red Hat 2 03-08-2005 10:19 AM
mozilla -mail stopped working after up2date swampman Linux - General 2 04-15-2004 11:59 AM
Interpreting mail sent by logwatch JasonW Linux - General 0 02-20-2003 07:17 PM
Mail stopped working? quincy56 Linux - Networking 0 08-26-2002 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:41 PM.

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
Open Source Consulting | Domain Registration