Results 1 to 6 of 6

Thread: [SOLVED] Postfix don't start after upgrade 5.0 to 6.0.6

  1. #1
    Join Date
    Feb 2009
    Posts
    20
    Rep Power
    6

    Default [SOLVED] Postfix don't start after upgrade 5.0 to 6.0.6

    Hi guys,

    I successfully upgraded to from Zimbra 5.0 to 6.0.6 except that postfix now refuse to start. All other service looks fine though. Here's the error when zimbra is start;

    Starting zmmtaconfig...zmmtaconfig is already running.
    postalias: fatal: bad string length 0 < 1: setgid_group =
    postfix failed to start

    it seems that postalias fail to build the aliases map because setgid_group is not set in main.cf

    I tried to issue this command to fix main.cf;
    postconf -e setgid_group=postdrop

    It fix it but when zimbra is restarted main.cf is overwrite with a version that set setgid_group to null

    I then check zimbra local config with;
    zmlocalconfig -s|grep setgid_group
    setgid_group = postdrop

    So it looks properly set. I confirmed it by looking at localconfig.xml;

    <key name="setgid_group">
    <value>postdrop</value>
    </key>

    Looks good too, I then look at my latest config files (./config.397);
    postfix_setgid_group=postdrop

    I'm pretty mazes... Anyone knows which process overwrite /opt/zimbra/postfix/conf/main.cf ?

    I monitored main.cf and it seem to be overwritten when mailboxd start but I'm not sure...

    Thanks in advance!

    Steeve

  2. #2
    Join Date
    Apr 2010
    Posts
    30
    Rep Power
    5

    Default

    zmmtactr start is what starts the mta and begins the main.cf rewrite

    you can watch this by doing a
    #tail -f /var/log/zimbra.log

    also other useful log files would be in /opt/zimbra/log/ as it doesn't keep everything in /var/log

    Im using Deb 5 so it may be different for you. I would check /etc/groups to insure the group is not messed up, fix that and try to chown the files to rootostfix and then do a restart

    hope this helps.

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

    Default

    If the UID/GIDs are okay then run as root
    Code:
    /opt/zimbra/libexec/zmfixperms --extended

  4. #4
    Join Date
    Feb 2009
    Posts
    20
    Rep Power
    6

    Default

    Thanks guy for the reply!

    I first trails (tail -f) /var/log/zimbra to identify which process rewrite main.cf and found out it is this one;

    May 14 09:34:44 SAIMAPC01 zimbramon[29702]: 29702:info: Rewriting configs antispam amavis antivirus amavis webxml mailbox amavis antispam antivirus mta sasl

    As it during the ldap start up, I assumed the bad config is somewhere in the directory as I was unable to find a bad config file on the fs...

    I also tried the extended permfix as root with no result;

    /opt/zimbra/libexec/zmfixperms --extended

    Is it possible that zcs 6.0.6 now store mta config in the LDAP? If not, any other suggestions?

    Thanks again for your time!

    Steeve

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

    Default

    What does the following show
    Code:
    su - zimbra
    zmlocalconfig postfix_setgid_group
    That AFAIK should be set to postdrop. If it is correct in the localconfig you can set it using
    Code:
    su - zimbra
    zmlocalconfig -e postfix_setgid_group=postdrop
    zmcontrol stop ; zmcontrol start

  6. #6
    Join Date
    Feb 2009
    Posts
    20
    Rep Power
    6

    Default

    Thanks UXBOD!

    It worked!

    First I got this returned;
    zmlocalconfig postfix_setgid_group
    Warning: null valued key 'postfix_setgid_group'

    I then issued;

    zmlocalconfig -e postfix_setgid_group=postdrop

    And it started up perfectly!

    Thanks for your help guys!

    I wish you a good one!

    Steeve

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. [SOLVED] Postfix failed to start: scan_dir_push
    By jerelabs in forum Installation
    Replies: 11
    Last Post: 01-14-2011, 11:02 PM
  3. 4.5.10 -> 5.0 upgrade fails
    By InternetGuy in forum Administrators
    Replies: 3
    Last Post: 01-12-2008, 03:44 PM
  4. Replies: 5
    Last Post: 11-09-2007, 01:59 PM
  5. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11: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
  •