Avatar of techmiss
techmiss
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Mailx administration

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


LinuxLinux NetworkingUnix OS

Avatar of undefined
Last Comment
Kerem ERSOY

8/22/2022 - Mon
Kerem ERSOY

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.
techmiss

ASKER
Thanks for reply,

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

Cheers

K
Kerem ERSOY

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.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
techmiss

ASKER
How can I ascertain which MTA I am using (within Red Hat Enterprise?)

Thanks

K
Kerem ERSOY

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.



techmiss

ASKER
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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Kerem ERSOY

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.