1.
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
2.
wget ftp://61.135.158.199/pub/netqmail*
tar xvfz netqmail-1.06.tar.gz
cd netqmail-1.06
make setup check
3.
cd /var/qmail/control/
ll *
smsdb-r:/var/qmail/control # ll
total 24
drwxr-xr-x 2 root qmail 224 Nov 14 10:03 .
drwxr-xr-x 10 root qmail 264 May 18 15:49 ..
-rw-r--r-- 1 root root 6 Nov 15 2006 defaultdomain
-rw-r--r-- 1 root root 11 Nov 15 2006 locals
-rw-r--r-- 1 root root 8 Jan 11 2011 me
-rw-r--r-- 1 root root 11 Nov 15 2006 plusdomain
-rw-r--r-- 1 root root 41 Nov 14 10:03 rcpthosts
-rw-r--r-- 1 root root 16 Nov 15 2006 smtproutes
vi me
----------
tom.com
----------
vi defaultdomain
----------
smsdb
----------
vi locals
----------
smsdb
----------
vi plusdomain
----------
smsdb
----------
vi rcpthosts
----------
smsdb
tomonline-inc.com
----------
vi smtproutes
----------
:172.24.162.142
----------
4.
cd ..
vi rc
--------------------------------------------------------------------
#!/bin/sh
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Mailbox splogger qmail
--------------------------------------------------------------------
chmod 755 rc
5.
vi /etc/rc.local
--------------------
/var/qmail/rc &
--------------------
6.
./rc &
ps -ef
------------------------------------------------------------------------
qmails 27659 1 0 2010 ? 00:00:04 qmail-send
qmaill 27660 27659 0 2010 ? 00:00:02 splogger qmail
root 27661 27659 0 2010 ? 00:00:00 qmail-lspawn ./Mailbox
qmailr 27662 27659 0 2010 ? 00:00:02 qmail-rspawn
qmailq 27663 27659 0 2010 ? 00:00:00 qmail-clean
------------------------------------------------------------------------
7.
aptitude install mailx
aptitude search mailx
------------------------------------------------------------------------------------------
i bsd-mailx - simple mail user agent
p heirloom-mailx - feature-rich BSD mail(1)
v mailx
-------------------------------------------------------------------------------------------
8.
cd /usr/sbin/
mv sendmail sendmail_old
ln -s /var/qmail/bin/sendmail sendmail
Qmail-106_AotuInstPackage_debian.tar.gz.zip
阅读(1369) | 评论(0) | 转发(0) |