Monday, October 11, 2010

The SMTP user authentication based on QMail Setup Guide (Part One)


There are many users in the SMTP service do QMail user authentication, see the total domestic articles has some problems more or less.

The following article I will summarize the previous question, and write my own detailed methodology.

I, on the previous article, a summary of the problem:

The following is ideal and taoran two predecessors article:

http://www.linuxaid.com.cn/support/showfom.jsp?i=1703 of: ideal
http://www.linuxforum.net/doc/QMail-auth.html of: taoran

Note that, QMail SMTP authentication of users has more than one patch, the above two articles were used in two patches.

Respectively:

http://members.elysium.pl/brush/QMail-SMTPd-auth/ and
www.nimh.org / hacks / QMail-SMTPd.c.

In contrast, the second patch of some simple easy to use. There is a difference between the two patches is: The first requires additional host name (domain name), and the second will not rise, that can not be verified: (too strange. In accordance with the first article to be configured ideal if the first the problem is that you and other clients as long as the outlook select My server requires authentication, you can continue to send, regardless of whether the account on the server. Please come test is not really the issue, I see documentation form this problem, primarily because the host name (domain name) of the problem. details, please read QMail-SMTPd-auth-0.30 of README.auth; second question then, is a total of two articles, is the setuid problem, see :

This is fatbear friend experience, but to note that only the vchkpw vpopmail needs of 6755.

These are my own experience, the majority of users have to test. If there are ideal and taoran two predecessors, or other users to know the real cause of these problems or have different views, please tell me, my E-mail is: hailwind@china.com, criticism welcome correction.

Second, the installation process in detail

The following is my detailed installation process, if using a QMail-SMTPd-auth-0.30, to pay attention to the host name and setuid problem, if using QMail-SMTPd.c then it would only pay attention to the problems on the line setuid. If your system has been installed over, if it is in use See the above two articles, use the. / Comple. / Load the kind of way, where I did not write.

Needed software:

checkpassword-0.90.tar.gz or QMail-SMTPd.c Address: In the beginning of this article there.
銆??銆?md5checkpw-0.22.tar.gz 鍦板潃锛歨ttp://members.elysium.pl/brush/cmd5checkpw/
銆??銆?cspi-tcp-0.88.tar.gz
銆??銆?Mail-SMTPd-auth-0.30.tar.gz
銆??銆?Mail-1.03.tar.gz
銆??銆?popmail-4.9.10.tar.gz


銆??杩欏嚑涓ぇ瀹堕兘鏈夊惂锛熷鏋滀綘娌℃湁鐨勮瘽鍛紝灏辩洿鎺ユ妸鏂囦欢鍚嶈创鍒癵oogle.com涓婂幓锛岀洿鎺ユ悳绱㈠氨鑳芥壘寰楀埌銆?br />鍒嗗埆瀹夎瀹冧滑锛?br />
銆??tar zxvf checkpassword-0.90.tar.gz
銆??cd checkpassword-0.90
銆??make
make setup check

銆??tar zxvf cmd5checkpw-0.22.tar.gz
銆??mkdir /usr/man
銆??mkdir /usr/man/man8
銆??cd cmd5checkpw-0.22
銆??make
make install

銆??tar zxvf ucspi-tcp-0.88.tar.gz
銆??cd ucspi-tcp-0.88
銆??make
make setup check

銆??涓嬮潰鎸夊畨瑁匭Mail-1.03锛堟墦auth琛ヤ竵锛?锛?br />
銆??tar zxvf QMail-1.03.tar.gz


Using the first patch:

銆??tar zxvf QMail-SMTPd-auth-0.30.tar.gz
銆??cd QMail-SMTPd-auth-0.30
銆??cp base64.c base64.h README.auth ../QMail-1.03/
銆??patch -d ../QMail-1.03 < auth.patch

Use the second patch:

銆??cp QMail-SMTPd.c QMail-1.03/
銆??瑕嗙洊婧愭枃浠?br />
銆??涓嬮潰娣诲姞鐢ㄦ埛

銆??mkdir /var/QMail
銆??groupadd nofiles
銆??useradd -g nofiles -d /var/QMail/alias 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







相关链接:



Picked Games And ENTERTAINMENT



MTS TO AVI



DAT to 3GP



evaluation Audio Video Tools



Numbers Will Be Allocated To The Concept Of The Sword The Veil Of Players



PHOTOSHOP - Neon Text



Several international marriages total defeat BenQ alerts



Practical architecture: logic layer [3]



7 Steps to escort your USB Device



"Black, then it" is not very "black"



e-cology in the Pan Micro Series 15



DivX To Zune



Ppp point to point protocol



No comments:

Post a Comment