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

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 05-12-2010, 11:50 AM
Intermediate Member
 
Posts: 19
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
Reply With Quote
  #2 (permalink)  
Old 05-12-2010, 10:06 PM
Active Member
 
Posts: 30
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.
Reply With Quote
  #3 (permalink)  
Old 05-13-2010, 01:06 AM
Moderator
 
Posts: 7,928
Default

If the UID/GIDs are okay then run as root
Code:
/opt/zimbra/libexec/zmfixperms --extended
__________________
Reply With Quote
  #4 (permalink)  
Old 05-14-2010, 06:43 AM
Intermediate Member
 
Posts: 19
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
Reply With Quote
  #5 (permalink)  
Old 05-14-2010, 06:49 AM
Moderator
 
Posts: 7,928
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
__________________
Reply With Quote
  #6 (permalink)  
Old 05-14-2010, 07:16 AM
Intermediate Member
 
Posts: 19
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
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.