Fedora Linux Support Community & Resources Center
  #1  
Old 30th November 2011, 07:34 AM
alice78 Offline
Registered User
 
Join Date: Oct 2011
Posts: 13
linuxchrome
You have new mail in...

When I invoke a command on the terminal I am getting this annoying message from time to time:

You have new mail in /var/spool/mail/root

I am new to Fedora (previous Ubuntu user) and no idea where this comes from. How to turn this option off?

PS: I searched the internet.
Reply With Quote
  #2  
Old 30th November 2011, 10:06 AM
aesir Offline
Registered User
 
Join Date: Nov 2008
Location: ~
Age: 28
Posts: 175
linuxfirefox
Re: You have new mail in...

Well you are supposed to read them, they can contain important logs and errors (even though most of the time they are useless).

When you see it, run the command "mail".
It is simple to use: just type help and it will show the basic commands; you can use syntaxes like d*, d10-27, etc.

If you want to tell bash not to check for new mail change the MAILCHECK variable:
MAILCHECK=0
to make it persistent for you current user:
echo 'MAILCHECK=0' >> $HOME/.bashrc
Reply With Quote
  #3  
Old 30th November 2011, 10:18 AM
alice78 Offline
Registered User
 
Join Date: Oct 2011
Posts: 13
linuxchrome
Re: You have new mail in...

No thank you. I don't want to read them. If you don't know the answer please don't make the internet a rubbish by posting irrelevant answers.
Reply With Quote
  #4  
Old 30th November 2011, 10:29 AM
aesir Offline
Registered User
 
Join Date: Nov 2008
Location: ~
Age: 28
Posts: 175
linuxfirefox
Re: You have new mail in...

Please if you are not able to read don't bother others to write you an answer!!!
Reply With Quote
  #5  
Old 30th November 2011, 10:35 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,624
linuxfirefox
Re: You have new mail in...

Hello alice 78. I wouldn't call aesir's answer irrelevant. Not by a long shot. As a matter of fact, in my opinion, aesir's answer is very informative and accurate. I would, however, call your reply rude and uncalled for. This will not be tolerated going forward.

If you don't know how to handle the mail messages perhaps you need to revisit the advice given.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 30th November 2011, 12:22 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,477
linuxopera
Re: You have new mail in...

Sigh. Ok, I can understand frustration and quick answers out of frustration, I'm married, but when something important happens in life, one realizes how trivial aggravation on a forum really is.


(On the other hand, the mail command is a pain, I recommend mutt for that.)
If you don't want to read them....

Well, check if sendmail or postfix is runnning.

pgrep sendmail

If you get an answer, that means yes, it is running. If you just go back to a command prompt it means it isn't, and my answer is equally irrelevant.

Just to be sure, if it goes back to a command prompt, try

pgrep master

If it still goes back to a command prompt, well, you can stop reading. Otherwise, if one or the other of those gives you a line with a number, or perhaps two lines. Most likely is sendmail, so then you can do

systemctl disable sendmail.service

as root or with sudo.

If you got nothing with sendmail but got something with pgrep master, then use postfix.service instead of sendmail.service

(Not sure about that--postfix might just show up as sendmail, but regardless, in that case, you'll get an answer with the first pgrep)

Next time you reboot, it will stop sendmail, and then you shouldn't get those messages, I think, but I'm not guaranteeing..

As for this answer, if you don't like it, as I said, I'm married, so you can be as abusive as you want--that stuff rolls right off, but as I tell my wife when she's throwing things at me, it's not the best way to get help.
Reply With Quote
  #7  
Old 30th November 2011, 12:29 PM
alice78 Offline
Registered User
 
Join Date: Oct 2011
Posts: 13
linuxchrome
Re: You have new mail in...

Quote:
Originally Posted by aesir View Post
Well you are supposed to read them, they can contain important logs and errors (even though most of the time they are useless).

When you see it, run the command "mail".
It is simple to use: just type help and it will show the basic commands; you can use syntaxes like d*, d10-27, etc.

If you want to tell bash not to check for new mail change the MAILCHECK variable:
MAILCHECK=0
to make it persistent for you current user:
echo 'MAILCHECK=0' >> $HOME/.bashrc
Thanks for your answer. I didn't see the last part.
Reply With Quote
Reply

Tags
mail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
spam_buttons move from /var/spool/mail/user to $HOME/mail/Junk paul_mat Using Fedora 0 25th May 2006 08:07 AM
Spam Assassin - IMAP, Fetch Mail Send Mail` polc1410 Servers & Networking 3 12th December 2005 12:26 PM


Current GMT-time: 18:16 (Friday, 25-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat