Results 1 to 7 of 7

Thread: postfix build error while building Zimbra source

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    17
    Rep Power
    8

    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

  2. #2
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    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.

  3. #3
    Join Date
    Jul 2007
    Posts
    17
    Rep Power
    8

    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.

  4. #4
    Join Date
    Jul 2007
    Posts
    17
    Rep Power
    8

    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

  5. #5
    Join Date
    Mar 2007
    Location
    Vancouver, Canada
    Posts
    34
    Rep Power
    8

    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.

  6. #6
    Join Date
    Jul 2007
    Posts
    17
    Rep Power
    8

    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!

  7. #7
    Join Date
    Mar 2007
    Location
    Vancouver, Canada
    Posts
    34
    Rep Power
    8

    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!

Similar Threads

  1. Replies: 9
    Last Post: 03-01-2008, 08:21 PM
  2. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 09:55 AM
  3. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 04:48 PM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 10:19 AM
  5. FC3 Install and no zimbra ?
    By aws in forum Installation
    Replies: 10
    Last Post: 10-09-2005, 05:19 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
  •