FRESHMEAT SLASHDOT RPMFIND
Search: 
 12:10:59 CET 
Home HOWTO's Distributions Links References Quint
 Fri 24-Nov 2017 
Main Menu
Projects
Security Focus
 
qmail HOWTO

qmail-install-HOWTO



This HOWTO describes how to install qmail from the provided source RPM's.
  • Build the first four packages.

    • rpm --rebuild daemontools-0.70-2.src.rpm
      rpm --rebuild supervise-scripts-3.3-quint1.src.rpm
      rpm --rebuild ucspi-tcp-0.88-1.src.rpm
      rpm --rebuild ucspi-unix-0.34-1.src.rpm

  • Install these packages and start supervise

    • rpm -Uvh /usr/src/redhat/RPMS/i386/daemontools-0.70-2.i386.rpm
      rpm -Uvh /usr/src/redhat/RPMS/i386/ucspi-tcp-0.88-1.i386.rpm
      rpm -Uvh /usr/src/redhat/RPMS/i386/ucspi-unix-0.34-1.i386.rpm
      rpm -Uvh /usr/src/redhat/RPMS/noarch/supervise-scripts-3.3-quint1.i386.rpm
      telinit q

  • Finally build the qmail package and install it

    • rpm --rebuild qmail-1.03+patches-quint2.src.rpm
      rpm -Uvh /usr/src/redhat/RPMS/i386/qmail-1.03+patches-quint2.i386.rpm

  • Check the following configuration files to see if qmail found the correct domain and host names.

    • /etc/qmail/control/defaultdomain
      /etc/qmail/control/defaulthost
      /etc/qmail/control/locals
      /etc/qmail/control/me
      /etc/qmail/control/rcpthosts

  • If you changed anything in the above files use svc-restart qmail to activate the changes.
  • Edit the file /etc/qmail/alias/.qmail-root and put a username or mail adres of the user that will receive mail addressed to root.
    • If you put a remote address user@otherdomain in .qmail-root your finished.
    • If you put a local user in .qmail-root make sure you use maildirmake for that user.
  • Finished.
  • For additional services
    • For smtp support use svc-add /var/qmail/services/smtpd smtpd
    • For pop3 support use svc-add /var/qmail/services/pop3d pop3d
  • To use multilog instead of the standard splogger do the following.

      mkdir -p /var/log/qmail/pop3d
      mkdir -p /var/log/qmail/qmail
      mkdir -p /var/log/qmail/smtpd
      chmod -R 700 /var/log/qmail
      chown -R qmaillog:qmail /var/log/qmail
      echo /usr/local/bin/multilog t s99999 n20 /var/log/qmail/{} > /etc/qmail/control/logger
      # where s99999 is the maximum size of one log file
      # and n20 the number of log files kept

  • To allow relaying for lets say all ip's in the range 192.168.

      echo 192.168.:allow,RELAYCLIENT=\"\" > /etc/tcpcontrol/smtp.rules
      tcprules /etc/tcpserver/smtp.cdb /etc/tcpserver/smtp.rules.tmp < /etc/tcpcontrol/smtp.rules
      svc-restart smtpd

  • A personal note: After i rebuild the RPM's i installed and tested it on 8 machines in about 45 minutes.


All RPM's are build on Redhat 6.2 with rpm version 4.0.2
Willy De la Court
Last modified: Thue 15 May 2001 23:08:25 CEST
 
Login :
Username:
Password: