It does get easier every time. I'm not sure if that's me getting better or the software getting easier. Probably a little of both. Here's a big chunk of my day yesterday getting CentOS 5.3 with qmailtoaster, apache, mysql, and PHP up and running.

Minimal install (just 'base' - nothing else) CentOS 5.3 i386 (only need CD 1 of 6)

But networking didn't work. To fix:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
add:
TYPE=Ethernet
GATEWAY=xx.xx.xx.xx
ifconfig eth0 up
service network restart vi /etc/yum.repos.d/CentOS-Base.repo
and uncomment the

#baseurl=

line from [base] [update] [addons] and [extras] sections

Then do:
yum update

yum install httpd php mysql-server mysql mysql-devel php-mysql gcc gcc-c++ rpm-build 
zlib-devel libtool libtool-ltdl-devel libtool-ltdl automake autoconf gdbm-devel expect 
mrtg pcre-devel bzip2-devel gmp-devel curl-devel libidn-devel
(should be all one line of course.)
chkconfig mysqld on
chkconfig httpd on
(last two lines to get apache and mysql to start automatically on reboot)
shutdown -r now
(because yum update updated the kernel and we need to reboot or qmailtoaster will complain)
mysql -uroot
mysql: use mysql;
mysql: update mysql.user SET Password = 'newrootpassword' where User = 'root';
mysql: delete from user where User = '';
mysql: drop database test;
mysql: exit;
yum remove sendmail
(qmailtoaster doesn't want sendmail - I think I could have not included in the initial install but I didn't.)
rpm -Uvh http://qtp.qmailtoaster.com/trac/downloads/1
yum install qmailtoaster-plus
qtp-newmodel
(say 'y' to all the install toaster options and 'y' to unioned sandbox)

qtp-newmodel is slick, but it doesn't make the vpopmail database, so in mysql do:

mysql: create database vpopmail;
mysql: grant all on vpopmail.* to 'vpopmail'@'localhost' identified by 'passwordhere';
mysql: flush privileges;

Then change the /home/vpopmail/etc/vpopmail.mysql file with whatever you chose for 'passwordhere' above.

The only catch is that the long 'yum install httpd php mysql...' line was originally just those three things, and everything else was added one at a time as I was trying to get qmailtoaster to run (i.e., try to install it; fail; read in the logs what was missing; yum install that one thing; repeat.) So I didn't really install them all at once like that. Still, I don't see why it wouldn't work this way.

And I guess there are probably people out there who would think I'm crazy for running qmail. It's clearly solid and powerful, no one disputes that, but the community seems to have standardized away from it a bit. Some of it had to do with the personality of the original author. But I'm won over by the community. The mailinglist is extremely responsive and helpful. That really means a lot to me. So qmail it is.
- jim 9-19-2009 4:13 pm

for us lay people

qmail is a mail transfer agent that runs on Unix. It was written, starting December 1995, by Daniel J. Bernstein as a more secure replacement for the popular Sendmail program. qmail's source code is released to the public domain, making qmail free software.

- Skinny 9-20-2009 1:01 pm





add a comment to this page:

Your post will be captioned "posted by anonymous,"
or you may enter a guest username below:


Line breaks work. HTML tags will be stripped.