mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
117 stars 66 forks source link

MailWatch 1.2.10 not showing MailScanner or Postfix as running #1274

Closed jcrower closed 1 year ago

jcrower commented 1 year ago

Issue summary

Mailwatch reports MailScanner and Postfix not running

Steps to reproduce

  1. Log in to MailWatch interface

Expected result

MailScanner and Postfix status should show green Ok and number of processes.

Actual result

MailScanner and Postfix show red No

Troubleshooting steps

I ran the command ps ax | grep MailScanner | grep -v grep as per another thread here and it returns the MailScanner processes. I can also run this command as the apache user successfully.

Installation

Version and method

Server configuration

Skywalker-11 commented 1 year ago

Can you try updating to the current version? Since 1.2.10 where some fixes regarding the postfix status.

jcrower commented 1 year ago

Can't believe (well I can actually) what an idiot I am. I must have blindly copied a download link from somewhere and thought I was installing the latest version. Dangerous thing to do!

Anyway.... image

EDIT: I can run the postconf command manually, can't see any errors in any logs image

I had a look in the sfversion.php file and it appears this is what it tries to run (below is me running the command manually). I can't see any errors that might suggest php can't run exec(); which postconf /usr/sbin/postconf_ /usr/sbin/postconf -d | grep 'mail_version =' | cut -d' ' -f3 3.5.9

endelwar commented 1 year ago

I think that this error is related to this issue https://github.com/mailwatch/MailWatch/issues/1026#issuecomment-357818247

jcrower commented 1 year ago

Yep that's it! Thanks endelwar.