8.8.12 Proxy+MTA install - proxy and mta won't start, no config and wrong paths
Posted: Wed Jun 26, 2019 5:42 am
I just tried doing a new install of 8.8.12 on Ubuntu 16.04, with MTA, SNMP, MEMCACHED and PROXY, but proxy and mta won't start because the folders / configs don't exist.
Starting proxy...failed. /opt/zimbra/conf/nginx.conf is missing.
And in zimbra.log...
fatal: chdir(/opt/zimbra/postfix/sbin): No such file or directory
I did the install a week or two ago in a lab setup and it worked perfectly. Can't figure out what's different here. I followed the guides exactly as I did before.
I even tried doing install.sh -s, and removing/re-installing to see if the install buggered up, but get the same result.
When I do a 'which postfix' it shows me the correct path (same as in my lab) '/opt/zimbra/bin/postfix', but it appears that some where the configs are pointing to the old locations.
All the older installs have symlinks to the /opt/zimbra/postfix-<version> location, but that doesn't exist in my lab env, so I'm assuming that's been changed.
I have 4 more proxies to install and don't want to just copy things from my lab if it's something that actually needs to be fixed.
[EDIT]
I figured out the nginx.conf issue, so that's resolved (had to remove an old ProxyLookupTarget https://wiki.zimbra.com/wiki/Nginx_fails_to_start). But I'm still not sure what to do about postfix.
[EDIT2]
I've narrowed it down to /opt/zimbra/common/conf/main.cf
...
command_directory = /opt/zimbra/postfix/sbin
daemon_directory = /opt/zimbra/postfix/libexec
...
I tried manually changing them but the file gets overwritten when I restart the service (zmmtactl restart). Where do I go to change these permanently?
[EDIT3]
Getting closer, I've found the following in Global Config
...
zimbraMtaCommandDirectory: /opt/zimbra/postfix/sbin
zimbraMtaDaemonDirectory: /opt/zimbra/postfix/libexec
zimbraMtaMailqPath: /opt/zimbra/postfix/sbin/mailq
zimbraMtaManpageDirectory: /opt/zimbra/postfix/man
zimbraMtaNewaliasesPath: /opt/zimbra/postfix/sbin/newaliases
zimbraMtaSendmailPath: /opt/zimbra/postfix/sbin/sendmail
...
After changing these I can now get the new install to work. Looks like my Global Config was still holding values from the old 8.7.5 versions, having been upgraded to 8.8.12 recently.
I was going to delete the post, but maybe this will help someone else in a similar situation.
Starting proxy...failed. /opt/zimbra/conf/nginx.conf is missing.
And in zimbra.log...
fatal: chdir(/opt/zimbra/postfix/sbin): No such file or directory
I did the install a week or two ago in a lab setup and it worked perfectly. Can't figure out what's different here. I followed the guides exactly as I did before.
I even tried doing install.sh -s, and removing/re-installing to see if the install buggered up, but get the same result.
When I do a 'which postfix' it shows me the correct path (same as in my lab) '/opt/zimbra/bin/postfix', but it appears that some where the configs are pointing to the old locations.
All the older installs have symlinks to the /opt/zimbra/postfix-<version> location, but that doesn't exist in my lab env, so I'm assuming that's been changed.
I have 4 more proxies to install and don't want to just copy things from my lab if it's something that actually needs to be fixed.
[EDIT]
I figured out the nginx.conf issue, so that's resolved (had to remove an old ProxyLookupTarget https://wiki.zimbra.com/wiki/Nginx_fails_to_start). But I'm still not sure what to do about postfix.
[EDIT2]
I've narrowed it down to /opt/zimbra/common/conf/main.cf
...
command_directory = /opt/zimbra/postfix/sbin
daemon_directory = /opt/zimbra/postfix/libexec
...
I tried manually changing them but the file gets overwritten when I restart the service (zmmtactl restart). Where do I go to change these permanently?
[EDIT3]
Getting closer, I've found the following in Global Config
...
zimbraMtaCommandDirectory: /opt/zimbra/postfix/sbin
zimbraMtaDaemonDirectory: /opt/zimbra/postfix/libexec
zimbraMtaMailqPath: /opt/zimbra/postfix/sbin/mailq
zimbraMtaManpageDirectory: /opt/zimbra/postfix/man
zimbraMtaNewaliasesPath: /opt/zimbra/postfix/sbin/newaliases
zimbraMtaSendmailPath: /opt/zimbra/postfix/sbin/sendmail
...
After changing these I can now get the new install to work. Looks like my Global Config was still holding values from the old 8.7.5 versions, having been upgraded to 8.8.12 recently.
I was going to delete the post, but maybe this will help someone else in a similar situation.