Article Title: configure the Mail server in LINUX. 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.
With the rapid development of the Internet, email has become an indispensable communication tool in people's life. Setting up an email system is relatively troublesome. You can check a lot of relevant information on the Internet. I am really grateful to so many enthusiastic netizens for making this network more powerful. I have always wanted to set up my own MAIL server. Due to the relationship between time and conditions, I had encountered a variety of problems when I had time to focus on it, with my belief that I would never give up, the mail server I set up was finally achieved. Of course, there are too many imperfections in the function. I will make up for it in the future to make it more powerful. This attempt has many feelings, and learning is a never-ending process,
Never stop at a place and stick to it. If you encounter a problem, you must solve it and find fun in your life. Below I will write my own installation process, not asking the majority of users to give advice, just asking myself to be able to three provinces. Believe in yourself, grow one day, and accumulate one day.
The installation of ucspi-tcp is used to establish the client-server tcp background program.
[Root @ mail] # tar zxvf ucspi-tcp0.88.tar.gz
[Root @ mail] # cd ucspi-tcp-0.88
[Root @ mail] # make
[Root @ mail ucspi-tcp-0.88] # make setup check
./Install
./Instcheck
Install daemontools
?????? Is the replacement of inetd and winetd, it is used to listen to qmail-send, qmail-smtpd, qmail-pop3d
[Root @ mail ucspi-tcp-0.88] # mkdir-p/package
[Root @ mail ucspi-tcp-0.88] # chmod 1755/package/
[Root @ mail ucspi-tcp-0.88] # cd/package/
[Root @ mail package] # tar zxvf daemontools-0.76.tar.gz
[Root @ mail package] # cd admin/daemontools-0.76/
[Root @ mail daemontools-0.76] # patch-p1
Patching file src/error. h
[Root @ mail daemontools-0.76] # package/install
Adding svscanboot to inittab...
Init shoshould start svscan now.
The test is as follows:
[Root @ mail httpd-2.0.50] # sleep 5
[Root @ mail httpd-2.0.50] # ps ax | grep svscan
31570? S 0: 00/bin/sh/command/svscanboot
31572? S 0: 00 svscan/service
31580 pts/1 S grep svscan
Install qmail ??? The main character of this article is one of the most widely used mail systems in the world.
[Root @ mail] # tar zxvf qmail-1.03.tar.gz
[Root @ mail] # cd qmail-1.03
[Root @ mail qmail-1.03] # patch-p1 <../qmail-1.03.errno.patch
Patching file cdb_seek.c
Patching file dns. c
Patching file error.3
Patching file error. h
[Root @ mail qmail-1.03] # mkdir/var/qmail
[Root @ mail qmail-1.03] # groupadd nofiles
[Root @ mail qmail-1.03] # useradd-g nofiles-d/var/qmail/alias
[Root @ mail qmail-1.03] # useradd-g nofiles-d/var/qmail qmaild
[Root @ mail qmail-1.03] # useradd-g nofiles-d/var/qmail qmaill
[Root @ mail qmail-1.03] # useradd-g nofiles-d/var/qmail qmailp
[Root @ mail qmail-1.03] # groupadd qmail
[Root @ mail qmail-1.03] # useradd-g qmail-d/var/qmail qmailq
[Root @ mail qmail-1.03] # useradd-g qmail-d/var/qmail qmailr
[Root @ mail qmail-1.03] # useradd-g qmail-d/var/qmail qmails
[Root @ mail qmail-1.03] # make
[Root @ mail qmail-1.03] # make setup check
[Root @ mail qmail-1.03] #./config-fast mail.china-yr.com
Your fully qualified host name is mail.china-yr.com.
Putting mail.china-yr.com into control/me...
Putting china-yr.com into control/defaultdomain...
Putting china-yr.com into control/plusdomain...
Putting mail.china-yr.com into control/locals...
Putting mail.china-yr.com into control/rcpthosts...
Now qmail will refuse to accept SMTP messages failed t to mail.china-yr.com.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
[Root @ mail qmail-1.03] # cd ~ Alias; touch. qmail-postmaster. qmail-mailer-daemon. qmail-root
[Root @ mail alias] # chmod 644 ~ Alias/. qmail *
In linux/WebMail/qmailctl.txt "> ftp://ftp.pipeline.com.au/pipeint/sources/linux/WebMail/qmailctl.txt
Download qmailctl.txt and upload it to the specified directory
[1] [2] [3] [4] [5] [6] Next page