Qmail installation in Linux

Source: Internet
Author: User
Tags qmail
How to install Qmail in a Linux environment-Linux Enterprise Application-Linux server application information. Installation Platform: Linux
Version: qmail-1.03
Installed machine: mail.mydomain.com
  
   Software Package:
Qmail-1.03 qmail Basic System
Ucspi-tcp-0.88 tcpsever Service Program
Daemontools-0.70 monitoring tools
Checkpassword-0.81 pop3 USER verification program
Ezmlm-0.53 Email Forwarding
Vpopmail-4.9.6-1 virtual domain user pop3 support
Qmailadmin-0.35 virtual domain web Management
Autorespond-1.0.0 auto-reply Program
Web mail sqwebmail-1.2.0
Vqsignup-0.4 web-based user registration
  
   Software Source:
Http://www.qmail.org
Http://www.inter7.com/qmail
You must carefully read the INSTALL and FAQ before installing each package. You can solve many problems in the FAQ.
  
   Installation steps:
1. # mkdir/var/qmail
2. # groupadd nofiles
# Useradd-g nofiles-d/var/qmail/alias
# Useradd-g nofiles-d/var/qmail qmaild
# Useradd-g nofiles-d/var/qmail qmaill
# Useradd-g nofiles-d/var/qmail qmailp
# Groupadd qmail
# Useradd-g qmail-d/var/qmail qmailq
# Useradd-g qmail-d/var/qmail qmailr
# Useradd-g qmail-d/var/qmail qmails
3. # tar xzvf qmail-1.03.tar.gz
Go to the qmail directory, read the README and INSTALL files carefully, and then compile qmail.
# Make setup check
4. # cd qmail-1.03
#./Config
5. Create a system alias
# (Cd ~ Alias; touch. qmail-postmaster. qmail-mailer-daemon.
Qmail-root)
# Chmod 644 ~ Alias/. qmail *
  
6. # cp/var/qmail/boot/home/var/qmail/rc
# Chmod 755/var/qmail/rc
  
?? /Var/qmail/rc
Modify./Mailbox? ./Maildir, as follows:
  
#! /Bin/sh
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages ~ /Maildir by default.
Exec env-PATH = "/var/qmail/bin: $ PATH"
Qmail-start./Maildir/splogger q
  
Where is the splogger qmail Command Used ?? ⒓ O ?? N ?? In.
Create? Movie? Br/> $/var/qmail/bin/maildirmake/etc/skel/Maildir
$ Echo./Maildir/> ~ /. Qmail
Note that Maildir is required ?? Why? All users, chown? More ,? K to chmod 700
Maildir? OK? Too many? Br/>
7. Question? Ucspi-tcp-0.88
# Tar zxvf ucspi-tcp-0.88.tar.gz
# Cd ucspi-tcp-0.88
# Make
# Make setup check
? Why? N? Otherwise, B is in/usr/local/bin.
  
8. Ann? Checkpassword
# Tar zxvf checkpassword-0.81.tar.gz
# Cd checkpassword-0.81
# Make
# Make setup check
# Chmod og-rx/bin/checkpassword
? Why? N checkpassword? Otherwise, B is in/bin.
If you do not open mail to users in/etc/passwd, you do not need to install checkpassword. You only need to install vpopmail.
  
9.? Daemontools
# Tar zxvf daemontools-0.70.tar.gz
# Cd daemontools-0.70
# Make
# Make setup check
? Why? N ?? Limit B to/usr/local/bin
After installing this tool, you can use
# Mkdir/var/run/qmail
# Supervise/var/run/qmail/var/qmail/rc
To start qmail, you can use svc to disable live restart qmail, and use svstat to monitor qmail running status,
(Qmail FAQ)
  
10. Install vpopmail
# Groupadd vchkpw
# Useradd-g vchkpw vpopmail
# Mkdir ~ Vpopmail/etc
# Echo ": allow"> ~ Vpopmail/etc/tcp. smtp
# Tar zvfz vpopmail-4.9.6-1.tar.gz
# Cd vpopmail-4.9.6-1
#./Configure -- enable-roaming-users = y
-- Enable-default-domain = mydomain.com -- enable-passwd = n
# Make
# Make install-strip
  
# Crontab-e
40 ***/home/vpopmail/bin/clearopensmtp 2> & 1>/dev/null
  
# Cd/home/vpopmail/bin
#./Vadddomain mydomain.com mydomain
Append mydomain.com to/var/qmail/control/rcpthosts
  
  
11. Stop sendmail server ?? Br/> # killall-TERM sendmail (Linux)
Then replace the original sendmail with sendmail libraby of qmail.
# Mv/usr/lib/sendmail. old
# Mv/usr/sbin/sendmail. old
# Ln-s/var/qmail/bin/sendmail/usr/lib/sendmail
# Ln-s/var/qmail/sbin/sendmail/usr/sbin/sendmail
Remove sendmail ?? ? Linux? Why ?? Br/> remove sendmail from inetd. conf? And sendmail ??? N. (Linux)
  
  
12 .??? Mail SMTP, POP3 daemon system? Server ?? Br/>
Create SMTP? Letter ?? T
Create/etc/tcp. smtp? Hot ?? Br/>: allow
Here? Wei? Lient end? Outbound? Send mail
To reject? Some IP addresses? Output Relay? T change? /Etc/tcp. smtp:
1.2.3.4: allow, RELAYCLIENT = ""
127.: allow, RELAYCLIENT = ""
So all the addresses except 1.2.3.4 and 127. * are? Alimail ^? Send a letter.
     
Next? Why? D? Q tcp. smtp? Cdb format.
#/Usr/local/bin/tcprules/etc/tcp. smtp. cdb/etc/tcp. smtp. tmp <
/Etc/tcp. smtp
  
NOTE: If? What is tcp. smtp? More, all required ??? Tcprules ?? Q Cheng? Cdb ??? Why? Br/> In addition, if? Why? T indicates rejection? All? Send, because? Yoke? ?? T ?? Eny.
So far ,? Send ?? T has been created. Later? Why ?? T ?? Qmail-smtpd.
  
? Set SMTP and POP3 daemon ??? Br/>? Removed inetd. conf? Smtp and pop3? Set (plus #?)
?? /Etc/services, change? ORACLE:
  
Smtp 25/tcp mail
# Pop-3 110/tcp # pop version 3
# Pop-3 110/udp
POP3. 110/tcp
Pop3 110/udp
  
?? SMTP:
/Usr/local/bin/tcpserver-v-x/etc/tcp. smtp. cdb
-U UID-g GID 0 smtp/var/qmail/bin/qmail-smtpd 2> & 1
|/Var/qmail/bin/splogger smtpd 3 &
  
UID and GID? Why is the qmail system omitted ?? Why? Qmaild User ID and nofiles group ID.
/Var/qmail/bin/splogger ??? Og? N ?? In/var/log/maillog.
  
?? POP3:
????? N Add the following? Set:
Tcpserver-H-R 0 pop3
/Var/qmail/bin/qmail-popup mail.mydomain.com
/Home/vpopmail/bin/vchkpw/var/qmail/bin/qmail-pop3d Maildir &
  
Create a file qmail under/etc/rc. d/init. d. The content is as follows:
-------------------------------------------
#! /Bin/sh
  
Case "$1" in
Start)
Echo-n "start qmail :"
/Var/qmail/rc &
Echo "."
  
Echo-n "start smtp service :"
/Usr/local/bin/tcpserver-v-x/etc/tcp. smtp. cdb
-U UID-g GID 0 smtp/var/qmail/bin/qmail-smtpd 2> & 1
|/Var/qmail/bin/splogger smtpd 3 &
Echo "."
  
Echo-n "start pop3 service :"
Tcpserver-H-R 0 pop3
/Var/qmail/bin/qmail-popup mail.mydomain.com
/Home/vpopmail/bin/vchkpw/var/qmail/bin/qmail-pop3d Maildir &
Echo "."
;;
Stop)
Echo-n "stop qmail :"
Echo "."
;;
*)
Exit 1
;;
Esac
  
Exit 0
-----------------------------------------------------
# Cd ../rc3.d
# Ln-s ../init. d/qmail S98qmail
  
  
Qmailadmin WEB-based qmail Management
  
1 ezmlm
$ Make
$ Make man
# Make setup
  
2 autorespond
Gcc-Wall-o autorespond. c
Cp autorespond/usr/local/bin/autorespond
  
3 qmailAdmin
  
3.1. Before we can make and install there are a few things to consider ..
  
A. do you have a vpopmail user and installed vchkpw
B. where is your cgi bin directory
C. where is your ezmlm directory
D. where is your autorespond directory
If you are missing any one of those you can stop reading this now and go
Install it !!
  
3.2 install
  
#./Configure
# Make
# Make install-strip
  
Open Path http://mail.mydomain.com/cgi-bin/qmailadmin in browser
User postmaster; domain mydomain.com; Password: mydomain
  
WebMail -- SqWebmail
# Tar xvfz sqwebmail-1.2.0.tar.gz
# Cd sqwebmail-1.2.0
#./Configure -- without-authpam -- without-authuserdb -- enable-webpass = no
-- Without-authpwd -- without-authshadow
# Make configure-check
# Make (db. h, cp/usr/include/db1/db. h cannot be found when I make
/Usr/include/db. h)
# Make check
# Make install-strip
# Make install-configure
Open Path http://mail.mydomain.com/cgi-bin/sqwebmail in browser
  
Vqsignup
# Tar xvfz vqsignup-0.4.tar.gz
# Cd vqsignup-4.0
INSTALL
Related Article

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.