Automated Quarantine reports have stopped sending

Questions and answers about how to do stuff
Post Reply
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

Automated Quarantine reports have stopped sending

Post 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
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Automated Quarantine reports have stopped sending

Post 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.
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

Re: Automated Quarantine reports have stopped sending

Post by mikemachin »

I tried this but then get similar errors relating to line 219, 221 and 222
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Automated Quarantine reports have stopped sending

Post by shawniverson »

Please update to 3.0.0.6 to resolve this issue completely.
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

Re: Automated Quarantine reports have stopped sending

Post 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?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Automated Quarantine reports have stopped sending

Post 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
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

Re: Automated Quarantine reports have stopped sending

Post by mikemachin »

Many thanks - this worked a treat
b19wll
Posts: 58
Joined: 22 Nov 2012 09:55

Re: Automated Quarantine reports have stopped sending

Post 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
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Automated Quarantine reports have stopped sending

Post by shawniverson »

yep
b19wll
Posts: 58
Joined: 22 Nov 2012 09:55

Re: Automated Quarantine reports have stopped sending

Post by b19wll »

Perfect, that worked a treat

Many thanks
fjkaauw
Posts: 7
Joined: 14 Dec 2014 19:25

Re: Automated Quarantine reports have stopped sending

Post 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?
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Automated Quarantine reports have stopped sending

Post 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....
fjkaauw
Posts: 7
Joined: 14 Dec 2014 19:25

Re: Automated Quarantine reports have stopped sending

Post 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.
Post Reply