Solved

Mailx administration

Posted on 2010-09-06
7
814 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
  • 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now