• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

How do you truncate the Greylist SQLite database on a mail server?

eugenevdm

Regular Pleskian
Our mail server's performance has deteriorated very heavily in the last two weeks. I've turned off every single bit of spam protection except Greylisting and it's still slow. Upon delving in the greylisting folder I notice the greylisting data is 2.5GB big.

root@cm:/var/lib/plesk/mail/greylist# ls -lah
total 2.5G
drwxr-xr-x 2 root root 4.0K 2012-03-17 16:40 .
drwxr-xr-x 5 root root 4.0K 2009-12-03 07:36 ..
-rw-r--r-- 1 root root 2.5G 2012-03-17 16:40 data.db
-rw-r--r-- 1 root root 76K 2012-03-16 13:53 settings.db

Could this be a problem? How do you truncate it? I don't mind starting from scratch because it's would be better than multiple phone calls from some of the 12 000 mail users on the server.
 
cp -p /var/lib/plesk/mail/greylist/data.db /var/lib/plesk/mail/greylist/data.db.backup
sqlite3 /var/lib/plesk/mail/greylist/data.db
sqlite> delete from data;

Check 'man sqlite3'
 
Thanks a lot. I like the "-p". Incidentally our mail server is still performing poorly. I guess there are just too many e-mail accounts on it and Plesk / Postfix is the wrong platform for high volumes.
 
Back
Top