Skip to main content

Custom Java location

By default, the application resolves the Java binary using the system PATH. The default configuration is defined in /opt/msh-pm/lib/defaults.cf:

#
# Default java binary location.
#
MSH_JAVA_BIN=java

To override the Java binary path, create the file /opt/msh-pm/etc/config.cf with the following content, replacing the path with your actual Java binary location:

MSH_JAVA_BIN=/custom/path/to/java

Then restart the services to apply the change:

sudo systemctl restart msh-pm-settings
sudo systemctl restart msh-pm-milter