"Unknown" Reason in Message Quarantine Report

Report bugs and workarounds
b19wll
Posts: 58
Joined: 22 Nov 2012 09:55

Re: "Unknown" Reason in Message Quarantine Report

Post by b19wll »

No reduction in the number of "Unkowns" :(
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: "Unknown" Reason in Message Quarantine Report

Post by shawniverson »

Want to help me test an enhancement to quarantine_report.php?

May clear up your issue if it works.
b19wll
Posts: 58
Joined: 22 Nov 2012 09:55

Re: "Unknown" Reason in Message Quarantine Report

Post by b19wll »

yes :)

lets test away
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: "Unknown" Reason in Message Quarantine Report

Post by shawniverson »

I'll get a copy of the quarantine_report.php file ready for you to try with instructions.
b19wll
Posts: 58
Joined: 22 Nov 2012 09:55

Re: "Unknown" Reason in Message Quarantine Report

Post by b19wll »

ok, standing by :)
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: "Unknown" Reason in Message Quarantine Report

Post by shawniverson »

Been away for a few days....back to working on this :D
b19wll
Posts: 58
Joined: 22 Nov 2012 09:55

Re: "Unknown" Reason in Message Quarantine Report

Post by b19wll »

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

Re: "Unknown" Reason in Message Quarantine Report

Post by shawniverson »

Field test instructions:

Code: Select all

cd ~
sudo mv /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php.orig
wget https://dl.efa-project.org/build/3.0.1.0-devel/quarantine_report.php.tar.gz
tar xzvf quarantine_report.php.tar.gz
sudo mv quarantine_report.php /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php
sudo chmod 755 /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php
Run this as root or edit conf.php and add manually

Code: Select all

echo "" >> /var/www/html/mailscanner/conf.php
echo "// Hide Unknown and Clean Emails" >> /var/www/html/mailscanner/conf.php
echo 'define("HIDE_CLEAN_UNKNOWN", true);' >> /var/www/html/mailscanner/conf.php
User avatar
crazy4leet
Posts: 9
Joined: 23 Oct 2015 10:20

Re: "Unknown" Reason in Message Quarantine Report

Post by crazy4leet »

This worked perfectly for me.

Restarted the MailScanner service and ran the report cron job - now all the unknowns are hidden.
shawniverson wrote:It appears this is normal...believe it or not, when non-spam is included in the quarantine report.

Recommended fix. You probably don't want non-spam in your reports anyway...

To exclude non-spam from the quarantine report:

/var/www/html/mailscanner/conf.php

Code: Select all

// Hide Non Spam from quarantine reports
define('HIDE_NON_SPAM', true);
shareonline
Posts: 10
Joined: 19 Nov 2016 18:35

Re: "Unknown" Reason in Message Quarantine Report

Post by shareonline »

Hi
On all my reports (standard out of the box settings) the reason on all mails are always UNKNOWN. It seems there is an error some where..

When i define Hide_Unknown true, no reports go out.. When everything is set to unknown the report settings is pretty useless because it will be all or nothing :)

Any help would be appriciated..
User avatar
shawniverson
Posts: 3649
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: "Unknown" Reason in Message Quarantine Report

Post by shawniverson »

shareonline wrote:Hi
On all my reports (standard out of the box settings) the reason on all mails are always UNKNOWN. It seems there is an error some where..

When i define Hide_Unknown true, no reports go out.. When everything is set to unknown the report settings is pretty useless because it will be all or nothing :)

Any help would be appriciated..
Are you on 3.0.1.5?
Post Reply