Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-07-2009, 07:20 AM
Member
 
Posts: 11
Default [SOLVED] After Upgrade 5.0.18 -> 6.0 cannot start postfix

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
Reply With Quote
  #2 (permalink)  
Old 09-07-2009, 07:28 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

Quote:
Originally Posted by ApolloDS View Post
I already did an postfix set-permissions as root but this doesn't help.
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:

Code:
/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
Reply With Quote
  #3 (permalink)  
Old 09-07-2009, 07:37 AM
Member
 
Posts: 11
Default

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?
Reply With Quote
  #4 (permalink)  
Old 09-07-2009, 08:19 AM
Moderator
 
Posts: 7,911
Default

Code:
chmod 755 /opt/zimbra/data/postfix
__________________
Reply With Quote
  #5 (permalink)  
Old 09-07-2009, 08:56 AM
Member
 
Posts: 11
Default

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
Reply With Quote
  #6 (permalink)  
Old 09-07-2009, 09:01 AM
Moderator
 
Posts: 7,911
Default

What are the permissions on the files below the postfix directory ?
__________________
Reply With Quote
  #7 (permalink)  
Old 09-07-2009, 09:08 AM
Member
 
Posts: 11
Default

Hi uxbod,
Please check the attached file.
These are all directories unter /opt/zimbra/data/postfix.

Peter
Attached Files
File Type: txt ls-postfix.txt (11.9 KB, 43 views)
Reply With Quote
  #8 (permalink)  
Old 09-07-2009, 09:27 AM
Moderator
 
Posts: 7,911
Default

/opt/zimbra/data/postfix
Code:
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
__________________
Reply With Quote
  #9 (permalink)  
Old 09-07-2009, 09:34 AM
Member
 
Posts: 11
Default

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
Reply With Quote
  #10 (permalink)  
Old 10-25-2009, 09:20 AM
Intermediate Member
 
Posts: 16
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.