Setup Qmail on CentOS 4.4

July 18, 2007 on 10:29 am | In Linux Admin, command, Qmail | No Comments

Although Eric Siegel have done great job on how to setup Qmail on Liunx, I’d like to make a notes on how to setup Qmail on CentOS 4.4 Final.

My system is Linux  2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686 i686 i386 GNU/Linux with full latest updates. And also, I have already installed Apache Friends.

So let me start:

Because of " CentOS is an open source free GNU Linux distribution which aims to be 100% compatible with and based on Red Hat Enterprise Linux. " , I choose "Red hat" (from the flavor list)  to start.

————————————————————————-
After I run
./config-fast newemail
I got this  message, it might be useful in the feature.

Now qmail will refuse to accept SMTP messages except to newemail.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!

Note: newemail is my system’s hostname
————————————————————————–
In Part 6

For my case (apache friends)

./configure –enable-cgibindir=/opt/lampp/cgi-bin –enable-htmldir=/opt/lampp/htdocs

After configure it, I got
Current settings
—————————————
vpopmail directory = /home/vpopmail
               uid = 507
               gid = 502
       cgi-bin dir = /opt/lampp/cgi-bin
       vqadmin dir = /opt/lampp/cgi-bin/vqadmin
    mysql features = disabled
—————————————

In opt/lampp/etc/httpd.conf
after line of "Include etc/extra/httpd-default.conf", add
Include etc/extra/httpd-qmail.conf

Then in /opt/lampp/etc/extra/
create a file named httpd-qmail.conf

and edit this file, add contents as follow:

<Directory "/opt/lampp/cgi-bin/vqadmin">
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>


In /opt/lampp/cgi-bin/vqadmin/, there is a file .htaccess, edit it as follow

AuthType Basic
AuthUserFile /opt/lampp/etc/.htpasswd
AuthName vQadmin
require valid-user
satisfy any


and run
chown nobody .htaccess  ( for the apache friends case, the username running apache is nobody)
htpasswd -bc /opt/lampp/etc/.htpasswd admin ‘admin_password’

—————————————————————————


In part 8

after configure
I got

 qmailadmin 1.2.9
            Current settings
—————————————
       cgi-bin dir = /opt/lampp/cgi-bin
          html dir = /opt/lampp/htdocs
         image dir = /opt/lampp/htdocs/images/qmailadmin
         image URL = /images/qmailadmin
      template dir = /usr/local/share/qmailadmin
         qmail dir = /var/qmail
      vpopmail dir = /home/vpopmail
   autorespond dir = /usr/bin
         ezmlm dir = /usr/local/bin/ezmlm
         ezmlm idx = yes
   mysql for ezmlm = yes
              help = no
      modify quota = no
   domain autofill = no
 modify spam check = no
——————————————————————————-
In part 11 I got
[root@newemail lib]# qmailctl stat
/service/qmail-send: up (pid 8454) 12 seconds
/service/qmail-send/log: up (pid 8455) 12 seconds
/service/qmail-smtpd: up (pid 8460) 12 seconds
/service/qmail-smtpd/log: up (pid 8465) 12 seconds
/service/qmail-pop3d: up (pid 8468) 12 seconds
/service/qmail-pop3d/log: up (pid 8469) 12 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
———————————————————————————

Incompetent power supply could cause hard drive error

July 14, 2007 on 9:16 pm | In command | No Comments

It’s very interesting! see someone discussed it here

If you are serious on  your business, don’t save money on the hardware, you will pay more on the labor cost!

By the way, this command might be useful on checking hard drive

smartctl

For example:

smartctl -a /dev/* (* can be hda, hdb, sda, sdb etc.)

Sync time with the time server

July 6, 2007 on 8:58 pm | In command | No Comments

Just some command to remember

ntpdate ca.pool.ntp.org (or rdate -s ca.pool.ntp.org)
date
hwclock –systohc
hwclock

PC over IP

June 20, 2007 on 10:28 pm | In Linux Admin | No Comments

Just learned from news paper that Teradici  introduced its amazing PC-over-IP product. Back to decade or so ago, thin client was a hot topic but it was not success as a true product. However, a lot of things have been changed, high speed Internet, high energy cost, high labor cost etc. I bet this company will be successful in the near future.

Avoid using the “same” name in SVN repository

May 23, 2007 on 1:25 pm | In SVN, Linux Admin | No Comments

In Linux, the file name is case-sensitive whereas in Windows it is not.

When I commit two files like "file.php" and "File.php" under Linux, it is ok. However, when I update it under Windows, it cause problem.

« Previous PageNext Page »
Since May 6,2007 We have Visitors
dog ramps

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^