Virtual Users And Domains With Postfix, Courier And MySQL (FC7)

Discussion in 'HOWTO-Related Questions' started by gugabaga, Jun 29, 2007.

  1. gugabaga

    gugabaga New Member

    Hi,

    I am using FC7 and i downloaded the src rpms of postfix-2.4.3 from fedora.

    yumdownloader --source postfix
    rpm -ivh postfix-2.4.3-2.fc7.src.rpm
    cd /usr/src/redhat/SOURCE
    wget http://web.onda.com.br/nadal/postfix/VDA/postfix-2.2.8-vda.patch.gz
    gunzip postfix-2.2.8-vda.patch.gz
    cd /usr/src/redhat/SPECS/
    vim postfix.spec

    I changed mysql to 1.

    added Patch0: postfix-2.2.8-vda.patch
    added %patch0 -p1 -b .vda

    then i run rpmbuild -ba postfix.spec

    Its gives an error -
    + echo 'Patch #0 (postfix-2.2.8-vda.patch):'
    Patch #0 (postfix-2.2.8-vda.patch):
    + patch -p1 -b --suffix .vda -s
    2 out of 4 hunks FAILED -- saving rejects to file src/virtual/mailbox.c.rej
    3 out of 10 hunks FAILED -- saving rejects to file src/virtual/maildir.c.rej
    1 out of 5 hunks FAILED -- saving rejects to file src/virtual/virtual.c.rej
    error: Bad exit status from /var/tmp/rpm-tmp.79923 (%prep)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.79923 (%prep)

    But if I remove '%patch0 -p1 -b .vda' rpmbuild process is successful.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You are using the wrong patch version. Your Postfix version is 2.4.3, so you must use the 2.4.3 version of the quota patch as well, not 2.2.8.
     

Share This Page