Location: HTML: http://www.howtoforge.net/perfect-server-centos-5.3-x86_64-ispconfig-3-p4 I have inserted my comments in blue below: ------------------------------------------------------------------------- Trouble area from page 4: Now (still in /tmp) we can build courier-authlib: sudo rpmbuild -ta courier-authlib-0.62.2.tar.bz2 before typing this command, it is in [compileuser@server tmp]$ after I enter the command, it asks for a password: I enter the password for compileuser, and the response is: "compileuser is not in the sudoer file. This incident will be reported. You have new mail in /var/spool/mail/root" When I type ls -l at [compileuser@server tmp]$ i find the listing below, but I dont find it at [compileuser@server x86_64]$ After the build process, the rpm packages can be found in $HOME/rpm/RPMS/x86_64 ($HOME/rpm/RPMS/i386 if you are on an i386 system): cd $HOME/rpm/RPMS/x86_64 The command ls -l shows you the available rpm packages: [compileuser@server1 x86_64]$ ls -l I do not get this result. total 608 -rw-r--r-- 1 root root 139745 May 25 14:52 courier-authlib-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 328419 May 25 14:52 courier-authlib-debuginfo-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 35322 May 25 14:52 courier-authlib-devel-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 18310 May 25 14:52 courier-authlib-ldap-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 14501 May 25 14:52 courier-authlib-mysql-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 13714 May 25 14:52 courier-authlib-pgsql-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 8358 May 25 14:52 courier-authlib-pipe-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 35287 May 25 14:52 courier-authlib-userdb-0.62.2-1.x86_64.rpm [compileuser@server1 x86_64]$ ------------------------------------------------------------------------------------------ what am I missing?
Did you follow the exact steps by adding "compileuser" to your sistem and adding him to sudoers with "visudo"? Maybee you are not so familiar with vi and changes to sudoers file are not changed at all.
Still on page 4.. 11 Apply Quota Patch To Postfix We have to get the Postfix source rpm, patch it with the quota patch, build a new Postfix rpm package and install it. cd /usr/src HTML: wget http://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/5.3/os/SRPMS/postfix-2.3.3-2.1.el5_2.src.rpm rpm -ivh postfix-2.3.3-2.1.el5_2.src.rpm when I type this in, my response is Resolving ftp-stud.fht-esslinen.de 192.143.116.10 Connectiing to ftp-stud.fht-esslinen.de |192.143.116.10|:80 connected HTTP request sent, awaiting response... 404 Not Found 2010-04-13 15:35:19 ERROR 404 Not Found I tried a different place and got: HTML: wget http://mirrors.racspace.com/pub/CentOS/5.3/os/SRPMS/postfix-2.3.3-2.1.el5_2.src.rpm rpm -ivh postfix-2.3.3-2.1.el5_2.src.rpm Resolving mirror.rackspace.com 72.4.123.180 Connectiing to mirror.rackspace.com |72.4.123.180|:80 connected HTTP request sent, awaiting response... 404 Not Found 2010-04-13 15:54:40 ERROR 404 Not Found What does this message mean? Thanx again...
As I understand you manage to install courier-authlib.... good. As for your new problem - I've checked the link from the mirror - it is down (Sorry for that!). Here is a ne link for postfix ftp://ftp.chg.ru/pub/Linux/CentOS/5.4/os/SRPMS/postfix-2.3.3-2.1.el5_2.src.rpm Code: wget ftp://ftp.chg.ru/pub/Linux/CentOS/5.4/os/SRPMS/postfix-2.3.3-2.1.el5_2.src.rpm
New error, still page 4: rpmbuild - ba postfix.spec error: line 150: Bad arg to %patch -p: %package pflogsumm
Please check again the "postfix.spec". Go to line 150 and tell me exactly what is written there. (maybe you modified by mistake that line) Q: When you work on the server are you using puTTY? Because if you enter by hand all this im sure that you have some typo problem (via SSH you can copy/paste very easy - i recommand that). I see that you reply on this thread very slowly - i think that we are on different time zone.
line 150: %package pflogsumm I added only: MYSQL 1 Patch0 postfix-2.3.3-vda.patch %patch0 -pl -b .vda I'm pretty new at this, and I don't know what puTTY is.. so far, my biggest typo was vi sudo... I made a freudain assumption..lol. PS.. I'm in Minnesota
PuTTY is a SSH client - contect to the server to work as in terminal or command line. Recomandation: before you do something like that try to work with the tutorial in a virtual machie - to see if it works or not. In my opinion try to make your server in a Debian ... it's recomended and tested by the ISPConfig creators. I think that you can ignore that error, you don't need that file. Just "cd /usr/src/redhat/RPMS/x86_64" (assuming that you have a 64 machine) then "ls -l" and if you have there "postfix-2.3.3-2.1.x86_64.rpm" I think that you can muv on to the next (Pick the Postfix package and install it like this: rpm -ivh postfix-2.3.3-2.1.x86_64.rpm)
terminal output: [root@serverA x86_64]# ls -l total 608 -rw-r--r-- 1 root root 139691 Apr 13 14:47 courier-authlib-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 328337 Apr 13 14:47 courier-authlib-debuginfo-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 35316 Apr 13 14:47 courier-authlib-devel-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 18302 Apr 13 14:47 courier-authlib-ldap-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 14498 Apr 13 14:47 courier-authlib-mysql-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 13706 Apr 13 14:47 courier-authlib-pgsql-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 8359 Apr 13 14:47 courier-authlib-pipe-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 35282 Apr 13 14:47 courier-authlib-userdb-0.62.2-1.x86_64.rpm [root@serverA x86_64]# So that means no postifx file...?? See post #1... now I get these files, but no postfix files.
I think you are in a wrong place. I think that you are in "$HOME/rpm/RPMS/x86_64", and you must be in "/usr/src/redhat/RPMS/x86_64". Just follow the 11 Apply Quota Patch To Postfix (i thought that you are to the point to apply the postfix pach) or my mistake? You should really learn to use putty - if you whant to learn something about it search the web about it or use this link http://www.electrictoolbox.com/article/applications/ssh-putty/
Still Page 4: A little bit ago, I entered the command: HTML: wget http://vda.sourceforge.net/VD/postfix-2.3.3.vda.patch.gz I got a temporary unvailable about 5 times over a period of about 20 min. It finally came through. I see the file in the /usr/src/redhat/SOURCES directory. Then I entered: gunzip postfix-2.3.3.vda.patch.gz it now says: gunzip postfix-2.3.3.vda.patch.gz: not in gzip format I'm assuming changes were being made, when I initially tried to retrieve the file. Please advise.
That message is this way because the archive is broken... i think that you sould searc an alternative link for that pach. I will search myself for that.... and i will came back with a link. the link in the tutorial (from sourceforge is down - you have a lot of bad luck regarding that) LE: As it says on SourceForge.... they have a planned downtime on their servers. LEE: Here's a link http://web.onda.com.br/nadal/postfix/VDA/postfix-2.3.3-vda.patch.gz Hope it will work for you
Actually, I found one a little different... HTML: http://web.onda.com.br/nadal/postfix/VDA/postfix-2.3.3-vda.patch.gz You know I'll be back...
So far here is the printout of the directories and what is in them: [root@serverA src]# ls -l total 2824 drwxr-xr-x 3 root root 4096 Apr 13 15:12 debug drwxr-xr-x 4 root root 4096 Apr 12 09:50 kernels -rw-r--r-- 1 root root 2865338 Aug 15 2008 postfix-2.3.3-2.1.el5_2.src.rpm drwxr-xr-x 7 root root 4096 Sep 3 2009 redhat [root@serverA src]# cd /usr/src/redhat [root@serverA redhat]# ls -l total 40 drwxr-xr-x 3 root root 4096 Apr 13 14:46 BUILD drwxr-xr-x 4 root root 4096 Sep 3 2009 RPMS drwxr-xr-x 2 root root 4096 Apr 16 14:39 SOURCES drwxr-xr-x 2 root root 4096 Apr 16 14:41 SPECS drwxr-xr-x 2 root root 4096 Apr 13 14:47 SRPMS [root@serverA redhat]# cd /usr/src/redhat/RPMS [root@serverA RPMS]# ls -l total 16 drwxr-xr-x 2 root root 4096 Sep 3 2009 noarch drwxr-xr-x 2 root root 4096 Apr 13 14:47 x86_64 [root@serverA RPMS]# cd /usr/src/redhat/SOURCES [root@serverA SOURCES]# ls -l total 2852 -rw-r--r-- 1 root root 43588 Jun 25 2004 pflogsumm-1.1.0.tar.gz -rw-r--r-- 1 root root 2346 Sep 9 2004 postfix-2.1.1-config.patch -rw-r--r-- 1 root root 420 Sep 9 2004 postfix-2.1.1-obsolete.patch -rw-r--r-- 1 root root 422 Oct 18 2004 postfix-2.1.5-aliases.patch -rw-r--r-- 1 root root 2353 Nov 11 2005 postfix-2.2.5-cyrus.patch -rw-r--r-- 1 root root 2777045 Sep 1 2006 postfix-2.3.3.tar.gz -rw-r--r-- 1 root root 30460 Oct 17 2006 postfix-2.3.3-vda.patch -rw-r--r-- 1 root root 1057 Sep 9 2004 postfix-alternatives.patch -rw-r--r-- 1 root root 2244 Aug 11 2008 postfix-CVE-2008-2936.patch -rw-r--r-- 1 root root 2404 Nov 11 2005 postfix-etc-init.d-postfix -rw-r--r-- 1 root root 1367 Apr 20 2005 postfix-large-fs.patch -rw-r--r-- 1 root root 72 Oct 7 2005 postfix-pam.conf -rw-r--r-- 1 root root 26 Sep 9 2004 postfix-sasl.conf -rw-r--r-- 1 root root 19725 Sep 9 2004 README-Postfix-SASL-RedHat.txt [root@serverA SOURCES]# cd /usr/src/redhat/SPECS [root@serverA SPECS]# ls -l total 2836 -rw-r--r-- 1 root root 2865338 Apr 16 13:14 postfix-2.3.3-2.1.el5_2.src.rpm -rw-r--r-- 1 root root 30930 Apr 16 14:41 postfix.spec [root@serverA SPECS]# cd /usr/src/redhat/SRPMS [root@serverA SRPMS]# ls -l total 2192 -rw-r--r-- 1 root root 2237490 Apr 13 14:47 courier-authlib-0.62.2-1.src.rpm [root@serverA SRPMS]#
It seems to be right files.... now follow the tutorial from "vi postfix.spec". Let me know how it's works!
The reason I display the list is that none of the following commands work: rpmbuild -ba postfix.spec rpm -ivh postfix-2.3.3-2.1.x86_64.rpm This directory is still the same: [root@serverA x86_64]# ls -l total 608 -rw-r--r-- 1 root root 139691 Apr 13 14:47 courier-authlib-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 328337 Apr 13 14:47 courier-authlib-debuginfo-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 35316 Apr 13 14:47 courier-authlib-devel-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 18302 Apr 13 14:47 courier-authlib-ldap-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 14498 Apr 13 14:47 courier-authlib-mysql-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 13706 Apr 13 14:47 courier-authlib-pgsql-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 8359 Apr 13 14:47 courier-authlib-pipe-0.62.2-1.x86_64.rpm -rw-r--r-- 1 root root 35282 Apr 13 14:47 courier-authlib-userdb-0.62.2-1.x86_64.rpm [root@serverA x86_64]# On my command line, entered the following: [root@serverA SPECS]# vi postfix.spec These lines were entered in their respective places: MYSQL 1 Patch0: postfix-2.3.3-vda.patch %patch0 -pl -b .vda :wq saved document then tried both the commands (1)rpmbuild and (2)rpm indicated in the last post, and both fail. Commands: (1) rpmbuild -ba postfix.spec (2) rpm -ivh postfix-2.3.3-2.1.x86_64.rpm (1) error: line 150: Bad arg to %patch -p: %package fplogsumm (2) error: open postfix-2.3.3.x86_64.rpm failed: no such file or directory
The files listed by you are located in "HOME/rpm/RPMS/x86_64"..... right? In the tutorial postfix files are located in "/usr/src/redhat/RPMS/x86_64". If are not, i think that you spuld start from the beginning (all server installation i mean). maybe another linux - as i sayd before "Debian" works flowless - mine it is.
I checked the compileuser directories, and there is something slightly different there, but not the "postfix-2.3.3-2.1.x86_64.rpm" file I'm looking for. The directory listing I last gave is from "/usr/src/redhat/RPMS/x86_64", so I'll start the process all over again, and see what happens. I will have to do some research on the Debain option... the reason I was working with CentOS, is because Cpanel works with it, once it's installed properly. I don't know that Debain does. ??