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: `root ostfix'
chgrp: invalid group: `postdrop'
chgrp: invalid group: `postdrop'
chown: invalid user: `postfix ostfix'
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?