View Single Post
  #3  
Old 8th May 2009, 18:23
rdhir rdhir is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I used the text instructions for ISP Config 3.0/CentOS5.3 after amending the script file to allow for 5.3 rather than 5.2 on ispconfig.org for the most part. I varied them to get the postfix quota patch which is documented only in the HowToForge. The source for postfix is slightly different in 5.3 to 5.2 hence its not quite the same version, but it is the same patch. The only funny around my postfix installation was when I tried to rpm the patched version, I had already installed postfix by this stage so I got a conflict, to fix this I yum removed postfix and the rpm'ed the patched version.

The only other failure I had was amavisd, I installed the dag wieers one and then followed the line that said the config should be /etc/amavisd/amavisd.conf. I moved /etc/amavisd.conf there, but this broke the init.d/amavisd script which used /etc/amavisd.conf. I went back to this but this broke something elses and amavisd did not start. So eventually I edited init.d/amavisd to expect the config file in /etc/amavisd/amavisd.conf. Amavisd now starts fine and the logs indicate it is working.

I double checked these commands and am pretty sure I got them right,

Here is the command history for this part. I include a command number and datestamp so you can see the sequence

As root
Code:
   48   May 07 - 12:52 system-config-securitylevel-tui
   49   May 07 - 12:56 yum install ntp httpd mysql-server php php-mysql php-mbstring rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel phpMyAdmin pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel postfix
   50   May 07 - 13:44 rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.da
   51   May 07 - 13:45 rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dat
   52   May 07 - 13:45 rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
   53   May 07 - 13:46 cd /tmp
   54   May 07 - 13:46 wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
   55   May 07 - 13:46 rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm
   56   May 07 - 13:46 yum update
   57   May 07 - 13:48 yum install getmail
   58   May 07 - 13:48 useradd -m -s /bin/bash compileuser
   59   May 07 - 13:48 passwd compileuser
   60   May 07 - 13:55 su compileuser
   61   May 07 - 14:00 yum install sudo
   62   May 07 - 14:01 vi sudo
   63   May 07 - 14:01 visudo
   64   May 07 - 14:02 su compileuser
Compileuser history (ignore the timestamp here)
Code:
    1   May 08 - 17:13 mkdir $HOME/rpm
    2   May 08 - 17:13 mkdir $HOME/rpm/SOURCES
    3   May 08 - 17:13 mkdir $HOME/rpm/SPECS
    4   May 08 - 17:13 mkdir $HOME/rpm/BUILD
    5   May 08 - 17:13 mkdir $HOME/rpm/SRPMS
    6   May 08 - 17:13 mkdir $HOME/rpm/RPMS
    7   May 08 - 17:13 mkdir $HOME/rpm/RPMS/i386
    8   May 08 - 17:13 mkdir $HOME/rpm/RPMS/x86_64
    9   May 08 - 17:13 echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
   10   May 08 - 17:13 wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.62.2.tar.bz
   11   May 08 - 17:13 wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2
   12   May 08 - 17:13 visudo
   13   May 08 - 17:13 yum install sudo
   14   May 08 - 17:13 sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2
   15   May 08 - 17:13 sudo rpmbuild -ta courier-authlib-0.62.2.tar.bz2
   16   May 08 - 17:13 pwd
   17   May 08 - 17:13 ls
   18   May 08 - 17:13 rm showfiles.php?group_id=5404
   19   May 08 - 17:13 ls -l
   20   May 08 - 17:13 wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.62.2.tar.bz2
   21   May 08 - 17:13 wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2
   22   May 08 - 17:13 ls
   23   May 08 - 17:13 sudo rpmbuild -ta courier-authlib-0.62.2.tar.bz2
   24   May 08 - 17:13 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-0.62.2-1.i386.rpm
   25   May 08 - 17:13 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-mysql-0.62.2-1.i386.rpm
   26   May 08 - 17:13 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-devel-0.62.2-1.i386.rpm
   27   May 08 - 17:13 rpmbuild -ta courier-imap-4.4.1.tar.bz2
   28   May 08 - 17:13 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-imap-4.4.1-1.i386.rpm
   29   May 08 - 17:13 sudo rpmbuild -ta maildrop-2.0.4.tar.bz2
   30   May 08 - 17:13 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/maildrop-2.0.4-1.i386.rpm
and again as root
Code:
  65   May 07 - 14:29 history
   66   May 07 - 14:29 su compileuser
   67   May 07 - 14:31 chkconfig --levels 235 courier-authlib on
   68   May 07 - 14:31 /etc/init.d/courier-authlib start
   69   May 07 - 14:31 chkconfig --levels 235 sendmail off
   70   May 07 - 14:31 chkconfig --levels 235 postfix on
   71   May 07 - 14:31 chkconfig --levels 235 saslauthd on
   72   May 07 - 14:31 /etc/init.d/sendmail stop
   73   May 07 - 14:31 /etc/init.d/postfix start
   74   May 07 - 14:31 /etc/init.d/saslauthd start
   75   May 07 - 14:31 chkconfig --levels 235 courier-imap on
   76   May 07 - 14:31 /etc/init.d/courier-authlib restart
   77   May 07 - 14:31 /etc/init.d/courier-imap restart
Then postfix again as root

Code:
  114   May 07 - 14:48 yum list postfix
  115   May 07 - 14:50 rm postfix-2.3.3-2.src.rpm 
  116   May 07 - 14:50 wget http://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/5.2/os/SRPMS/postfix-2.3.3-2.src.rpm
  117   May 07 - 14:50 l
  118   May 07 - 14:50 ls
  119   May 07 - 14:51 rm po*
  120   May 07 - 14:51 wget http://ftp-stud.fht-esslingen.de/pub/Mirrors/centos/5.3/os/SRPMS/postfix-2.3.3-2.1.el5_2.src.rpm
  121   May 07 - 14:51 rpm -ivh postfix-2.3.3-2.1.el5_2.src.rpm 
  122   May 07 - 14:51 cd /usr/src/redhat/SOURCES/
  123   May 07 - 14:53 wget http://vda.sourceforge.net/VDA/postfix-2.3.3-vda.patch.gz
  124   May 07 - 14:53 cd /usr/src/redhat/SPECS/
  125   May 07 - 14:53 vi postfix.spec 
  126   May 07 - 14:55 rpmbuild -ba postfix.spec
  127   May 07 - 14:56 cd ..
  128   May 07 - 14:56 ls
  129   May 07 - 14:56 cd SOURCES/
  130   May 07 - 14:56 ls
  131   May 07 - 14:56 gunzip postfix-2.3.3-vda.patch.gz
  132   May 07 - 14:56 cd ../SPECS/
  133   May 07 - 14:56 rpmbuild -ba postfix.spec
  134   May 07 - 14:57 yum install ed
  135   May 07 - 14:57 rpmbuild -ba postfix.spec
  136   May 07 - 14:59 cd ../RPMS/i386/
  137   May 07 - 14:59 ls
  138   May 07 - 14:59 ls -l
  139   May 07 - 14:59 rpm -ivh postfix-2.3.3-2.i386.rpm
  140   May 07 - 14:59 rpm -ivh postfix-2.3.3-2.1.i386.rpm 
  141   May 07 - 15:00 service postfix stop
  142   May 07 - 15:00 yum remove postfix
  143   May 07 - 15:01 rpm -ivh postfix-2.3.3-2.1.i386.rpm 
  144   May 07 - 15:01 service postfix on
  145   May 07 - 15:01 service postfix start
Thanks again for the help. There's nothing worse than someone who finds a new way to get it wrong!

Cheers

Rajiv
Reply With Quote