LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-27-2015, 02:29 AM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Rep: Reputation: 17
Question Need help on sendmail,


Hi,

as per my understanding mail box of user in Oracle Linux is located in /var/spool/mail/<user name>

one of users mail box consuming heavy disk space on server,

can doing > /var/spool/mail/<usename> will delete the all the mails of user?

Pleas suggest.
 
Old 11-27-2015, 06:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by manoj.linux View Post
can doing > /var/spool/mail/<usename> will delete the all the mails of user?
Yes it will zero that file, thus deleting all mail of that user
 
Old 11-28-2015, 07:40 AM   #3
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Original Poster
Rep: Reputation: 17
Question

Thanks Bathory, one more query how to put restriction on the size of users mailbox while creating user in Linux, what can I do now for that users mail box which is utilizing heavy disk space?
 
Old 11-28-2015, 11:09 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manoj.linux View Post
Thanks Bathory, one more query how to put restriction on the size of users mailbox while creating user in Linux, what can I do now for that users mail box which is utilizing heavy disk space?
manoj.linux, you have been registered here for EIGHT YEARS...at what point are you going to begin using the documentation and trying to research things on your own? This is a common theme, as seen here:
http://www.linuxquestions.org/questi...nd-4175554806/

Also, you have been asking about sendmail for SEVEN YEARS now...have you learned absolutely NOTHING in that time?
http://www.linuxquestions.org/questi...ndmail-643824/
http://www.linuxquestions.org/questi...lp-4175545477/
http://www.linuxquestions.org/questi...er-4175499623/
http://www.linuxquestions.org/questi...il-4175525633/

AGAIN, as you have been asked many times, you need to READ THE DOCUMENTATION and do your own research first. Try putting "how to configure mailbox quote in sendmail on linux" into Google...read the first few results. Amazingly, it's even mentioned in the sendmail documentation. Since you've been using that for seven years now, it's surprising you haven't read that yet.
 
Old 11-28-2015, 11:10 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by manoj.linux View Post
Thanks Bathory, one more query how to put restriction on the size of users mailbox while creating user in Linux, what can I do now for that users mail box which is utilizing heavy disk space?
You could enable quota
Since you're using Oracle Linux that is based on Redhat, you can take a look here for more info

Regards
 
1 members found this post helpful.
Old 11-29-2015, 03:31 AM   #6
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Original Poster
Rep: Reputation: 17
Many Many Thanks Bathory.
 
Old 11-29-2015, 12:15 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manoj.linux View Post
Many Many Thanks Bathory.
..and you're VERY WELCOME for me pointing you to the documentation too. Kind of odd what you ignore and what you respond to. Can you not acknowledge what was told to you?

Also, bathory pointed you to DISK quotas...again, if you bothered to read documentation, you'd see you are able to set a limit on mailbox size (that is MAILBOX QUOTAS) in sendmail. Disk quotas are different...and after your eight years experience in sendmail, you should know this.

Last edited by TB0ne; 11-29-2015 at 12:17 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I Obtain source of /etc/sendmail.cf (Sendmail server on Slackware) intmail01 Linux - Server 1 07-27-2015 08:47 AM
Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found eliassal Linux - Server 15 11-04-2010 01:09 AM
Sendmail config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 05:02 AM
m4 sendmail.mc > sendmail.cf generate unwanted result on OpenSolaris johncsl82 Solaris / OpenSolaris 1 09-08-2008 11:25 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration