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

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-13-2007, 12:21 AM
Intermediate Member
 
Posts: 17
Default postfix build error while building Zimbra source

Hi all,
I am a newcomer into the Zimbra world .I have downloaded the source from cvs and trying to build it on a Redhat Linux machine .I am referring to the build_cvs_howto.txt for the build instructions. I am facing errors for the postfix build in ThirdParty .I am using Postfix version 2.2.5.
The error is regarding postconf command ::
Error: no /opt/zimbra/postfix-2.2.5/sbin/postconf command found
Re-run this command as /opt/zimbra/postfix-2.2.5/conf/post-install
command_directory=/some/where.

I have attached the stacktrace. Please help ASAP.

Thanks in advance.


During make of postfix (2.2.5) Error:

/bin/sh postfix-install -non-interactive Updating /opt/zimbra/postfix-2.2.5/libexec/anvil...
Updating /opt/zimbra/postfix-2.2.5/libexec/bounce...
Updating /opt/zimbra/postfix-2.2.5/libexec/cleanup...
Updating /opt/zimbra/postfix-2.2.5/libexec/discard...
Updating /opt/zimbra/postfix-2.2.5/libexec/error...
Updating /opt/zimbra/postfix-2.2.5/libexec/flush...
Updating /opt/zimbra/postfix-2.2.5/libexec/lmtp...
Updating /opt/zimbra/postfix-2.2.5/libexec/local...
Updating /opt/zimbra/postfix-2.2.5/libexec/master...
Updating /opt/zimbra/postfix-2.2.5/libexec/oqmgr...
Updating /opt/zimbra/postfix-2.2.5/libexec/pickup...
Updating /opt/zimbra/postfix-2.2.5/libexec/pipe...
Updating /opt/zimbra/postfix-2.2.5/libexec/proxymap...
Updating /opt/zimbra/postfix-2.2.5/libexec/qmgr...
Updating /opt/zimbra/postfix-2.2.5/libexec/qmqpd...
Updating /opt/zimbra/postfix-2.2.5/libexec/scache...
Updating /opt/zimbra/postfix-2.2.5/libexec/showq...
Updating /opt/zimbra/postfix-2.2.5/libexec/smtp...
Updating /opt/zimbra/postfix-2.2.5/libexec/smtpd...
Updating /opt/zimbra/postfix-2.2.5/libexec/spawn...
Updating /opt/zimbra/postfix-2.2.5/libexec/tlsmgr...
Updating /opt/zimbra/postfix-2.2.5/libexec/trivial-rewrite...
Updating /opt/zimbra/postfix-2.2.5/libexec/verify...
Updating /opt/zimbra/postfix-2.2.5/libexec/virtual...
Updating /opt/zimbra/postfix-2.2.5/libexec/nqmgr...
Updating /opt/zimbra/postfix-2.2.5/sbin/postalias...
Updating /opt/zimbra/postfix-2.2.5/sbin/postcat...
Updating /opt/zimbra/postfix-2.2.5/sbin/postconf...
Updating /opt/zimbra/postfix-2.2.5/sbin/postfix...
Updating /opt/zimbra/postfix-2.2.5/sbin/postkick...
Updating /opt/zimbra/postfix-2.2.5/sbin/postlock...
Updating /opt/zimbra/postfix-2.2.5/sbin/postlog...
Updating /opt/zimbra/postfix-2.2.5/sbin/postmap...
Updating /opt/zimbra/postfix-2.2.5/sbin/postsuper...
Updating /opt/zimbra/postfix-2.2.5/sbin/postdrop...
Updating /opt/zimbra/postfix-2.2.5/sbin/postqueue...
Updating /opt/zimbra/postfix-2.2.5/sbin/sendmail...
Updating /opt/zimbra/postfix-2.2.5/sbin/newaliases...
Updating /opt/zimbra/postfix-2.2.5/sbin/mailq...
Updating /opt/zimbra/postfix-2.2.5/conf/LICENSE...
Updating /opt/zimbra/postfix-2.2.5/conf/TLS_LICENSE...
Updating /opt/zimbra/postfix-2.2.5/conf/access...
Updating /opt/zimbra/postfix-2.2.5/conf/aliases...
Updating /opt/zimbra/postfix-2.2.5/conf/canonical...
Updating /opt/zimbra/postfix-2.2.5/conf/generic...
Updating /opt/zimbra/postfix-2.2.5/conf/header_checks...
Skipping /opt/zimbra/postfix-2.2.5/conf/main.cf...
Updating /opt/zimbra/postfix-2.2.5/conf/main.cf.default...
Updating /opt/zimbra/postfix-2.2.5/conf/makedefs.out...
Updating /opt/zimbra/postfix-2.2.5/conf/master.cf...
Updating /opt/zimbra/postfix-2.2.5/conf/postfix-files...
Updating /opt/zimbra/postfix-2.2.5/conf/relocated...
Updating /opt/zimbra/postfix-2.2.5/conf/transport...
Updating /opt/zimbra/postfix-2.2.5/conf/virtual...
Updating /opt/zimbra/postfix-2.2.5/conf/postfix-script...
Updating /opt/zimbra/postfix-2.2.5/conf/post-install...
Updating /opt/zimbra/postfix-2.2.5/man/man1/mailq.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/newaliases.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postalias.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postcat.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postconf.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postdrop.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postfix.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postkick.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postlock.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postlog.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postmap.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postqueue.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/postsuper.1...
Updating /opt/zimbra/postfix-2.2.5/man/man1/sendmail.1...
Updating /opt/zimbra/postfix-2.2.5/man/man5/access.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/aliases.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/body_checks.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/canonical.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/cidr_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/generic.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/header_checks.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/ldap_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/master.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/mysql_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/nisplus_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/pcre_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/pgsql_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/postconf.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/regexp_table.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/relocated.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/transport.5...
Updating /opt/zimbra/postfix-2.2.5/man/man5/virtual.5...
Updating /opt/zimbra/postfix-2.2.5/man/man8/bounce.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/cleanup.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/anvil.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/defer.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/discard.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/error.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/flush.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/lmtp.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/local.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/master.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/oqmgr.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/pickup.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/pipe.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/proxymap.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/qmgr.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/qmqpd.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/scache.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/showq.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/smtp.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/smtpd.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/spawn.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/tlsmgr.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/trace.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/trivial-rewrite.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/verify.8...
Updating /opt/zimbra/postfix-2.2.5/man/man8/virtual.8...
/opt/zimbra/postfix-2.2.5/conf/post-install: Error: no /opt/zimbra/postfix-2.2.5/sbin/postconf command found.
Re-run this command as /opt/zimbra/postfix-2.2.5/conf/post-install
command_directory=/some/where.
make[1]: *** [upgrade] Error 1
make[1]: Leaving directory
`/home/rashmi/main/ThirdParty/PostFix/PostFix-2.2.5/postfix-2.2.5'
make: *** [install] Error 2
Reply With Quote
  #2 (permalink)  
Old 07-13-2007, 10:30 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

Hi

Firstly, cvs is out of date. Download latest source code from sourceforge releases - you should see a tarball alongside the binary packages.

I think latest postfix is 2.2.9 for zimbra.
Reply With Quote
  #3 (permalink)  
Old 07-16-2007, 07:50 AM
Intermediate Member
 
Posts: 17
Default

Thanks for your reply. The documents are simply not helpful when it comes to building the code.

BTW the latest of postfix also throws the same error. It turns out that the install script needs to be changed. the command is not being called with the right command directly being specified. I was able to get this to work.
Reply With Quote
  #4 (permalink)  
Old 07-16-2007, 08:44 AM
Intermediate Member
 
Posts: 17
Default About the latest code

Hi dijichi2,

I got the latest code from sourcefourge. However, I dont see any of the ThirdParty makefiles here. How do I get them?

Regards
~Rashmi
Reply With Quote
  #5 (permalink)  
Old 07-17-2007, 08:05 PM
Active Member
 
Posts: 32
Default

Quote:
Originally Posted by anuradha_mihsra View Post
Thanks for your reply. The documents are simply not helpful when it comes to building the code.

BTW the latest of postfix also throws the same error. It turns out that the install script needs to be changed. the command is not being called with the right command directly being specified. I was able to get this to work.
Care to tell us how? I'm running into the same problem.
Reply With Quote
  #6 (permalink)  
Old 07-18-2007, 10:48 PM
Intermediate Member
 
Posts: 17
Default

The problem is that the install script calls post-install without specifying the command directory (where the command postconf is located) in some places.

Once I hit the error, I simply ran the command

/opt/zimbra/postfix-2.2.5/conf/post-install command_directory=/location/of/postconf upgrade-source

and then did a

make tar

To complete the build process for postfix.

After this I continued with the rest of the build and found that there were no problems with postfix once the zimbra install happened.
Try this and let me know if you hit problems.

Thanks!
Reply With Quote
  #7 (permalink)  
Old 07-19-2007, 11:22 AM
Active Member
 
Posts: 32
Smile

Worked great. I'm actually working on compiling zcs in Ubuntu 64 and have been writing a script to automate much of it. It inserts a line into the PostFix Makefile to alter the postfix-install file:

sed -i 's/bin\/postfix post-install/$$config_directory\/post-install/' postfix-install; \

That way I can let it run with no manual intervention...

Thanks for the help!
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.