Morning all,
I did a quick search, but the last reference to QUARANTINE_REPORT_HOSTURL was back in 2012 and didn't really cover what I wanted to do.
I noticed in the daily quarantine report that the View link is an HTTP link. Given that I have an HTTPS certificate and like to use encryption where possible, I'd like to change this to an HTTPS URL.
A quick peruse of the report generation script (/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php) showed that it builds the URL by using the QUARANTINE_REPORT_HOSTURL variable.
Can anyone see a problem that I'm missing by updating the /var/www/html/mailscanner/conf.php to change the variable declaration from:
define('QUARANTINE_REPORT_HOSTURL', 'http://' . rtrim(gethostname()) . '/mailscanner');
to
define('QUARANTINE_REPORT_HOSTURL', 'https://' . rtrim(gethostname()) . '/mailscanner');
I assume this is the only change I need to make - any others that people can think of?