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 07-23-2010, 12:40 PM
Special Member
 
Posts: 128
Default Cannot start the MTA after system cleanup

I used this bash script to cleanup the ubuntu system.

Apparently it messed with postfix group/user and now the MTA cannot start.

Quote:
zimbra@intranet:~$ zmcontrol start
Host mail.domain.com
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...FAILED
Starting zmmtaconfig...zmmtaconfig is already running.
chgrp: invalid group: `postfix'
postmap: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter mail_owner: unknown user name value: postfix
postalias: fatal: file /opt/zimbra/postfix-2.4.7.5z/conf/main.cf: parameter mail_owner: unknown user name value: postfix
postfix failed to start
Starting saslauthd...done.

Starting stats...Done.
zimbra@intranet:~$
I noticed that /opt/zimbra/postfix was having all files owned by root.
I did this:
Quote:
chown -R zimbra:zimbra /opt/zimbra/*
cd /opt/zimbra/libexec
./zmfixperms (as root)

atenreiro@intranet:/opt/zimbra/libexec$ sudo ./zmfixperms
chown: cannot access `/opt/zimbra/clamav/db': No such file or directory
chown: invalid group: `rootostfix'
chgrp: invalid group: `postdrop'
chgrp: invalid group: `postdrop'
chown: invalid user: `postfixostfix'
chgrp: invalid group: `postfix'
chgrp: invalid group: `postdrop'
chgrp: invalid group: `postdrop'
chgrp: invalid group: `postfix'
chgrp: invalid group: `postfix'
chgrp: invalid group: `postfix'
chgrp: invalid group: `postfix'
chgrp: invalid group: `postfix'
chgrp: invalid group: `postfix'
atenreiro@intranet:/opt/zimbra/libexec$
I have also these kind of ERRORS in the zimbra.log:

Quote:
Jul 23 20:37:25 intranet zimbramon[13714]: 13714:info: zmmtaconfig: ERROR: /opt/zimbra/postfix/sbin/postconf -e myhostname='mail.domain.com' rc=256 No child processes
How can I set the system back to normal?
Reply With Quote
  #2 (permalink)  
Old 07-23-2010, 12:48 PM
Special Member
 
Posts: 128
Default

I guess the cleanup script removed the postfix user and group.

How can I setup these again?

Quote:
sudo apt-get install postfix
is not a good idea isn't it? It will mess even more with Zimbra?

Last edited by andremta; 07-23-2010 at 12:56 PM..
Reply With Quote
  #3 (permalink)  
Old 07-23-2010, 01:14 PM
Moderator
 
Posts: 1,554
Default

you can use useradd and groupadd commands
Reply With Quote
  #4 (permalink)  
Old 07-23-2010, 01:22 PM
Special Member
 
Posts: 128
Default

Quote:
Originally Posted by bdial View Post
you can use useradd and groupadd commands
Thanks bdial,

That was what I did and apparently MTA is now working.

Some tips for any users having this problem:

- manual create postfix/postdrop/maildrop accounts.
- run /opt/zimbra/libexec/zmfixperms
- run postfix check
- run postfix set-permissions
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.