Feb 232010
 

I’ve Built SRPM package for postfix 2.8.0 on my spare time today, based on Simon J. Mudd’s template of course 🙂

The Hardest parts was testing and applies the right patches, but it seems okay when it compiled

Here’s the srpm file:

[download#9]

This how to rebuild the source :

$ rpm -Uvh postfix-2.8.0.src.rpm

Set the environments

$ export POSTFIX_SMTPD_MULTILINE_GREETING=1
$ export POSTFIX_LDAP=1
$ export POSTFIX_MYSQL_REDHAT=1
$ export POSTFIX_PCRE=1
$ export POSTFIX_PGSQL=1
$ export POSTFIX_RBL_MAPS=1
$ export POSTFIX_SASL=2
$ export POSTFIX_TLS=1
$ export POSTFIX_VDA=1
$ export POSTFIX_DB=4

Create postfix.spec file and go to rpm spec directory

$ sh `rpm --eval '%{_sourcedir}'`/make-postfix.spec
$ cd `rpm --eval '%{_specdir}'`

rebuild rpms/srpms

$ rpmbuild -ba postfix.spec

done

note: tested only on centos 4.7 i386 machine, initial rpm source was build on centos 5.4 x86_64 (ibm blade) but not installed, you might want to test/check it first before installing on production machine

  12 Responses to “postfix-2.8.0.src.rpm”

Comments (12)
  1. I decided to take a different.
    Built SRPM package for postfix on another servers (CentOS) and copy lib and bin file to this server.
    postconf -m
    btree
    cidr
    environ
    hash
    ldap
    mysql
    nis
    pcre
    pgsql
    proxy
    regexp
    static
    tcp
    unix
    YES, i see tcp support, but still have error:
    main.cf
    recipient_canonical_maps = hash:/etc/postfix/pfix-no-srs.cf, tcp:127.0.0.1:10002
    recipient_canonical_classes = envelope_recipient
    sender_canonical_maps = hash:/etc/postfix/pfix-no-srs.cf, tcp:127.0.0.1:10002
    sender_canonical_classes = envelope_sender

    postfix/smtpd[28991]: fatal: unsupported dictionary type: tcp

    ohohoho, i am confusion, maybe you have any idea ??? many thanks

  2. postfix executables linked to many system libraries at configure/compile time, they might be in different path in various system. you cannot just plugged the executables/libs into another different system. you better trying build from source first. sorry cannot help you much, i’ve never used linux distribution like yours. 😀

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.