Tuesday, September 14, 2010

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


Installation and basic configuration:

cd QMail-1.03
make setup check
. / Config-fast playease.com
cd ~ alias
touch. QMail-postmaster. QMail-mailer-daemon. QMail-root
chmod 644 ~ alias / .QMail *
echo "127.0.0.1: allow, RELAYCLIENT =" ""> / etc / tcp.SMTP

Following this a setuid:
chmod 4755 / bin / checkpassword
cp / var / QMail / boot / home / var / QMail / rc
Modify / var / QMail / rc to. / Mailbox into. / Maildir / using Maildir;

Start QMail:

csh-cf "/ var / QMail / rc &"

Then start the SMTP service

Using the first patch:

tcpserver-H-R-l 0-t 1-c 100-x / etc / tcp.SMTP.cdb-u 507-g 502 0 SMTP
/ Var / QMail / bin / QMail-SMTPd playease.com / bin / checkpassword / bin / true / bin/md5checkpw / bin / true &

Use the second patch:

The playease.com removed.

Thus, based on the user's SMTP authentication system is complete ~

Then we started on vpopmail of:


groupadd vchkpw
useradd-g vchkpw-d / vmail vpopmail vpopmail installation directory I set in the / vmail in.
su vpopmail
mkdir ~ vpopmail / etc
echo "127.0.01.: allow, RELAYCLIENT =" ""> ~ vpopmail / etc / tcp.SMTP
. / Configure - help
. / Configure - enable-default-domain = playease.com
make
make install-strip
cd ~ vpopmail / bin
. / Vadddomain playease.com
. / Vadduser dawn@playease.com

This adds a user

chmod 6755 / vmail / bin / vchkpw This is setuid

The following is a start SMTP service:

Using the first patch:

tcpserver-H-R-l 0-t 1-c 100-x / etc / tcp.SMTP.cdb-u 507-g 502 0 SMTP
/ Var / QMail / bin / QMail-SMTPd playease.com / vmail / bin / vchkpw / bin / true / bin/md5checkpw / bin / true &

Use the second patch:

The playease.com removed.


Start pop3 service:

tcpserver-H-R 0 pop-3 / var / QMail / bin / QMail-popup playease.com / vmail / bin / vchkpw
/ Var/QMail/bin/QMail-pop3d Maildir &
And other modules use mysql does not affect validation. At this point you're done.

Third, pay attention to the problem:

1. In practice, the above example I use playease.com as a domain user name with the dawn as an example, replace your own domain name on it.

2. The second should be noted that the situation based on vpopmail many domain name I have not tested, please test themselves, in theory, should be no problem.

3. My system so I set the search path directly tcpserver, a system need to use / usr / local / bin / tcpserver way to write

4. My vpopmail installed in the / vmail, everyone should pay attention to the path of writing vchkpw.

5. I am here 507,502 were QMaild the uid and gid, you have to replace your own.

6. These operations under the test adopted in redhat7.1.







Recommended links:



f4v Converter



Matroska file



Converting Dvd To Wmv



flv to Vob



No comments:

Post a Comment