[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Ask questions about your setup or get help installing ZCS server (ZD section below).
14645ApolloDS
Posts: 17
Joined: Fri Sep 12, 2014 10:47 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby 14645ApolloDS » Mon Sep 07, 2009 8:20 am

Hi all

After upgrading Zimbra to 6.0 I cannot start postfix anymore.

Anyone having the same problem?
I get this strange error message in /var/log/maillog:
Sep 7 15:17:16 zeus postfix/postfix-script[17580]: warning: not owned by root: /opt/zimbra/postfix-2.6.2.2z/conf/main.cf

Sep 7 15:17:16 zeus postfix/postfix-script[17581]: warning: not owned by root: /opt/zimbra/postfix-2.6.2.2z/conf/master.cf

Sep 7 15:17:16 zeus postfix/postfix-script[17582]: warning: not owned by root: /opt/zimbra/postfix-2.6.2.2z/conf/master.cf.in

Sep 7 15:17:16 zeus postfix/postfix-script[17585]: warning: not owned by postfix: /opt/zimbra/data/postfix/.

Sep 7 15:17:16 zeus postfix/postfix-script[17586]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool

Sep 7 15:17:16 zeus postfix/postfix-script[17587]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/24DD93FF0A3

Sep 7 15:17:16 zeus postfix/postfix-script[17588]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/165CC3FF0A4

Sep 7 15:17:16 zeus postfix/postfix-script[17589]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/7826331F701

Sep 7 15:17:16 zeus postfix/postfix-script[17590]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/DA1A33FFBA5

Sep 7 15:17:16 zeus postfix/postfix-script[17591]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/8DCA33FFBA2

Sep 7 15:17:16 zeus postfix/postfix-script[17592]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/CA8123FFBA1

Sep 7 15:17:16 zeus postfix/postfix-script[17593]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/D11E03FFBA7

Sep 7 15:17:16 zeus postfix/postfix-script[17594]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/3618F3FFBA3

Sep 7 15:17:16 zeus postfix/postfix-script[17595]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/2EB4731F6FF

Sep 7 15:17:16 zeus postfix/postfix-script[17596]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/600E33FFBA4

Sep 7 15:17:16 zeus postfix/postfix-script[17597]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/564BF31F702

Sep 7 15:17:16 zeus postfix/postfix-script[17598]: warning: not owned by postfix: /opt/zimbra/data/postfix/./spool/maildrop/A25C631F62C

Sep 7 15:17:17 zeus postfix/postfix-script[17611]: starting the Postfix mail system

Sep 7 15:17:17 zeus postfix/master[17612]: fatal: open lock file /opt/zimbra/data/postfix/master.lock: cannot open file: Permission denied

Sep 7 13:17:30 zeus postfix/postqueue[18251]: fatal: Queue report unavailable - mail system is down


I already did an postfix set-permissions as root but this doesn't help.
My directory rights are:
[root@zeus data]# pwd

/opt/zimbra/data

[root@zeus data]# ll

total 24

drwxr-x--- 7 zimbra zimbra 4096 Sep 7 15:16 amavisd

drwxr-x--- 3 zimbra zimbra 4096 Apr 9 2008 clamav

drwxr-xr-x 2 zimbra zimbra 4096 Nov 21 2008 dspam

drwxr-xr-x 5 zimbra zimbra 4096 Sep 7 09:51 ldap

drwxr-xr-x 3 zimbra zimbra 4096 Sep 7 09:54 postfix

drwxr-xr-x 4 zimbra zimbra 4096 Sep 7 15:18 tmp

[root@zeus data]# ll postfix/

total 4

drwxr-xr-x 16 root postfix 4096 Apr 9 2008 spool


Anyone know how to solve this problem?
This is running on a Centos 5.3 and it was for the whole 5.x Releases of Zimbra.
Thanks
Peter


phoenix
Ambassador
Ambassador
Posts: 26714
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby phoenix » Mon Sep 07, 2009 8:28 am

[quote user="14645ApolloDS"]I already did an postfix set-permissions as root but this doesn't help.[/QUOTE]That's not the correct permissions. I'd suggest you shutdown Zimbra then see if there's any processes still running then kill them if there is. You should then run zmfixperms with the extended otion:
/opt/zimbra/libexec/zmfixperms --help

/opt/zimbra/libexec/zmfixperms [-help] [-extended] [-verbose]

-help Usage

-verbose Verbose output

-extended Extended fix, includes store,index,backup directories

* Using extended option can take a signifcant amount of time.
Then restart Zimbra.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
14645ApolloDS
Posts: 17
Joined: Fri Sep 12, 2014 10:47 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby 14645ApolloDS » Mon Sep 07, 2009 8:37 am

Hi phoenix,
Thanks for your reply.
I did the following now:
[root@zeus libexec]# service zimbra stop

[root@zeus libexec]# ps auxw|grep zimbra

root 1351 0.0 0.0 61180 732 pts/0 S+ 15:32 0:00 grep zimbra

[root@zeus libexec]# ./zmfixperms --extended --verbose

Fixing ownership and permissions on /opt/zimbra/conf

Fixing permissions on /opt/zimbra/conf/spamassassin

Fixing ownership and permissions on /opt/zimbra/conf/ldap-scm.cf

Fixing ownership and permissions on /opt/zimbra/conf/ldap-transport.cf

Fixing ownership and permissions on /opt/zimbra/conf/ldap-vad.cf

Fixing ownership and permissions on /opt/zimbra/conf/ldap-vam.cf

Fixing ownership and permissions on /opt/zimbra/conf/ldap-vmd.cf

Fixing ownership and permissions on /opt/zimbra/conf/ldap-vmm.cf

Fixing ownership and permissions on /var/log/zimbra.log

Fixing ownership and permissions on /opt/zimbra/amavisd

Fixing ownership and permissions on /opt/zimbra/aspell

Fixing ownership and permissions on /opt/zimbra/bdb

Fixing ownership and permissions on /opt/zimbra/clamav

Fixing ownership and permissions on /opt/zimbra/curl

Fixing ownership and permissions on /opt/zimbra/cyrus-sasl

Fixing ownership and permissions on /opt/zimbra/dspam

Fixing ownership and permissions on /opt/zimbra/heimdal

Fixing ownership and permissions on /opt/zimbra/httpd

Fixing ownership and permissions on /opt/zimbra/libtool

Fixing ownership and permissions on /opt/zimbra/mysql

Fixing ownership and permissions on /opt/zimbra/net-snmp

Fixing ownership and permissions on /opt/zimbra/openldap

Fixing ownership and permissions on /opt/zimbra/openldap-clibs

Fixing ownership and permissions on /opt/zimbra/openssl

Fixing ownership and permissions on /opt/zimbra/snmp

Fixing ownership and permissions on /opt/zimbra/tcmalloc

Fixing ownership and permissions on /opt/zimbra/zimbramon/bin

Fixing ownership and permissions on /opt/zimbra/zimbramon/crontabs

Fixing ownership and permissions on /opt/zimbra/zimbramon/rrdtool

Fixing ownership and permissions on /opt/zimbra/jdk1.6.0_04

Fixing ownership and permissions on /opt/zimbra/jdk1.6.0_16

Fixing ownership and permissions on /opt/zimbra/lib

Fixing ownership and permissions on /opt/zimbra/db

Fixing ownership and permissions on /opt/zimbra/cyrus-sasl

Fixing ownership and permissions on /opt/zimbra/data/amavisd

Fixing ownership and permissions on /opt/zimbra/jetty

Fixing ownership and permissions on /opt/zimbra/ssl

Fixing ownership and permissions on /opt/zimbra/openldap

Fixing ownership and permissions on /opt/zimbra/snmp/var

Fixing ownership and permissions on /opt/zimbra/logger/db

Fixing ownership and permissions on /opt/zimbra/clamav/db

Fixing ownership and permissions on /opt/zimbra/zimbramon/lib

Fixing ownership and permissions on /opt/zimbra/postfix

Fixing ownership and permissions on /opt/zimbra/data/postfix

Fixing ownership of /opt/zimbra/index

Fixing ownership of /opt/zimbra/backup

Fixing ownership of /opt/zimbra/redolog

Fixing ownership of /opt/zimbra/store
After starting again the same happens:
Sep 7 15:36:26 zeus postfix/postfix-script[8698]: warning: not owned by root: /opt/zimbra/data/postfix/spool

Sep 7 15:36:26 zeus postfix/postfix-script[8705]: warning: not owned by root: /opt/zimbra/postfix-2.6.2.2z/conf/main.cf

Sep 7 15:36:26 zeus postfix/postfix-script[8706]: warning: not owned by root: /opt/zimbra/postfix-2.6.2.2z/conf/master.cf

Sep 7 15:36:26 zeus postfix/postfix-script[8707]: warning: not owned by root: /opt/zimbra/postfix-2.6.2.2z/conf/master.cf.in

Sep 7 15:36:26 zeus postfix/postfix-script[8722]: starting the Postfix mail system

Sep 7 15:36:26 zeus postfix/master[8723]: fatal: open lock file /opt/zimbra/data/postfix/master.lock: cannot open file: Permission denied


Any more ideas?
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby uxbod » Mon Sep 07, 2009 9:19 am

chmod 755 /opt/zimbra/data/postfix
14645ApolloDS
Posts: 17
Joined: Fri Sep 12, 2014 10:47 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby 14645ApolloDS » Mon Sep 07, 2009 9:56 am

Hi uxbod,

It is already on 755:
[root@zeus data]# pwd

/opt/zimbra/data

[root@zeus data]# ll

total 24

drwxr-x--- 7 zimbra zimbra 4096 Sep 7 15:35 amavisd

drwxr-x--- 3 zimbra zimbra 4096 Apr 9 2008 clamav

drwxr-xr-x 2 zimbra zimbra 4096 Nov 21 2008 dspam

drwxr-xr-x 5 zimbra zimbra 4096 Sep 7 09:51 ldap

drwxr-xr-x 3 postfix zimbra 4096 Sep 7 09:54 postfix

drwxr-xr-x 4 zimbra zimbra 4096 Sep 7 16:56 tmp
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby uxbod » Mon Sep 07, 2009 10:01 am

What are the permissions on the files below the postfix directory ?
14645ApolloDS
Posts: 17
Joined: Fri Sep 12, 2014 10:47 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby 14645ApolloDS » Mon Sep 07, 2009 10:08 am

Hi uxbod,

Please check the attached file.

These are all directories unter /opt/zimbra/data/postfix.
Peter

ls-postfix.txt

uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby uxbod » Mon Sep 07, 2009 10:27 am

/opt/zimbra/data/postfix


postfix:

total 20

drwxr-xr-x 3 postfix zimbra 4096 Jul 30 17:34 .

drwxr-xr-x 8 zimbra zimbra 4096 Jul 30 17:19 ..

-rw------- 1 postfix postfix 17 Sep 3 19:09 master.lock

-rw------- 1 postfix postfix 1024 Sep 7 16:01 prng_exch

drwxr-xr-x 16 postfix postfix 4096 Mar 25 2008 spool
Check the difference on my parent directory to yours ;)
14645ApolloDS
Posts: 17
Joined: Fri Sep 12, 2014 10:47 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby 14645ApolloDS » Mon Sep 07, 2009 10:34 am

Hi uxbod,

Thanks a lot for this hint, it solved the problem, postfix can now start again.
The /opt/zimbra/data directory was with the wrong rights:

drwxr-x--- 8 zimbra zimbra 4096 Sep 3 09:37 data

should be:

drwxr-xr-x 8 zimbra zimbra 4096 Sep 3 09:37 data
But this is very strange since I never changed the rights, I just did an upgrade from 5.0.18 to 6.0.
You saved my day, thanks ;-)
Greetings from switzerland
Peter
simonpope
Posts: 16
Joined: Fri Sep 12, 2014 11:44 pm

[SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

Postby simonpope » Sun Oct 25, 2009 10:20 am

Have had exactly the same problem following upgrade from 5.018 to 6.01. Server is SLES10 SP2.
Changing permissions on /opt/zimbra/data solved the issue.
Must be an issue on the upgrade routine

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 9 guests