• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Root Mail in Linux

Carlosinfl

Loves the juice
Joined
Sep 25, 2002
Messages
6,633
When I type the command mail, I see:

Code:
[root@server@carlwill mail]# mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/root": 10 messages 10 unread
>U  1 [email]root@localhost.loca[/email]l  Fri Jan 28 14:48  41/1337  "Invalid File Contexts"
 U  2 [email]root@localhost.loca[/email]l  Sat Jan 29 04:02  84/2254  "LogWatch for localhost.localdomain"
 U  3 [email]root@localhost.loca[/email]l  Sun Jan 30 01:38 150/5425  "LogWatch for localhost.localdomain"
 U  4 [email]root@localhost.loca[/email]l  Sun Jan 30 04:02  44/1504  "LogWatch for localhost.localdomain"
 U  5 [email]root@localhost.loca[/email]l  Mon Jan 31 04:02 139/5270  "LogWatch for [email]server@carlwill.com[/email]"
 U  6 [email]root@localhost.loca[/email]l  Mon Jan 31 04:10 139/5270  "LogWatch for [email]server@carlwill.com[/email]"
 U  7 [email]root@localhost.loca[/email]l  Tue Feb  1 04:02 107/3271  "LogWatch for [email]server@carlwill.com[/email]"
 U  8 [email]root@localhost.loca[/email]l  Tue Feb  1 04:04  25/940   "Cron <root@server@carlwill> run-parts /etc/cron.daily"
 U  9 [email]root@localhost.loca[/email]l  Tue Feb  1 04:40 107/3271  "LogWatch for [email]server@carlwill.com[/email]"
 U 10 [email]root@localhost.loca[/email]l  Tue Feb  1 04:41  20/790   "Anacron job 'cron.daily'"

I can't figure out how to delete the mail from this and is this mail always going to be there? Is this mail important? I know I can press "?" for commands but it says"

d <message list> delete messages

but I don't understand what the command would look like and where I type that because when I type the command "mail", I dont get a options to type a command.

Can anyone explain this to me?
 
you can press d <enter> until they're all deleted. or you can do d 1 2 3 4 5 6 7 8 ... with all of them.

That looks like your cron output. You can edit /etc/crontab, and put whatever email you want in there. OR you can just comment out the MAILTO line.
 
you should usually alias your root user to another user accout you check email for. That way you don't have a ton of email saved up on an account like that. Read the instructions for whatever mail server you have going on how to set an alias up.
 
This is my crontab file

Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

Can I add any pop3 mail account I want to send from or it does not work like a regular MAPI clent?

I tried deleting the mail by pressing d1 or d2 but the problem is when I enter the "mail" cmd, I see the list and then at the very bottom of the list I see a "&" sign then the blinking cursor. I press the 'd1' command and return to another "&" sign. I don't know what is going on but the mails are not deleting.
 
you need to enetr d 1 , there's a space in there. I think you would need your own mail server setup in order for it to send mail to an outside mail server.
 
Back
Top