Qmail Toaster for Red Hat 9
Compliments of Miguel Biccari
Last updated September 27, 2003
nick@ndhsoft.com


Be sure to check out the mailing lists and archives at:
 

http://www.qmailtoaster.com
 

Also, these very good sites:

Topacio SmartSite INSTALL

and

Mark Patrick's Red Hat 8.0 Install

 



Q
mail Toaster installation:

Check to insure that you have the following packages installed:

  • crontabs
  • expect
  • freetype, freetype-devel
  • gd, gd-devel
  • gdbm, gdbm-devel
  • httpd, httpd-devel
  • libjpeg, libjpeg-devel
  • libpng, libpng-devel
  • mrtg
  • mysql, msql-devel, mysql-server
  • openssl, openssl-devel
  • pam-devel
  • php, php-devel, php-imap
  • zlib-devel

    Click here to see my install
 

Remove sendmail, postfix & imap:

rpm -e –-nodeps sendmail sendmail-cf imap postfix fetchmail mutt


Make a dir to hold the files (/usr/src/qmailtoaster).

Go to http://qmailtoaster.clikka.com and download all the source rpms for the latest stable version of Qmail Toaster.
 

  • Be sure your hostname and DNS are setup properly:

     
  • Be sure you have downloaded qmailmrtg-toaster-3.4-1.0.7.src.rpm

     
  • Create mysql administrative account:

       mysqladmin -u root password yourpassword

       mysqladmin -u root -p reload

       mysqladmin -u root -p refresh

     

  • The source files must be compiled and installed in this exact order.

     
  • Compile and install daemontools-toaster:

       rpmbuild -–rebuild -–with rht90 daemontools*.src.rpm

    Note: If you have errors, check the error to see what package you need to install to satisfy the dependencies and do so. If all is well, then:

       Go to /usr/src/redhat/RPMS/i386 and install the package:

       rpm –ivh daemontools*.rpm

     
  • Compile and install ucspi-tcp-toaster.

     
  • Compile qmail-toaster, but only install qmail-toaster and qmail-toaster-doc, do not install qmail-pop3d-toaster until after vpopmail-toaster is installed. (Take note of the installation message)

     
  • Compile and install vpopmail-toaster. (Take note of the installation message)

     
  • Install qmail-pop3d-toaster.

     
  • Create a database named "vpopmail":

       mysqladmin create vpopmail -u root -p

       mysqladmin -u root -p reload

       mysqladmin -u root -p refresh

     

  • Set password for vpopmail the same as in /var/qmail/control/sql:

       Make the password anything you want.  Edit sql . . .

       echo "GRANT ALL PRIVILEGES ON vpopmail.* TO vpopmail@localhost
       IDENTIFIED BY 'SsEeCcRrEeTt'" | mysql -u root -p

       mysqladmin -u root -p reload

       mysqladmin -u root -p refresh

     

  • Compile and install courier-imap-toaster.

    (Note: This compile takes a while)

     
  • Compile and install autorespond-toaster.

     
  • Compile and install maildrop-toaster.

     
  • Compile and install control-panel-toaster.

    (Take note of the installation message)

    (Note: these rpms are compiled in /usr/src/redhat/RPMS/noarch)

     
  • Compile and install ezmlm-toaster.

     
  • Compile and install qmailadmin-toaster.

     
  • Compile and update qmailmrtg-toaster.

    (Note: rpm –Uvh qmailmrtg*.rpm - updates mrtg)

     

  • Compile and install vqadmin-toaster.

     
  • Compile and install horde-toaster.

    (Note: these rpms are compiled in /usr/src/redhat/RPMS/noarch)

     
  • Check to see if qmail is running:

       service qmail start

       service qmail stat

     

  • Edit /etc/php.ini and set:

       short_open_tag = On

       register_globals = On

     

  • Edit /etc/httpd/conf.d/php.conf:

       LimitRequestBody 2097152 (allow 2MB attachments)

     
  • Edit /etc/httpd/conf/httpd.conf:

       DirectoryIndex index.html index.html.var index.php

     

  • Install the latest version of Pear (Horde needs this):

       http://www.horde.org/pear/

       extract it to /usr/share/pear

     

  • Restart httpd:

       apachectl restart

     

  • Open admin-toaster:

       Browser to http://yourdomain/admin-toaster/

       Username: admin

       Password: toaster

       Add your domain and a user

     

  • Open horde-toaster:

       Browse to http://yourdomain/horde-toaster/

       Login as user@yourdomain
     


That should do it . . .

 

Here are some things to make life a little easier:

  • Root messages sent to your email address:

      vi /var/qmail/alias/.qmail-root

      replace &nobody with &you@yourdomain.com
 

  • Qmail control in path:

      ln -s /etc/rc.d/init.d/qmail /usr/bin/qmailctl

      qmailctl {start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue|help}
 

  • Customize Horde:
     

     vi /path-to/htdocs/horde/imp/config/trailer.txt

      edit or eliminate email footer text as you desire



Nick Hemmesch



Add Turba, Kronolith, Mnemo and Nag to Horde Toaster: more info
 



A simple iptables firewall
: iptables-script
 


 


Hit Counter