• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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