Page 1 of 1

Use of undefined constant QUARANTINE_MAIL_PORT

Posted: 15 Jan 2017 16:09
by olobley
I'm hesitant to post this in the bugs forum, as the issue is likely between the screen and the chair :)
I installed EFA last night, and aside from a few glitches, have been most impressed with it so far.
I'm hitting an issue with the generation of quarantine reports...when I run the command:

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

It looks like it's running correctly, however for any users that an actual report is created for, it throws the following:

Use of undefined constant QUARANTINE_MAIL_PORT - assumed 'QUARANTINE_MAIL_PORT' in /usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php on line 498

If I go in and edit line 498 and change

$mail_param = array('host' => QUARANTINE_MAIL_HOST, 'port' => QUARANTINE_MAIL_PORT);

to

$mail_param = array('host' => QUARANTINE_MAIL_HOST, 'port' => 25);

The report runs correctly and get delivered to users. As noted above, my guess is I've set something up incorrectly somewhere, but can't for the life of me see it in the various admin console

EDIT: Pretty sure I'm running 3.0.1.7 (installed from the EFA OVF last night and ran the update a few times from the CLI - where do I check?)

Re: Use of undefined constant QUARANTINE_MAIL_PORT

Posted: 16 Jan 2017 16:07
by henk
Hi olobley,

Just take a look in the Bugs section. I just added a bug called : Upgrade 3.0.1.5 -> 3.0.1.7 Use of undefined constant SHOW_MORE_INFO_ON_REPORT_GRAPH

It's about missing defines. To solve it just follow the instructions.

It will also solve your bug, (so you can revert the code change you did)

To check your version:

Code: Select all

[root@sansspam sbin]# /usr/local/sbin/EFA-Update -check
[EFA] Getting latest version number from http://dl.efa-project.org
[EFA] You are already running version EFA-3.0.1.7, no update needed
[root@sansspam sbin]#
It would be nice to report Bugs in the Bug section :idea:

Re: Use of undefined constant QUARANTINE_MAIL_PORT

Posted: 17 Jan 2017 00:10
by shawniverson
Resolved in 3.0.1.8

Re: Use of undefined constant QUARANTINE_MAIL_PORT

Posted: 17 Jan 2017 02:48
by olobley
Many thanks, I made the update, reverted my change and the script executes without issue!