Page 1 of 1

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

Posted: 14 Nov 2017 14:03
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

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

Posted: 15 Nov 2017 23:35
by shawniverson
I have tackled this issue before by feeding the emails to the sendmail script and letting it queue them back into postfix.

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

Posted: 16 Nov 2017 19:19
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.

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

Posted: 18 Nov 2017 14:13
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.

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

Posted: 18 Nov 2017 14:20
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>

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

Posted: 12 Dec 2017 06:27
by pdwalker
This saved my bacon today. This tip should be in the wiki.