RedHat 9.0 under the installation of Igenus record

Source: Internet
Author: User
Tags auth mkdir touch qmail

Install Igenus bluelotus 2003.06.16 Redhat9.0+qmail+smtp-auth+vpopmail+mysql+igenus under REDHAT9.0, example: Http://0874.cn/mail

installation environment and preparation work

Install Redhat9.0, install the installation of Apache, PHP, MySQL, you can save yourself from the trouble of compiling the installation, MySQL should pay attention to choose Mysql-devel Development Package, MySQL header files and library files in/usr/include/ MySQL and/usr/lib/mysql.

After installing Redhat9.0, modify the/etc/httpd/conf/httpd.conf to enable the Web service to function properly and add the root user's password for MySQL. If you set up a firewall, open the SMTP 25 and POP3 1102 ports on the server.

Second, install ucspi-tcp-0.88

1. Download the corresponding software and patches, due to the redhat9.0 version of the glibc problem, must be patched to normal compilation.

wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz

wget Http://qmail.te8.com/rpms/glibc-2.3.1/ucspi-tcp-0.88.a_record.patch

wget Http://qmail.te8.com/rpms/glibc-2.3.1/ucspi-tcp-0.88.errno.patch

wget Http://qmail.te8.com/rpms/glibc-2.3.1/ucspi-tcp-0.88.nobase.patch

2. Install ucspi-tcp-0.88

#tar ZXVF ucspi-tcp-0.88.tar.gz

#cd ucspi-tcp-0.88

#patch-p1 < ... /ucspi-tcp-0.88.a_record.patch

#patch-p1 < ... /ucspi-tcp-0.88.errno.patch

#patch-p1 < ... /ucspi-tcp-0.88.nobase.patch

#make

#make Setup Check

Iii. installation of QMail

1. Download software and patches:

wget http://cr.yp.to/software/qmail-1.03.tar.gz
wget http://www.ckdhr.com/ckd/qmail-103.patch
wget http://www.qmail.org/qmailqueue-patch
wget http://www.shupp.org/patches/qmail-maildir++.patch
wget http://qmail.te8.com/rpms/glibc-2.3.1/qmail-1.03.errno.patch
wget http://qmail.te8.com/rpms/glibc-2.3.1/qmail-1.03.qmail-local.patch
wget http://members.elysium.pl/brush/qmail-smtp-auth/dist/qmail-smtpd-auth-0.31.tar.gz

2. Directory creation:

# mkdir /var/qmail
# mkdir /var/qmail/alias

3. Construction Group and users:

# groupadd nofiles
# groupadd qmail
# useradd alias -g nofiles -d /var/qmail/alias -s /nonexistent
# useradd qmaild -g nofiles -d /var/qmail -s /nonexistent
# useradd qmaill -g nofiles -d /var/qmail -s /nonexistent
# useradd qmailp -g nofiles -d /var/qmail -s /nonexistent
# useradd qmailq -g qmail -d /var/qmail -s /nonexistent
# useradd qmailr -g qmail -d /var/qmail -s /nonexistent
# useradd qmails -g qmail -d /var/qmail -s /nonexistent

4. Patching and editing installation QMail

#tar zxvf qmail-1.03.tar.gz
#tar zxvf qmail-smtpd-auth-0.31.tar.gz
#cp qmail-smtpd-auth-0.31/base64.* qmail-1.03 //安装smtp-auth补丁,支持smtp认证
#patch -d qmail-1.03 < qmail-smtpd-auth-0.31/auth.patch
#cd qmail-1.03
#patch -p1 < ../qmail-103.patch
#patch -p1 < ../qmailqueue-patch
#patch -p1 < ..qmail-maildir++.patch
#patch -p1 < ..qmail-1.03.errno.patch
#patch -p1 < ..qmail-1.03.qmail-local.patch
#vi qmail-smtpd.c //将函数straynewline中的451改为553
# make setup check
# ./config-fast test.mydomain.com

5. Add alias User:

# touch /var/qmail/alias/.qmail-root
# touch /var/qmail/alias/.qmail-postmaster
# touch /var/qmail/alias/.qmail-mailer-daemon

6. If there are postfix and SendMail, deactivate the current mail service

#/etc/rc.d/init.d/sendmail stop
#cp /var/qmail/bin/sendmail /usr/sbin/qmail.sendmail
#rm -f /etc/alternative/mta
#ln -s /usr/sbin/qmail.sendmail /etc/alternative/mta
Redhat9.0已经考虑到了使用其它邮件服务器代替sendmail的情况,因为本身就提供postfix和sendmail两种选择。

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.