How to release messages from quarantine marked with "Other Infection" YES

Questions and answers about how to do stuff
Post Reply
lev
Posts: 7
Joined: 06 Mar 2016 00:36

How to release messages from quarantine marked with "Other Infection" YES

Post by lev »

Hi,

While trying to allow certain file extensions like xxx.avis.png that is blocked as bad content due to scanner setting, I modified /etc/MailScanner/filename.rules.conf.

Then all messages started to be quarantined, and marked with
Other Infection = Y
Report: MailScanner: Message attempted to kill MailScanner

I removed the modification to filename.rules.conf, and returned back to normal mail flow.

However, There are around 50 email quarantined and I cannot be able to release them by selecting release checkbox and submitting on the quarantine detail page..

My mailscanner.conf settings has following
Quarantine Whole Message = yes
Quarantine Whole Messages As Queue Files = no

As I understand because mesages are not quarantined as Queue Files, I cannot release them.
Is there a way to release there type of messages..

Thanks,

levent
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: How to release messages from quarantine marked with "Other Infection" YES

Post by shawniverson »

I have tackled this issue before by feeding the emails to the sendmail script and letting it queue them back into postfix.
lev
Posts: 7
Joined: 06 Mar 2016 00:36

Re: How to release messages from quarantine marked with "Other Infection" YES

Post by lev »

Thanks for the idea.. (because there are not so many messages), as a workaround I downloaded the quarantined message files via webmin file manager ; renamed to xxx.eml and emailed as an attachment.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: How to release messages from quarantine marked with "Other Infection" YES

Post by pdwalker »

shawniverson wrote: 15 Nov 2017 23:35 I have tackled this issue before by feeding the emails to the sendmail script and letting it queue them back into postfix.
Instructions? This would be a useful thing to know.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: How to release messages from quarantine marked with "Other Infection" YES

Post by shawniverson »

The basic idea is to do this:

Code: Select all

sudo /usr/sbin/sendmail.postfix -t < /var/spool/MailScanner/quarantine/<somedate>/<somefolder>/<somemsgid>
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: How to release messages from quarantine marked with "Other Infection" YES

Post by pdwalker »

This saved my bacon today. This tip should be in the wiki.
Post Reply