How to Automatically Empty Trash Folder for Mails
The deleted items are moved to trash folders, but they are not permanently deleted until the trash folders are emptied. However, the contents of these folders are consumed a large amount of space on your email server storage quota. You can set automatic removal of this folders from WHM.
1) Login to WHM as a root user.
2) Go to “Service Configuration”.
3) Select “Mailserver Configuration”.
4) Enable the option “Auto Expunge Trash”.
You can also choose how long you want deleted email to remain on the server if you want to automatically empty the trash folders. This can be done by using the option “Trash Expire Time”
5) Click the button “Save and exit”.
We can also set this via shell if this is a cPanel server with EXIM as MTA.
1) Open file /usr/lib/courier-imap/etc/imapd
# vi /usr/lib/courier-imap/etc/imapd
2) Set the parameter “IMAP_EMPTYTRASH” as:
IMAP_EMPTYTRASH=Trash:7
This would delete messages from the trash folder permanently after 7 days.
Most Popular Articles
Tips to Block Email Spam with Postfix SMTP Server
Tips to Block Email Spam with Postfix SMTP Server The Postfix is a Mail Transfer Agent (MTA),...
Processing Email With Procmail
Processing Email With Procmail Procmail is one of the best mail processing utility, it provides...
Types of Email Marketing
Types of Email Marketing Email marketing is good for business for promoting your website by...
LMTP ( Local Mail Transfer Protocol ) in cPanel
LMTP ( Local Mail Transfer Protocol ) in cPanel The Local Mail Transfer Protocol (LMTP) is a...
MailChannels common mail bounce back errors
MailChannels common mail bounce back errors MailChannels is a privately held anti-spam...