Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Mailx administration

Posted on 2010-09-06
7
Medium Priority
?
826 Views
Last Modified: 2012-05-10
Hi all,

When I log into my system (Red Hat Enterprise  2.6.9-42.ELsmp) I am told I have new mail.

I can run "mailx" to look at my mail but I have 13k + mails waiting for me.

How can I perform basic admimnistration on this mail box. i.e:

1) Set quotas
2) Bulk Delete

Thanks

K


0
Comment
Question by:techmiss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 33615717
Hi,

1) What do you mean by set quotas?
2) If you want to delete all mails you can do this:

> /var/spool/mail/username

Where username is the username for which you want to delete all mails.

Cheers,
K.
0
 

Author Comment

by:techmiss
ID: 33615742
Thanks for reply,

When I say quotas, I want to limit the maximum size of all mailboxes to say 100MB or so..

Cheers

K
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 33615756
You can limit mailbox size using your MTA (Mail Transfer Agent)  max file size setting ( depending on your MTA) or Quota over your filesystem.

Cheers,
K.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:techmiss
ID: 33661423
How can I ascertain which MTA I am using (within Red Hat Enterprise?)

Thanks

K
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 33874694
RHEL uses sendmail by default. If you2ve installed postfix it would replace your sendmail. If you have system-switchmail command installed it would show you the default MTA and any alternatives. If not you can install it with:

yum install system-switch-mail

If you're not able to install the program you can still use rpm:

chkconfig --list |grep :on | egrep -e "postfix|sendmail"

Will show you the active MTA.

Cheers,
K.



0
 

Author Comment

by:techmiss
ID: 33954711
Sorry, I think this question is going in the wrong direction from all that time ago.

Put simply, I am logged into Linux, I type "mail" and I am told I have 14382 new messages.  Obviously I can't manage this number of emails in this manner so I was wondering what tools are avaliable to help me; be it through the GUI or some kind of Legacy app.

Thanks and sorry for confusion.

K
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 2000 total points
ID: 33956381
Ok. You can try alpine (a derivative of University of Washington pine) It is available through rpmforge / epel repositories or as a separate RPM set here:

RPMFORGE
http://rpmrepo.org/RPMforge

EPEL
http://fedoraproject.org/wiki/EPEL

ASeparate RPM
http://packages.sw.be/alpine/alpine-2.00-2.el4.rf.i386.rpm

Cheers,
K.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question