LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2013, 07:31 AM   #1
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Rep: Reputation: Disabled
remove user's emails


Hello, how can I remove from a user's mail box all email from Mail Delivery System ?

Thank you
 
Old 06-11-2013, 10:21 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,224

Rep: Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969
Quote:
Originally Posted by umbloaded View Post
Hello, how can I remove from a user's mail box all email from Mail Delivery System ?
Thank you
Can only guess, since you don't give us ANY details, like version/distro of Linux, what mail system you're using, etc. Chances are there is a file/directory in /var/spool/mail (or a similar directory), that has the users name on it. Delete it.

If you can't find it, post complete details, and we can try to help.
 
Old 06-12-2013, 03:01 PM   #3
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
I'm using Postfix on Centos
 
Old 06-12-2013, 03:22 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,224

Rep: Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969
Quote:
Originally Posted by umbloaded View Post
I'm using Postfix on Centos
Ok...and did you read/try what I first suggested?? Could you find anything like /var/spool/mail? Perhaps /var/mail/<username>, or /var/spool/mail/<username>??? Did you try to do a find in the /var directory for things with "mail" in them, or a users name?
 
Old 06-13-2013, 12:20 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,699

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
For that combo, see /var/spool/mail/<username>
 
Old 06-14-2013, 08:42 AM   #6
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
Yes there is a file in /var/mail/<username> but deleting it would delete all user's mails, I only want to delete mail of that user from Mail Delivery System
 
Old 06-14-2013, 09:38 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,224

Rep: Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969
Quote:
Originally Posted by umbloaded View Post
Yes there is a file in /var/mail/<username> but deleting it would delete all user's mails, I only want to delete mail of that user from Mail Delivery System
Right...so AGAIN, you would delete the ONE FILE, that matches the name of your user. That would then remove that ONE USERS email, which is what you asked about.
 
Old 06-15-2013, 12:36 AM   #8
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
No, I didn't wanto to mean to remove ALL user's email but only emails that came from Mail Delivery System
 
Old 06-15-2013, 02:53 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,224

Rep: Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969Reputation: 5969
Quote:
Originally Posted by umbloaded View Post
No, I didn't wanto to mean to remove ALL user's email but only emails that came from Mail Delivery System
...which isn't exactly what you asked at first. Again, since you now know where the users emails are kept, and in which file, you would edit that file, and remove whatever you'd want to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
New User Not Receiving Emails ssnella Linux - Software 2 03-10-2012 03:34 PM
How to send automatic emails to user GATTACA Linux - Software 6 07-16-2007 11:34 PM
moving saved Evolution emails from user to user voly Linux - Software 1 01-25-2006 06:13 AM
checking user emails DJOtaku Linux - General 3 05-09-2005 05:48 PM
Script to remove old emails in a user's mailbox ganninu Programming 7 08-05-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration