QmailtoasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

CentOS 4 Install

From Qmailtoaster

EZ QmailToaster Fresh Install on CentOS 4

Nick Hemmesch <nick@ndhsoft.com>

Updated July 2, 2005

Test machine: ASUS Pundit, 2.6ghz celeron, 512mb ram, 60gig IDE drive, and a cdr for mondoarchive backups.

We will have GUI access but will operate at runlevel 3.


1. Download CentOS 4 iso's 1 thru 4 from centos.org [1]


2. Use the install option, Custom

  Disk partitioning: (60gig) /home gets 40 gig and / gets the rest.
  SELinux: disabled


3. Packages, select only the following groups:

  X Windows
  KDE - unselect graphics, artwork, pim
  Graphical Internet - select only Firefox and Thunderbird
  
  Sound & Video: select only cdrecord, dvd-rw-tools, k3b, 
  and mkisofs
  Server Configuration Tools
  
  Web Server: add php-mysql to the defaults
  DNS Name Server
  FTP Server
  MySQL Database: add mysql-bench, mysql-server to the defaults
  Development Tools: add expect to the defaults
  Administration Tools: 
  
  System Tools: add mrtg to the defaults


4. After the package installation:

  mkdir /usr/src/qtms-install
  cd /usr/src/qtms-install
  wget http://www.qmailtoaster.com/info/cnt40-deps.sh
  sh cnt40-deps.sh
  (this will take a while)
   
  After cnt40-deps.sh is finished:
  yum -y update
  (this will take a while too)
  REBOOT


5. Prepare to Install QmailToaster:

  wget http://www.qmailtoaster.com/qtms/qtms-svcs.sh
  wget http://www.qmailtoaster.com/qtms/firewall.sh.bz2
  nano -w qtms-svcs.sh
  edit MYSQLPW=your-mysql-password
  ctl-o and enter to save
  ctl-x to exit
  bunzip2 firewall.sh.bz2
  nano -w firewall.sh
  edit MYIP="your-IP-address"
  ctl-o and enter to save
  ctl-x to exit
  sh qtms-svcs.sh
  This script turns on or off all necessary services. Then
  the script sets up your mysql root account, creates and grants
  privileges for your vpopmail mysql account, makes a symlink so
  your krb5 is read properly, edits your php.ini, sets inittab
  to start at runlevel 3, and sets up your firewall.
  Note: You might see some service errors while the script runs,
  don't worry about them.


6. Get QmailToaster Packages:

  wget http://www.qmailtoaster.com/info/current-download-script.sh
  sh current-dowmload-script.sh
  This script downloads all necessary packages into you current
  directory (should be /usr/src/qtms-install/).


7. Install QmailToaster Packages:

  wget http://www.qmailtoaster.com/info/current-install-script.sh
  edit current-install-script.sh and set DISTRO=cnt40 and ARCH=i386
  
  sh current-install-script.sh
  This script installs the latest zlib and the qmailtoaster packages
  (This will take quite a while)


8. Make a self signed certificate:

  cd /usr/share/ssl/certs/
  make stunnel.pem
  Note: common name should be your mail server mail.your-domain.com
  mv stunnel.pem /var/qmail/control/servercert.pem 
  chown root:qmail /var/qmail/control/servercert.pem 
  chmod 644 /var/qmail/control/servercert.pem
  REBOOT


9. Setup QmailToaster:

  qmailctl stat
  (Should look somewhat like this, if you're really slow)

[root@gateway ~]# qmailctl stat clamd: up (pid 2425) 5465 seconds imap4: up (pid 2421) 5465 seconds imap4-ssl: up (pid 2423) 5465 seconds pop3: up (pid 2414) 5465 seconds pop3-ssl: up (pid 2409) 5465 seconds send: up (pid 2416) 5465 seconds smtp: up (pid 2418) 5465 seconds spamd: up (pid 2407) 5465 seconds clamd/log: up (pid 2417) 5465 seconds imap4/log: up (pid 2422) 5465 seconds imap4-ssl/log: up (pid 2424) 5465 seconds pop3/log: up (pid 2415) 5465 seconds pop3-ssl/log: up (pid 2413) 5465 seconds send/log: up (pid 2420) 5465 seconds smtp/log: up (pid 2419) 5465 seconds spamd/log: up (pid 2408) 5465 seconds [root@gateway ~]#

  Add a domain:

/home/vpopmail/bin/vadddomain your-domain.com <postmaster-password>

  Add a user:

/home/vpopmail/bin/vadduser you@your-domain.com <your-password>

       (You can also use QmailAdmin - www.your-domain.com/qmailadmin)         
  Bring up your browser and go to:

http://www.your-domain.com/admin-toaster/ Username: admin Password: toaster

  Change your password . . . 
  Check your mail server:
      http://www.your-domain.com/webmail
      login with your full email address and your password
      send yourself an email - should show right away
      send an email to yourself if you have another address
      Go to your other email account and reply to the message you sent
      In squirrelmail, select the email, select View Full Header and you should 
      find something like the following:

Received: by simscan 1.1.0 ppid: 3675, pid: 3677, t: 0.3578s

           scanners: clamav: 0.85.1/m:31/d:880 spam: 3.0.1
  If Isoqlog doesn't show right away, do this:
      
      sh /usr/share/toaster/isoqlog/bin/cron.sh


10. Logs for all packages except freshclam are at:

      /var/log/qmail/*
      Freshclam is at /var/log/clamav


Regards,

Nick Hemmesch

Retrieved from "http://wiki.qmailtoaster.com/index.php/CentOS_4_Install"

This page has been accessed 4,870 times. This page was last modified on 18 October 2005, at 17:46. Content is available under GNU Free Documentation License 1.2.


Find

Browse
Main page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More...