Use of undefined constant QUARANTINE_MAIL_PORT

General eFa discussion
Post Reply
olobley
Posts: 8
Joined: 15 Jan 2017 16:02

Use of undefined constant QUARANTINE_MAIL_PORT

Post 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?)
henk
Posts: 518
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Use of undefined constant QUARANTINE_MAIL_PORT

Post 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:
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Use of undefined constant QUARANTINE_MAIL_PORT

Post by shawniverson »

Resolved in 3.0.1.8
olobley
Posts: 8
Joined: 15 Jan 2017 16:02

Re: Use of undefined constant QUARANTINE_MAIL_PORT

Post by olobley »

Many thanks, I made the update, reverted my change and the script executes without issue!
Post Reply