- 论坛徽章:
- 0
|
mkdir /packages
cd /packages
wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
wget ftp://moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.a_record.patch
wget http://www.nrg4u.com/qmail/ucspi-tcp-ssl-20050405.patch.gz
wget http://qmail.ixip.net/download/ucspi-tcp-0.88.errno.patch
gunzip ucspi-tcp-ssl-20050405.patch.gz
cd /usr/local/src
tar xzvf /paclages/ucspi-tcp-0.88.tar.gz
cd ucspi-tcp-0.88
patch -p1 < /packages/ucspi-tcp-0.88.a_record.patch
patch -p1 < /packages/ucspi-tcp-0.88.errno.patch
patch -p0 < /packages/ucspi-tcp-ssl-20050405.patch
cd /etc/ssl
openssl req -new -x509 -nodes -days 365 -out tmp.pem
Using configuration from /etc/ssl/openssl.cnf
Generating a 1024 bit RSA private key
..................................++++++
.....................++++++
writing new private key to 'privkey.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [BG]:
State or Province Name (full name) [BG]:
Locality Name (eg, city) [Stara Zagora]:
Organization Name (eg, company) [My Organization]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) [mail.mydomain.org]:
Email Address [sysadmin@mydomain.org]:
cat tmp.pem >> privkey.pem
cp privkey.pem certs/smtps.pem
mv privkey.pem certs/pop3s.pem
chmod 400 certs/smtps.pem
chmod 400 certs/pop3s.pem
rm -f tmp.pem
# SMTP-AUTH w/RBL's
tcpserver -x /var/vpopmail/etc/tcp.smtp.cdb -p -DRHl localhost -c 40 -u 88 -g 83 0 smtp \
rblsmtpd -r bl.spamcop.net -r list.dsbl.org -r cbl.abuseat.org -r list.dsbl.org -r sbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd /var/vpopmail/bin/vchkpw /bin/true &
# SMTP-AUTH w/SSL
tcpserver -n /etc/ssl/certs/smtps.pem -x /var/vpopmail/etc/tcp.smtp.cdb \
-s -H -l0 -R -u 88 -g 83 0 465 /var/qmail/bin/tcp-env \
tcp-env /var/qmail/bin/qmail-smtpd /var/vpopmail/bin/vchkpw /bin/true &
# POP3
tcpserver -x /var/vpopmail/etc/tcp.smtp.cdb -DRHl localhost -u vpopmail -g vchkpw 0 110 /var/qmail/bin/qmail-popup \
`hostname -f` /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d \
5>>/var/log/maillog Maildir &
# POP3 w/SSL
/usr/bin/tcpserver -n /etc/ssl/certs/pop3s.pem \
-s -DRHl localhost -u vpopmail -g vchkpw 0.0.0.0 995 /var/qmail/bin/qmail-popup \
`hostname -f` /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
touch /var/lock/subsys/qmail |
|