Results 1 to 10 of 10

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

  1. #1
    Join Date
    Oct 2007
    Posts
    18
    Rep Power
    8

    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

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Oct 2007
    Posts
    18
    Rep Power
    8

    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?

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    chmod 755 /opt/zimbra/data/postfix

  5. #5
    Join Date
    Oct 2007
    Posts
    18
    Rep Power
    8

    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

  6. #6
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    What are the permissions on the files below the postfix directory ?

  7. #7
    Join Date
    Oct 2007
    Posts
    18
    Rep Power
    8

    Default

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

    Peter
    Attached Files Attached Files

  8. #8
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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

  9. #9
    Join Date
    Oct 2007
    Posts
    18
    Rep Power
    8

    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

  10. #10
    Join Date
    Aug 2008
    Posts
    16
    Rep Power
    7

    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

Similar Threads

  1. postdrop fail to create file after upgrade to 5.0.3
    By echoadisan in forum Installation
    Replies: 23
    Last Post: 07-15-2013, 03:02 PM
  2. Errors installing Outlook Connector
    By Tim G in forum Zimbra Connector for Outlook
    Replies: 57
    Last Post: 05-05-2011, 02:27 PM
  3. Replies: 2
    Last Post: 09-04-2009, 05:06 AM
  4. Unable to start Postfix & Mailbox + trouble on upgrade
    By tamilnandhu in forum Installation
    Replies: 8
    Last Post: 11-01-2007, 09:40 AM
  5. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 10:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •