Results 1 to 8 of 8

Thread: new mail? How?

  1. #1
    Member registered user
    Join Date
    Mar 2004
    Location
    England
    Posts
    33

    new mail? How?

    Hi All,

    A day or two back I did yet another HD install on this set up as part of the learning. I left the resulting install running for a day or so, just to see what would happen. I was logged out as long as I wasn't around to use the system, and logged in as a variety of users when I was exploring.
    Yesterday, I powered the system down after about 2 days. I just powered up again and I have it set so that I start with a console log in from which I can startx or kdm to a gui if I want. I logged in as root, and got a message saying I got new mail!

    This has confused me a bit since I have not set any mail up! On further looking about the place I can see no trace of any mail anyway - so what gives? How can I find that to which the beast refers, and more, how might I read same? <shrug>

    I mean on the face of it, that looks like the setup is mistaken, but it's far more likely that I am, surely?

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    You've got the mail in /var/mail/root. It's not a mail account as such AFAIK. It's just where root gets to know for instance if a user has tried to do anything "illegal" like sudoing when not in sudoers.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: new mail? How?

    Quote Originally Posted by colin stewart
    Yesterday, I powered the system down after about 2 days. I just powered up again and I have it set so that I start with a console log in from which I can startx or kdm to a gui if I want. I logged in as root, and got a message saying I got new mail!

    This has confused me a bit since I have not set any mail up! On further looking about the place I can see no trace of any mail anyway - so what gives? How can I find that to which the beast refers, and more, how might I read same? <shrug>

    I mean on the face of it, that looks like the setup is mistaken, but it's far more likely that I am, surely?
    In the same console mail and it should show you a list of the mail waiting for you type in the number of the mail you want to see and enter to read, ESC brings you back to the list IIRC and when you are done "q" then enter quits the program.

  4. #4
    Member registered user
    Join Date
    Mar 2004
    Location
    England
    Posts
    33
    Quote Originally Posted by Markus
    You've got the mail in /var/mail/root. It's not a mail account as such AFAIK. It's just where root gets to know for instance if a user has tried to do anything "illegal" like sudoing when not in sudoers.
    OK, thanks, that's great, and how might I actually read it from say the command line or even from a gui for that matter?

    I only ask as I did look about the various mail areas, but could see no mail or any files to view.

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Quote Originally Posted by colin stewart
    OK, thanks, that's great, and how might I actually read it from say the command line or even from a gui for that matter?

    I only ask as I did look about the various mail areas, but could see no mail or any files to view.
    I think Stephen already answered that but have a look at "man mail" to see how it works.

  6. #6
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    361
    Quote Originally Posted by colin stewart

    OK, thanks, that's great, and how might I actually read it from say the command line or even from a gui for that matter?
    If you want something a bit fancier than "mail" mentioned above you could try "mutt" instead.

  7. #7
    Member registered user
    Join Date
    Mar 2004
    Location
    England
    Posts
    33
    Quote Originally Posted by Markus
    I think Stephen already answered that but have a look at "man mail" to see how it works.
    Yes, and now I also know that "mail" is a command and that it's got a "man" to go with it too!

    Thanks to both of you!

    UPDATE EDIT:

    Yes, this works fine too - I noted that after reading a few then using q to quit, only then did it save the mail I had just read in the places I had been previously looking to read it from!

  8. #8
    Member registered user
    Join Date
    Mar 2004
    Location
    England
    Posts
    33
    Quote Originally Posted by windos_no_thanks
    Quote Originally Posted by colin stewart

    OK, thanks, that's great, and how might I actually read it from say the command line or even from a gui for that matter?
    If you want something a bit fancier than "mail" mentioned above you could try "mutt" instead.
    Oh, now you started something!

    I jumps to a shell, and types, mutt

    it starts, and then complains there's no file or dir called knoppix

    OK thinks I, I'll just make you one then

    Goes to make a dir, and access denied, thinks AH, not route.

    New shell, sudo mkdir etc......

    knoppix is not on sudoers list (not in the club it seems)

    ok, so su root .........password..... fine we're root....

    mkdir, etc...... sorted.

    mutt...... directory is not a mailbox..........Thinks - I see, always bitching instead of doing!.......

    OK, so I don't know how to help this dawg out, but I will get to it later as I don't actually see much wrong with "mail" given this is linux, and nice isn't always on the menu!

    One (probably more serious) thing that arises out of all of this though. You're always given the advice not to run as root for just about any reason. however you can't do something trivial like make yourself a place to put your mail unless you are, and if knoppix were on the sudo list that could at least be done, so you got to go root either way. Hmmm... the advice really would be easier to stick to if things like this were slightly better than they seem to be, and it's no good needing to be an expert just to make being a n00b make any sense! That's just silly!

    Sorry, didn't mean to rant, but this is a bit of a daft situation, and even a n00b like me can see that one!

    Anyhoo.....

    Afterthought: and yes, I do realise knoppix may not have had any mail, but thats not the point at all is it? we never got that error message like "no mail for knoppix" did we? By comparison that would have been a result not the snafu it seemed to end up as.

Similar Threads

  1. Top 3 best E-mail servers?
    By Hunkah in forum The Lounge
    Replies: 7
    Last Post: 08-16-2011, 08:57 PM
  2. Check root mail
    By adamherb in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 07-29-2005, 03:20 PM
  3. How to get mail to work?
    By rrfish72 in forum General Support
    Replies: 2
    Last Post: 08-05-2004, 12:01 AM
  4. e-mail software support
    By zavec in forum General Support
    Replies: 1
    Last Post: 02-04-2004, 05:04 PM
  5. MAIL SERVER?
    By quakes in forum The Lounge
    Replies: 1
    Last Post: 05-05-2003, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


DELL OPTIPLEX 5070 | INTEL CORE I7-9700 3.00GHZ | 256GB | 16GB | NO OS picture

DELL OPTIPLEX 5070 | INTEL CORE I7-9700 3.00GHZ | 256GB | 16GB | NO OS

$139.99



Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2 picture

Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2

$350.00



Dell 14

Dell 14" TOUCHSCREEN IntelQuadCore 16GB RAM up to 512GB SSD Fingerprint BT Win11

$235.00



Lot of 3 HP Prodesk 600 G3 DM - Intel Core I5 7th Gen. 8GB w/ Chargers - NO SSD picture

Lot of 3 HP Prodesk 600 G3 DM - Intel Core I5 7th Gen. 8GB w/ Chargers - NO SSD

$125.00



Intel Core i7-12700KF - Alder Lake 12-Core (8P+4E) 3.6GHz LGA 1700 125W CPU picture

Intel Core i7-12700KF - Alder Lake 12-Core (8P+4E) 3.6GHz LGA 1700 125W CPU

$183.99



Intel Xeon 4110 Silver 2.1GHz 8-Core 11M 85W SR3GH picture

Intel Xeon 4110 Silver 2.1GHz 8-Core 11M 85W SR3GH

$6.45



AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A... picture

AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A...

$304.95



Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU picture

Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU

$29.95



Dell Optiplex 5040 MT Core i5-6500 3.20GHZ 8GB RAM 256GB SSD Win 10 Pro WiFi picture

Dell Optiplex 5040 MT Core i5-6500 3.20GHZ 8GB RAM 256GB SSD Win 10 Pro WiFi

$89.99



Lenovo ThinkBook 15 Gen 4 Notebook 15.6

Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD Intel Core i7-1255U 8GB RAM

$549.99