Page 2 of 2

Re: "Unknown" Reason in Message Quarantine Report

Posted: 23 Mar 2016 12:50
by b19wll
No reduction in the number of "Unkowns" :(

Re: "Unknown" Reason in Message Quarantine Report

Posted: 23 Mar 2016 18:24
by shawniverson
Want to help me test an enhancement to quarantine_report.php?

May clear up your issue if it works.

Re: "Unknown" Reason in Message Quarantine Report

Posted: 23 Mar 2016 22:41
by b19wll
yes :)

lets test away

Re: "Unknown" Reason in Message Quarantine Report

Posted: 24 Mar 2016 17:07
by shawniverson
I'll get a copy of the quarantine_report.php file ready for you to try with instructions.

Re: "Unknown" Reason in Message Quarantine Report

Posted: 25 Mar 2016 19:29
by b19wll
ok, standing by :)

Re: "Unknown" Reason in Message Quarantine Report

Posted: 28 Mar 2016 21:16
by shawniverson
Been away for a few days....back to working on this :D

Re: "Unknown" Reason in Message Quarantine Report

Posted: 29 Mar 2016 09:05
by b19wll
Cheers

Re: "Unknown" Reason in Message Quarantine Report

Posted: 29 Mar 2016 22:49
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

Re: "Unknown" Reason in Message Quarantine Report

Posted: 07 Apr 2016 04:24
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);

Re: "Unknown" Reason in Message Quarantine Report

Posted: 01 Dec 2016 09:02
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..

Re: "Unknown" Reason in Message Quarantine Report

Posted: 10 Dec 2016 17:43
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?