Solved

Mailx administration

Posted on 2010-09-06
7
812 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

747 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

12 Experts available now in Live!

Get 1:1 Help Now