Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.