quarantine report not work

Report bugs and workarounds
Post Reply
sbergami
Posts: 29
Joined: 21 Dec 2016 17:08

quarantine report not work

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

Re: quarantine report not work

Post 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
sbergami
Posts: 29
Joined: 21 Dec 2016 17:08

Re: quarantine report not work

Post 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
Last edited by sbergami on 24 May 2017 15:24, edited 1 time in total.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: quarantine report not work

Post 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
sbergami
Posts: 29
Joined: 21 Dec 2016 17:08

Re: quarantine report not work

Post 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
nanolima
Posts: 5
Joined: 12 Jun 2017 15:47

Re: quarantine report not work

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

Re: quarantine report not work

Post by shawniverson »

Are your users defined using email addresses and not usernames?
nanolima
Posts: 5
Joined: 12 Jun 2017 15:47

Re: quarantine report not work

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

Re: quarantine report not work

Post 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"
nanolima
Posts: 5
Joined: 12 Jun 2017 15:47

Re: quarantine report not work

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

Re: quarantine report not work

Post by shawniverson »

Small bug, you can set that value if you want, but not necessary. Will be fixed in next update.
nanolima
Posts: 5
Joined: 12 Jun 2017 15:47

Re: quarantine report not work

Post by nanolima »

Great! Solved! Thanks!
Post Reply