qmail with Plesk ceases to work after spam emails deleted from queue

Our server had been used by hackers to send spam emails.  Yesterday I used SSH to discover the files in /ver/qmail/queue, and delete them.   I also deleted a separate file that had been recently created called 'bouncer' in a spool directory.

Since my intervention, I cannot send emails out from the server.  What should I do?  I fear that my inexperience may make the matter worse!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yikes.  Manually removing email from the queue in Qmail is generally considered a big no-no as it currupts the queue.

Hmm, offhand, I can think of:

qmHandle - http://sourceforge.net/projects/qmhandle

This was really what you should have used to remove email from the queue.

Probably your best bet now would be to give John Simpson's queue fix script a go:


I haven't used this particular script before but I've used most of his other ones and have never had a problem with them.

Do you have a support contract for your Plesk install?  You could try contacting the company if all else fails.

billcawley1Author Commented:
Thanks - I have tried qfixq, and it did try to restore the emails, but I fear that I must have trodden very heavily, because it has not come back.

My service provider - 1&1 - provides a 're-imaging' service.  I intend to attempt to back up the server, 're-image' it, then restore my websites.   As yet this is a new server with four lightly used sites on it, so this may not be too painful.

At the moment I'm having trouble finding a suitable FTP program to use on the server to make the backup - there seems to be no option in Plesk itself.  
1. You can build a easy script using lftp. If you can`t do it please reply and i`ll post something small yet efficient here.
2. I warmly suggest to re-imagine your machine after it was compromised.
3. You can find Plesk backup info here: http://download1.swsoft.com/Plesk/Plesk8.0/Doc/plesk-8-backup-restore-users-guide.pdf or a commercial version here http://www.4psa.com/products/4psatbackup.php

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
billcawley1Author Commented:
I re-imagined the server.  I have since had further intruders, and am currently installing clamAV to try to deal with them.
After re-imaging update your packages using yum/apt/up2date. Additionally update your plesk version by going to Servers>Updater
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.