Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Inviting everyone who uses WordPress management tools in Plesk The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test. To participate, please use this link .
Your experience will help shape product decisions and ensure the tools better support real-world use cases.
#!/bin/bash
# Specify the domain name used for the email address
DOMAIN="example.com"
# Specify the local part of the email address
MAILBOX="mailbox"
# Find only files in the new directory and delete them
find /var/qmail/mailnames/$DOMAIN/$MAILBOX/Maildir/new/ -type f -delete
#Enable this string to delete files in the cur directory too
find /var/qmail/mailnames/$DOMAIN/$MAILBOX/Maildir/cur/ -type f -delete
#Alternative way if the above isn't performing well, however as this is using "rm -rf" I think its a bit dangerous
#find /var/qmail/mailnames/$DOMAIN/$MAILBOX/Maildir/new/ -type f -exec rm -rf {} \;
You can add this into your server and then create a cronjob to run it at the times you require.
You can delete the mailbox (and thus all the emails inside it) and recreate it via the command line - this may be safer but depending on the size of the mailbox may be rather slow.
Deleting the mailbox this way does not change the password for the mailbox, as it continues to exist with the password table (tested on my Plesk 11.5 server)