MailScanner blank details Page

Report bugs and workarounds
Post Reply
ZimboKraut
Posts: 15
Joined: 19 Jun 2015 16:17

MailScanner blank details Page

Post by ZimboKraut »

Hi everyone,
I am wondering, and maybe just don't see the woods for the trees....
I am currently running 3 EFA appliances (have been for many years :-) ), and since my last update, whenever I try to go into the details of an email, I just get a blank page (on Firefox) and IE, it tells me "Webpage could not be displayed".
the main page is working fine, just the details from an email don't seem to work.
I have looked, but I suspect I am using the wrong "key-words" in my searches :D :D

Any ideas, thoughts or solutions are most welcome :D

Thnx
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: MailScanner blank details Page

Post by henk »

Hi ZimboKraut,

ideas? yes, thoughts? Yes again, solutions? Not yet due the lack of info :doh:
since my last update
What version are you on? Did you check the upgrade log in /var/log/EFA?

As the details page is blank, can you check the logfiles in /var/log/httpd/* and share the messages ( warnings|errors)?
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
ZimboKraut
Posts: 15
Joined: 19 Jun 2015 16:17

Re: MailScanner blank details Page

Post by ZimboKraut »

Hi there Henk,

version is
[root@mail-in ~]# EFA-Update -check
[EFA] Getting latest version number from http://dl.efa-project.org
[EFA] You are already running version EFA-3.0.2.6, no update needed

in regards to the Logs, I get the following:
ssl_error_log:
[Thu Mar 08 14:25:17 2018] [error] [client 10.210.10.165] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 102400 bytes) in /var/www/html/mailscanner/lib/htmlpurifier/HTMLPurifier.standalone.php on line 15238, referer: https://mail-in.uk.fowm.org/mailscanner/status.php

ssl_request_log:
[08/Mar/2018:14:25:17 +0100] 10.210.10.165 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /mailscanner/detail.php?token=46a9c28309913f9f54fce27c76f09a8f81e7bb87b2ff371c0bb3e360677d5cbb&id=F2DEA182399.A95A8 HTTP/1.1" -

ssl_access_log:
10.210.10.165 - - [08/Mar/2018:14:25:17 +0100] "GET /mailscanner/detail.php?token=46a9c28309913f9f54fce27c76f09a8f81e7bb87b2ff371c0bb3e360677d5cbb&id=F2DEA182399.A95A8 HTTP/1.1" 500 -

I have tried upping the memory in the php.ini to 512M (I know, bad practise, but it was worth a shot :-) ) but unfortunately I still get the same result...
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: MailScanner blank details Page

Post by henk »

No issues in upgrade log in /var/log/EFA logs?
512M is quite a lot. Default in /etc/php.ini

Code: Select all

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M
Did you restart httpd ?

Code: Select all

service httpd restart
Also check memory

Code: Select all

free
( Yes I know I use 4GB :mrgreen: )

Code: Select all

 total       used       free     shared    buffers     cached
Mem:       4056440    3305248     751192        564     238944    1308448
-/+ buffers/cache:    1757856    2298584
Swap:      4194300          0    4194300
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
ZimboKraut
Posts: 15
Joined: 19 Jun 2015 16:17

Re: MailScanner blank details Page

Post by ZimboKraut »

yeah, I know, but I thought I'd give it a try
I have reduced the mem back down to 256MB

Code: Select all

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 256M
I have also restarted httpd, I even rebooted the VM (running on KVM)

Code: Select all

service httpd restart
as well as mailscanner

Code: Select all

service mailscanner restart
everything in the update logs is clean, no errors besides the usual culprits :D

Code: Select all

*** ERROR/WARNING SUMMARY ***
Table Index: MySQL version unsupported for index `subject_idx` on table `maillog`, upgrade to version >= 50604 (you have version 50505)
conf.php: obsolete configuration entry "TTF_DIR" still present
conf.php: optional configuration entry "RPC_PORT" is missing, needed if RPC_ONLY mode is enabled
conf.php: optional configuration entry "RPC_SSL" is missing, needed if RPC_ONLY mode is enabled
conf.php: optional configuration entry "RPC_REMOTE_SERVER" is missing, needed to show number of mails in postfix queues on remote server (RPC)
conf.php: optional configuration entry "VIRUS_REGEX" is missing, needed in distributed setup
conf.php: optional configuration entry "LDAP_BIND_PREFIX" is missing, needed when using LDAP authentication
conf.php: optional configuration entry "LDAP_BIND_SUFFIX" is missing, needed when using LDAP authentication
conf.php: optional configuration entry "EXIM_QUEUE_IN" is missing, needed only if using Exim as MTA
conf.php: optional configuration entry "EXIM_QUEUE_OUT" is missing, needed only if using Exim as MTA
conf.php: optional configuration entry "PWD_RESET_FROM_NAME" is missing, needed if Password Reset feature is enabled
conf.php: optional configuration entry "PWD_RESET_FROM_ADDRESS" is missing, needed if Password Reset feature is enabled
conf.php: optional configuration entry "MAIL_SENDER" is missing, needed if you use Exim or Sendmail Queue
conf.php: optional configuration entry "SESSION_NAME" is missing, needed if experiencing session conflicts
conf.php: optional configuration entry "SENDMAIL_QUEUE_IN" is missing, needed only if using Sendmail as MTA
conf.php: optional configuration entry "SENDMAIL_QUEUE_OUT" is missing, needed only if using Sendmail as MTA
conf.php: optional configuration entry "USER_SELECTABLE_LANG" is missing, comma separated list of codes for languages the users can use eg. "de,en,fr,it,nl,pt_br"
conf.php: optional configuration entry "MAILWATCH_SMTP_HOSTNAME" is missing, needed only if you use a remote SMTP server to send MailWatch emails
conf.php: optional configuration entry "SESSION_TIMEOUT" is missing, needed if you want to override the default session timeout
conf.php: optional configuration entry "ALLOW_NO_USER_DOMAIN" is missing, allow usernames not in mail format for domain admins and regular users
conf.php: optional configuration entry "ENABLE_SUPER_DOMAIN_ADMINS" is missing, allows domain admins to change domain admins from the same domain

(wanted to post it, but it's too long :D

I have also upped the VMs memory from 4GB to 6GB without any result.....

Code: Select all

             total       used       free     shared    buffers     cached
Mem:       5992980    2104048    3888932       4176      31148     764884
-/+ buffers/cache:    1308016    4684964
Swap:            0          0          0
I just hope that I am not just being a "numpty" :D
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: MailScanner blank details Page

Post by henk »

Can you check and increase to 256M?
in

Code: Select all

/var/www/html/mailscanner/conf.php

Code: Select all

// PHP memory limit when viewing details and attachments of messages
// "128M" should be fine in most cases, but you may need to increase it if
// you're having problems viewing the details of large messages.
define('MEMORY_LIMIT', '128M');
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
ZimboKraut
Posts: 15
Joined: 19 Jun 2015 16:17

Re: MailScanner blank details Page

Post by ZimboKraut »

Hi there,
sorry for the delay, work is screaming :D

I have checked, but it was set already to 256M (without my doing), so the setting was pulled from the php.ini
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: MailScanner blank details Page

Post by henk »

Yeah I know, work/wife/kids, all at the same time :shifty:
As it happens since your last update, the only thing I can think off is to compare the /var/www/html/mailscanner/conf.php and the /var/www/html/mailscanner/conf.php.example. My first step is always the upgrade log, but you already checked it. :doh:
The error message is still the same?
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Post Reply