7.2. Deployment

7.2.1. JAVA_HOME environment variable not found

When you receive this error while installing:

* Checking permissions...done.

>> Error: JAVA_HOME not found in your environment (user root).
>> Please, set the JAVA_HOME variable in your environment to match the
>> location of the Java Virtual Machine you want to use.

>> If you are using sudo, run with -E option.

You need to set properly JAVA_HOME environment variable, see how to set JAVA_HOME article.

7.2.2. Skip Automatic Milter Install

7.2.2.1. Zimbra

When install script have problems with updating Zimbra configuration, please follow these steps.

Run an installation script with --skip-milter-install parameter:

msh-ds-milter.bin --install --skip-milter-install

This will prevent from updating Zimbra milter configuration.

Now you need to update Zimbra configuration manually. Replace [HOSTNAME] variable with your real host name. If you have installed Zimbra in not default directory change /opt/zimbra/... to your install path:

su zimbra -c '/opt/zimbra/bin/zmprov ms [HOSTNAME] zimbraMtaSmtpdMilters "inet:localhost:7076"'

To apply changes restart mail server:

su zimbra -c '/opt/zimbra/bin/zmmtactl restart'

7.2.2.2. Postfix

When there’re problems with updating Postfix configuration, please follow these steps.

Run an installation script with --skip-milter-install parameter:

msh-ds-milter.bin --install --skip-milter-install

This will prevent from updating Postfix milter configuration.

Now you need to update Postfix configuration manually:

/usr/sbin/postconf -e "inet:localhost:7076"
/usr/sbin/postconf -e "milter_default_action=accept"

To apply changes restart mail server:

/etc/init.d/postfix reload

7.2.2.3. Sendmail

When there’re problems with updating Sendmail configuration, please follow these steps.

Run an installation script with --skip-milter-install parameter:

msh-ds-milter.bin --install --skip-milter-install

This will prevent from updating Sendmail milter configuration.

Now you need to update Sendmail configuration manually, edit /etc/mail/sendmail.mc configuration file and add these lines:

INPUT_MAIL_FILTER(`MSH-Disclaimer-Signatures', `S=inet:7076@localhost')
define(`confINPUT_MAIL_FILTERS', `MSH-Disclaimer-Signatures')

Save changes and restart mail server:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart