Mail delete in Qmail: Difference between revisions
Appearance
No edit summary |
Flag as outdated (client review pass) |
||
| Line 1: | Line 1: | ||
{{Outdated|reason=Old Article / Architecture / Technology might not be relevant now May Use for Understand concepts|date=2026-07}} | |||
[[category:Qmail]] | [[category:Qmail]] | ||
Latest revision as of 15:59, 25 July 2026
This is an Old / Outdated Article, Please use this only as technical Reference
Reason: Old Article / Architecture / Technology might not be relevant now May Use for Understand concepts
Flagged: 2026-07
Objective[edit]
Sometimes we need to remove mail from mail box in Qmail for/till date. For example I have mail box containing 100G size.I want to remove all mails except leave last 10 days mails.
Just run a command with careful.
find /path/to/files* -mtime +5 -exec rm {} \;
find ------------> command
/path/to/files* -> path of your file
-mtime ---------> command
+5 -------------> leave 5 day mails from current date & remove rest of the mails
rm {} \; -------> files remove command.
Example
find /home/vmail/tetrain.com/subhash/Maildir/* -mtime +5 -exec rm {} \;
Or
find /home/vpopmail/domains/jbindia.co.in/harish.kumar/Maildir/* -mtime +5 -exec rm {} \;