Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40

Thread: [SOLVED] Zimbra 6 -> 7 - Zimbra does not know its own virtual hosts

  1. #11
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    If anyone kept the original main.cf (rather than overwriting and/or deleting it), the permissions on the file would be useful. Please also see https://bugzilla.zimbra.com/show_bug.cgi?id=55541
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  2. #12
    bku09 is offline Member
    Join Date
    Jan 2010
    Posts
    13
    Rep Power
    5

    Default

    Quote Originally Posted by quanah View Post
    Does the problem reappear if you run (as zimbra):
    postfix stop
    postfix start

    If it does, then we'll actually have to do the following, since configrewrite squelches its output:

    1. postfix stop (as zimbra user)
    2. echo REWRITE mta | /bin/nc -w 120 localhost 7171 (as zimbra user)

    --Quanah
    1) no, even after a postfix stop/start, main.cf is unchanged.
    2)
    [zimbra@zimbra ~]$ echo REWRITE mta | nc -w 120 localhost 7171
    SUCCESS REWRITES COMPLETE
    [zimbra@zimbra ~]$ ll /opt/zimbra/postfix/conf/main.cf
    -rw-r--r-- 1 root root 2496 Feb 8 04:44 /opt/zimbra/postfix/conf/main.cf

    main.cf still unchanged

    edit:
    changing owner/group to root.postfix or zimbra.zimbra didn't fix the issue
    changing permission (for test purposes) to 777 didn't fix the issue

    /etc/sudoers also looking good:

    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmstat-fd *
    %zimbra ALL=NOPASSWD:/opt/zimbra/openldap/libexec/slapd
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmslapd
    %zimbra ALL=NOPASSWD:/opt/zimbra/postfix/sbin/postfix, /opt/zimbra/postfix/sbin/postalias, /opt/zimbra/postfix/sbin/qshape.pl, /opt/zimbra/postfix/sbin/postconf,/opt/zimbra/postfix/sbin/postsuper
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmqstat,/opt/zimbra/libexec/zmmtastatus
    %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmmailboxdmgr
    %zimbra ALL=NOPASSWD:/opt/zimbra/bin/zmcertmgr

    edit2:
    restarting mta/zimbra with no main.cf in place generates this config:

    -rw-r--r-- 1 root root 45 Feb 8 05:28 main.cf

    [zimbra@zimbra conf]$ cat main.cf
    setgid_group = postdrop
    mail_owner = postfix
    Last edited by bku09; 02-07-2011 at 09:42 PM.

  3. #13
    bku09 is offline Member
    Join Date
    Jan 2010
    Posts
    13
    Rep Power
    5

    Default

    finally tracked down the problem:

    zmconfigd fails to execute the postconf stuff (exit code 1):

    /opt/zimbra/log/zmconfigd.log:
    2011-02-08 00:57:41,536 zmconfigd ERROR [10413-postconf] Executed: /opt/zimbra/postfix/sbin/postconf .... my config, lots of stuff ...... returned 1 (0 - 79) (1.28 sec)

    but when I execute the same command manually it works fine and main.cf is getting updated correctly (exit code 0):

    [zimbra@zimbra log]$ /opt/zimbra/postfix/sbin/postconf -e mail_owner='postfix' bounce_notice_recipient='postmaster' ..........my config, lots of stuff ........
    [zimbra@zimbra log]$ echo $?
    0

    any ideas?
    Last edited by bku09; 02-07-2011 at 10:23 PM.

  4. #14
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    I'm not sure yet, I have a system now where I can reproduce the various issues. There is more than one problem in play for sure. postconf behavior changed between postfix 2.6 and postfix 2.7 is part of the issue.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  5. #15
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,285
    Rep Power
    10

    Default

    There are two issues involved, but the primary one people are hitting is that zmconfigd fails when postconf is called with a long enough argument list. See the previously mentioned bug. There is also a minor issue with how main.cf gets created when it doesn't exist, but that's a rare occurence. If you hit the issue with postfix, do *not* delete main.cf. Instead, I suggest examining the zmconfigd.log file and running the postconf command it logs from the command line as a workaround.
    Quanah Gibson-Mount
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  6. #16
    tobru's Avatar
    tobru is offline Active Member
    Join Date
    Nov 2007
    Location
    Zürich, Switzerland
    Posts
    40
    Rep Power
    7

    Default

    FYI: Had the same problem after upgrading from 6.0.10 to 7.0.0 GA an Ubuntu 10.04 64-Bit LTS (empty main.cf). After copying main.cf from 6.0.10, postfix is working again!

  7. #17
    GlooM is offline Active Member
    Join Date
    Nov 2009
    Location
    Moscow, Russia
    Posts
    40
    Rep Power
    5

    Question

    Quote Originally Posted by tobru View Post
    FYI: Had the same problem after upgrading from 6.0.10 to 7.0.0 GA an Ubuntu 10.04 64-Bit LTS (empty main.cf). After copying main.cf from 6.0.10, postfix is working again!
    Hello! This problem will be on Ubuntu 8.04 Zimbra 7? If yes, simply copy main.cf from backup is universal solution, Or it is better to wait bugfixes and version 7.0.1? Can I update production server now?

  8. #18
    tobru's Avatar
    tobru is offline Active Member
    Join Date
    Nov 2007
    Location
    Zürich, Switzerland
    Posts
    40
    Rep Power
    7

    Default

    I don't know if you'll have the same problem. But I think it is save to upgrade and if you see that the file is empty after the upgrade, simply copy the backup file and you should be fine...

    DON'T FORGET TO MAKE A (WORKING) BACKUP! And if it's your production server, do it on a less noisy hour (in the evening / night)

  9. #19
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    Default

    Quote Originally Posted by GlooM View Post
    Hello! This problem will be on Ubuntu 8.04 Zimbra 7? If yes, simply copy main.cf from backup is universal solution, Or it is better to wait bugfixes and version 7.0.1?
    The solution is listed above.

    Quote Originally Posted by GlooM View Post
    Can I update production server now?
    That's a decision to do that is yours to make. Try it and see if you want to live dangerously, try it on a test server or wait for the bug to be closed and a fix issued. Whatever you decide make sure you take adequate backups of your server.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  10. #20
    fyd
    fyd is offline Elite Member
    Join Date
    Oct 2010
    Posts
    373
    Rep Power
    4

    Default

    Thanks Quanah for the input and explanation. Besides it is worth noting that some have had safe upgrades from 6.0.9 to 7.0 without hitting this bug.

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Old Backup stay in TO_DELETE status and no clearing..
    By bartounet in forum Administrators
    Replies: 0
    Last Post: 10-05-2010, 07:40 AM
  2. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 PM
  5. Replies: 1
    Last Post: 11-23-2005, 01:35 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
  •