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

Copy files between two linux boxes

May 20, 2007 on 10:09 pm | In Linux Admin, command | No Comments

Both NFS and FTP can do this job well. However the linux scp command can do it even better. scp is part of the OpenSSH package. It is installed by default on CentOS.

Scp’s usage is similar with cp, it does not support anonymous downloads.For example:

scp -rv user@host:/path/to/source/* /path/to/destination/

will copy all files/subdirectories under /path/to/source/ to /path/to/desination/

Note: WinSCP is also a powerful tool. It can be download here.

« Previous 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^