Page 1 of 1
Automated Quarantine reports have stopped sending
Posted: 23 Sep 2014 13:32
by mikemachin
upon running the php job i see
PHP Fatal error: Call to undefined function dbg() in /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php on line 197
Fatal error: Call to undefined function dbg() in /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php on line
Any ideas on this as nothing has been changed at our end?
Thanks
MM
Re: Automated Quarantine reports have stopped sending
Posted: 23 Sep 2014 21:55
by shawniverson
Please try removing or commenting out the dbg() function on line 197. This is a known bug. Planning on fixing it and releasing a small update to resolve for everybody.
Re: Automated Quarantine reports have stopped sending
Posted: 29 Sep 2014 08:13
by mikemachin
I tried this but then get similar errors relating to line 219, 221 and 222
Re: Automated Quarantine reports have stopped sending
Posted: 29 Sep 2014 20:05
by shawniverson
Please update to 3.0.0.6 to resolve this issue completely.
Re: Automated Quarantine reports have stopped sending
Posted: 30 Sep 2014 09:30
by mikemachin
I've done that and now the quarantine report is now working but it is showing all emails received rather than those that have been marked as spam!
A bit more digging and it appears in the php is marks anything not catagorized as UNKNOWN (i.e anything that has been delivered already to the user). Is there a way to stop this appearing on the spam report?
Re: Automated Quarantine reports have stopped sending
Posted: 30 Sep 2014 10:06
by shawniverson
Looks like we have a regression...reopening issue.
https://github.com/E-F-A/v3/issues/30
Run the following (copy and paste) to fix manually.
Code: Select all
sudo sed -i "/^ ((to_address=%s) OR (to_domain=%s))$/ a\AND\n a.isspam>0" /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php
Re: Automated Quarantine reports have stopped sending
Posted: 30 Sep 2014 10:26
by mikemachin
Many thanks - this worked a treat
Re: Automated Quarantine reports have stopped sending
Posted: 09 Dec 2014 11:28
by b19wll
This started happening to me today after I ran an update yesterday, am I safe to run the above code?
I'm running EFA-3.0.0.6, by the way
Re: Automated Quarantine reports have stopped sending
Posted: 10 Dec 2014 01:32
by shawniverson
yep
Re: Automated Quarantine reports have stopped sending
Posted: 11 Dec 2014 17:26
by b19wll
Perfect, that worked a treat
Many thanks
Re: Automated Quarantine reports have stopped sending
Posted: 14 Dec 2014 19:52
by fjkaauw
I installed the appliance on ESX.
Created a view accounts and send some emails.
Everything seems to be working except 2 things:
When i run the command /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php i always get the messages that there are 0 spam messages. so there is no quarantine report send. But, there are spam messages? why will the script don't recognized the spam messages as spam?
=== Generating report for Fred type=U
==== Recipient e-mail address is
Fred@mydomain.nl
==== Building list for Fred
==== Found 0 quarantined e-mails
the mail list in EFY shows:
14/12/14 20:25:20
efa-project.org@luvo.eu..
fred@mydomain.nl Welcome to "efa-project.org" 3Kb -0.01 Clean
[ ] 14/12/14 20:03:40
securitycheck@emailsecuritycheck.net fred@mydomain.nl Test mail 4/7 (ID=bYF!JqetYO9o7HvFGhWvow==) 2.1Kb -0.03 Clean
[ ] 14/12/14 20:03:40
securitycheck@emailsecuritycheck.net fred@mydomain.nl Test mail 5/7 (ID=bYF!JqetYO9o7HvFGhWvow==) 2.1Kb -0.03 Clean
[ ] 14/12/14 20:03:40
securitycheck@emailsecuritycheck.net fred@mydomain.nl Test mail 3/7 (ID=bYF!JqetYO9o7HvFGhWvow==) 1.8Kb 1001.95 Spam
[ ] 14/12/14 20:03:40
securitycheck@emailsecuritycheck.net fred@mydomain.nl Test mail 7/7 (ID=bYF!JqetYO9o7HvFGhWvow==) 2.1Kb -0.03 Clean
[ ] 14/12/14 20:03:36
securitycheck@emailsecuritycheck.net fred@mydomain.nl Test mail 6/7 (ID=bYF!JqetYO9o7HvFGhWvow==) 2.1Kb -1.13 Clean
There is 1 spam message?
Further i cannot put anything in the personal white or blacklist.
Only the administrator can?
Re: Automated Quarantine reports have stopped sending
Posted: 17 Dec 2014 23:56
by shawniverson
Could it be that enough time hasn't passed? I think it needs to be at least past midnight before they start showing up in reports....
Re: Automated Quarantine reports have stopped sending
Posted: 18 Dec 2014 09:10
by fjkaauw
I received the reports now, i think the problem is that my username was not my email adres.
After u changed this it works.
I use 3 email aliases, it would be nice that the spam for these messages could be summarized in one report.
Now i get 3 reports.
thanks for the reply.