Installing Plesk 17 on Ubuntu 16.04
Read More
Installing Plesk 17 on Ubuntu 16.04
Read More
This simple php scrips can be run by cron job once an hour to let you know if the qmail queue is getting full.
$x = shell_exec('/usr/local/psa/admin/sbin/mailqueuemng -s');
$y = explode("\n", $x);
foreach($y as $z){
$a = explode(":", $z);
$out[trim($a[0])] = trim($a[1]);
}
if ($out['Messages total'] > 100) {
mail('[email protected]', 'Email Problems', print_r($out, true));
}
All one have to do in Plesk to fix this problem is to add to the open_basedir “:/dev/urandom“. So it looks like this {WEBSPACEROOT}{/}{:}{TMP}{/}:/dev/urandom
This script go over all Qmail mailboxes and removes oldest emails from accounts that are over 250MB in size and removes 5MB worth of emails.
Works ok PLESK systems on CentOS.
Read More
To find password for a single email account
root@server[#] /usr/local/psa/bin/mail –info [email protected]
To find all email account passwords for a single domain
root@server[#] /usr/local/psa/admin/bin/mail_auth_view | grep domain.com
The below command will list passwords for all email accounts in plesk.
root@server[#] /usr/local/psa/admin/bin/mail_auth_view
On older PLESK try
# /usr/local/psa/admin/bin/mail_auth_view