Page 1 of 1

quarantine report not work

Posted: 24 May 2017 12:28
by sbergami
I installed EFA 3.0.2.3 on VMWARE that works excellently. Only I can not send quarantine reports to users. Users are load from the domain controller through ldap, all of them have triggered the flag for sending the report, but nobody receives it. If, as admin, I click on SEND NOW button I get the message "The quarantine report was successfully sent." but nothing is recived. If I click on SEND NOW button as user I recive message "An error occured while sending the quarantine report."
What could it be? Or Is there a log I can control to try to figure out what does not work?
Thank you

Re: quarantine report not work

Posted: 24 May 2017 13:24
by shawniverson
If you try running it from the shell, what do you see?

Code: Select all

sudo /usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quaraninte_report.php

Re: quarantine report not work

Posted: 24 May 2017 13:55
by sbergami
I don't have

/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_quaraninte_report.php

but there is

/usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quaraninte_report.php

run this one I read, for every users this warning message

=== Generating report for <user@remotedomain> type=U
==== Recipient e-mail address is <user@remotedomain>
==== Building list for <user@remotedomain>
==== Found 17 quarantined e-mails
PHP Notice: Use of undefined constant MAILWATCH_SMTP_HOSTNAME - assumed 'MAILWATCH_SMTP_HOSTNAME' in /var/www/html/mailscanner/functions.php on line 4459

Notice: Use of undefined constant MAILWATCH_SMTP_HOSTNAME - assumed 'MAILWATCH_SMTP_HOSTNAME' in /var/www/html/mailscanner/functions.php on line 4459
==== ERROR sending e-mail to user@remotedomain Failed to add recipient: <user@remotedomain> [SMTP: Invalid response code received from server (code: 450, response: 4.1.8 <postmaster@acr.local>: Sender address rejected: Domain not found)]
==== Building list for <user@localdomain>
==== Found 0 quarantined e-mails
==== Building list for tutti@acr.local
==== Found 0 quarantined e-mails
==== Building list for <user@remotedomain>
==== Found 2 quarantined e-mails
PHP Notice: Use of undefined constant MAILWATCH_SMTP_HOSTNAME - assumed 'MAILWATCH_SMTP_HOSTNAME' in /var/www/html/mailscanner/functions.php on line 4459

Re: quarantine report not work

Posted: 24 May 2017 14:26
by shawniverson
PHP Notice is benign.

The problem is your remote SMTP server is rejecting the message on the basis that the sender address is an unknown domain. Might be as simple as a DNS or hosts entry on your destination server.

"postmaster@acr.local"

You can set this sender address as well in /var/www/html/mailscanner/conf.php

Re: quarantine report not work

Posted: 24 May 2017 16:37
by sbergami
Yes, I changed sender email from localdomain to remotedomain in conf.php and now works!

Thank you very much for your help. :)
Bye

Re: quarantine report not work

Posted: 12 Jun 2017 16:09
by nanolima
I have a same problem, but I don't take error when I execute the script /usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quarantine_report.php. The scritp output show me that no have e-mails on quarentine for the users, it's this not true! Many E-mails are let on quarentine and need that I release it manualy via mailwatch. What can to be happening? The Send Report stopped work after the update to version 3.0.2.3.

Re: quarantine report not work

Posted: 12 Jun 2017 21:19
by shawniverson
Are your users defined using email addresses and not usernames?

Re: quarantine report not work

Posted: 13 Jun 2017 15:52
by nanolima
My users use the username only to log in to Mailwatch and the E-mail are specified in the Quarantine Report Recipient. After upgrading to the lastest version, the Quarantine Report submission topped.

Re: quarantine report not work

Posted: 13 Jun 2017 16:43
by shawniverson
Mailwatch requires email addresses for usernames now for the quarantine reports to function properly.

"For all users other than Administrator you must use an email address for the username"

Re: quarantine report not work

Posted: 13 Jun 2017 18:52
by nanolima
Bull's Eye!!!
The report was sent, but the error below is now happening.
This may be a misconfiguration in the SMTP host name. How do I configure this constant?

[root@efa01 .razor]# /usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quarantine_report.php

=== Generating report for johndoe@mydomain.com type=U
==== Recipient e-mail address is johndoe@mydomain.com
==== Building list for johndoe@mydomain.com
==== Found 15 quarantined e-mails
PHP Notice: Use of undefined constant MAILWATCH_SMTP_HOSTNAME - assumed 'MAILWATCH_SMTP_HOSTNAME' in /var/www/html/mailscanner/functions.php on line 4459

Notice: Use of undefined constant MAILWATCH_SMTP_HOSTNAME - assumed 'MAILWATCH_SMTP_HOSTNAME' in /var/www/html/mailscanner/functions.php on line 4459

Re: quarantine report not work

Posted: 13 Jun 2017 19:10
by shawniverson
Small bug, you can set that value if you want, but not necessary. Will be fixed in next update.

Re: quarantine report not work

Posted: 19 Jun 2017 16:40
by nanolima
Great! Solved! Thanks!