Page 1 of 1

Quarantine messages release

Posted: 22 Jul 2011, 12:31
by Daroch
Dear Chirpy and Webmasters:

First, greetings to all. :) We have a doubt and maybe you can help us.
We had a problem upgrading our WHM/Cpanel server, and for several hours, all messages were detected as false positive by ClamAV, MailScanner has put them in the quarantine folder.
(we worked with Exim + MailScanner + SpamAssassin + ClamAV+ WHM clamavconnector)
We have disabbled the WHM clamavconnector, and upgrade ClamAV and MailScanner, and ok, we think that the problem is solved.

Now we want to release the emails that we have in the quarantine folder (about 700 emails). MailScanner.conf was configured with the options:
Quarantine Whole Message = yes
Quarantine Messages As Queue Files Whole = no

We wanted to copy the messages from

Code: Select all

/var/spool/Mailscanner/<date>/<message-id>
to

Code: Select all

/var/spool/exim_incoming/input
, but does not work because it's have a different format.
Each message in quarantine is a folder with the name "message-id" with two files inside. one file "message" and one html file.

Is there any method or application that can be used to change the format to emails and release them?
We read in another post that in this case we can use:

Code: Select all

cat <message file> >> /home/username/mail/domain/user/inbox
but don´t work because there isn´t any "inbox" file in the user account mail directory, only the folders "new", "cur", "tmp"

Thank you all for your time and sorry for our English.
Daroch

Re: Quarantine messages release

Posted: 02 Aug 2011, 10:54
by Sarah
Unfortunately we're not aware of any way to do that on a server running exim, other than manually releasing the mails via MailWatch if you have that installed. I believe you can configure Mailwatch to release the emails directly rather than as an attachment. (See this post: viewtopic.php?f=23&t=4163&p=13786&hilit ... ine#p13786). Other than that you might search the MailScanner mailing list: http://news.gmane.org/gmane.mail.virus.mailscanner

Regards,
Sarah