Article Title: SOLARIS + QMAIL + VPOPMAIL + IGENUS + QMAILAMDIN. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. preparations:
Install gcc, make, autoconf, automake, and other compilation tools, establish network connections, and configure domain names.
Ii. Install the patch tool:
# Gzip? D patch-2.5.4-sol8-intel-local.gz
# Pkgadd? D patch-2.5.4-sol8-intel-local
# Mv/usr/bin/patch. bak
# Cp/usr/local/bin/patch/usr/bin/patch
3. Install ucspi-tcp-0.88
# Gzip-d ucspi-tcp-0.88.tar.gz
# Tar xvf ucspi-tcp-0.88.tar
# 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
4. Install qmail
1. Create a directory:
# Mkdir/var/qmail
# Mkdir/var/qmail/alias
2. Create a group and a user:
# Groupadd nofiles
# Groupadd qmail
# Useradd-g nofiles-m-d/var/qmail/alias-s/bin/false alias
# Useradd-g nofiles-m-d/var/qmail-s/bin/false qmaild
# Useradd-g nofiles-m-d/var/qmail-s/bin/false qmaill
# Useradd-g nofiles-m-d/var/qmail-s/bin/false qmailp
# Useradd-g qmail-m-d/var/qmail-s/bin/false qmailq
# Useradd-g qmail-m-d/var/qmail-s/bin/false qmailr
# Useradd-g qmail-m-d/var/qmail-s/bin/false qmails
Modify the qmail-smtpd.c to change 451 in the straynewline function to 553. (In line 53)
Search for "http: //" twice and change the url as follows (this can make QMAIL more secure ):
Void straynewline () {out ("451 See http://nero.3322.org. \ r \ n ");
Out ("214 llzqq home page: http://nero.3322.org \ r \ n ");
# Make setup check
When an error occurs, modify the CC in the auto-ccld.sh file and LD to your environment.
#./Config-fast nero.3322.org
4. Add an alias User:
# Touch/var/qmail/alias/. qmail-root
# Touch/var/qmail/alias/. qmail-postmaster
# Touch/var/qmail/alias/. qmail-mailer-daemon
5. If postfix and sendmail exist, disable the current mail service.
# Ln-s/var/qmail/bin/sendmail/usr/sbin/sendmail
# Chmod 777/usr/sbin/sendmail
3. Add the mysql vpopmail user to operate the vpopmail database.
# Mysql-u root? P ******
Mysql> create database vpopmail;
Mysql> grant all on vpopmail. * to vpopmail @ localhost identified by "password ";
4. Compile and install vpopmail
# Gzip-d vpopmail-5.2.1.tar.gz
# Tar xvf vpopmail-5.2.1.tar
# Cd vpopmail-5.2.1
# Vi vmysql. h
===================================== Vmysql. h ======================================
# Define MYSQL_UPDATE_SERVER "localhost" (mysql server name)
# Define MYSQL_UPDATE_USER "vpopmail" (user name)
# Define MYSQL_UPDATE_PASSWD "*****" (change to the password you set)
# Define MYSQL_READ_SERVER "localhost" (mysql server name)
# Define MYSQL_READ_USER "vpopmail" (user name)
# Define MYSQL_READ_PASSWD "*****" (change to the password you set)
Add \ After 54 and 58 rows \
# Define TABLE_LAYOUT "pw_name char (32) not null ,\
Pw_domain char (64) not null, <=== 54
Pw_passwd char (40 ),\
Pw_uid int, pw_gid int ,\
Pw_gecos char (4 ,\
Pw_dir char (160), <=== 58
Pw_shell char (20 ),\
Primary key (pw_name, pw_domain )"
===================================== Vmysql. h ======================================
If it fails, you must first Delete the created domain (vdeldomain name ),
#./Vadduser llzqq@nero.3322.org
#./Vadduser test@nero.3322.org
If domain already exists is prompted when Domain is added, but domain not exist is prompted when Domain is deleted, the following processing method is used.
Delete domain information in the rcpthosts and virtualdomains files under the/var/qmail/control directory, and delete domain information in the assign files under the/var/qmail/user directory; then run/var/qmail/bin/qmail-newu. at this time, the domain can be added normally.
If you use smtp with verification, the smtp process must use setuid and setgid to call the password verification program. The setgid operation can be completed only when the vchkpw permission is improved.
2. Install ipv5checkpw
# Gzip-d cmd5checkpw-0.22.tar.gz
# Tar xvf cmd5checkpw-0.22.tar
# Cd cmd5checkpw-0.22
# Make
# Mkdir/usr/man/man8
# Make install
VII. Generate the qmail Startup Script
# Cp/var/qmail/boot/home/var/qmail/rc
Modify the rc file to determine the delivery method:
# Vi/var/qmail/rc
Note that the commands in these three files should be written in one line.
======================================================= ==========================================
#! /Bin/sh
# Using splogger to send the log through syslog.
# Using dot-forward to support sendmail-style ~ /. Forward files.
# Using qmail-local to deliver messages ~ /Mailbox by default.
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