qmail-1.03 インストール | HTTPD Installation Last modified : 2000/03/26 |
Download Site | Web Site |
---|---|
ftp://ftp.jp.qmail.org/qmail/qmail-1.03.tar.gz | http://www.jp.qmail.org/ |
ftp://marlan.tokyo.firstserver.co.jp/pub/network/mail/qmail/ | うにっくすさんの覚え書き(marlan) |
# cd /usr/local/src # tar xzvf qmail-1.03.tar.gz |
# mkdir /var/qmail # pw groupadd nofiles # pw useradd alias -g nofiles -d /var/qmail/alias -s /noexistent # pw useradd qmaild -g nofiles -d /var/qmail -s /noexistent # pw useradd qmaill -g nofiles -d /var/qmail -s /noexistent # pw useradd qmailp -g nofiles -d /var/qmail -s /noexistent # pw groupadd qmail # pw useradd qmailq -g qmail -d /var/qmail -s /noexistent # pw useradd qmailr -g qmail -d /var/qmail -s /noexistent # pw useradd qmails -g qmail -d /var/qmail -s /noexistent |
# cd /usr/local/src/qmail-1.03 # make setup # make check |
# ./config |
┌─────────────────────── │Your hostname is ml008.xxx.co.jp. │hard error │Sorry, I couldn't find your host's canonical name in DNS. │You will have to set up control/me yourself. |
# ./config-fast ml008.xxx.co.jp ┌─────────────────────── │Your fully qualified host name is ml008.xxx.co.jp. │Putting ml008.xxx.co.jp into control/me... │Putting xxx.co.jp into control/defaultdomain... │Putting co.jp into control/plusdomain... │Putting ml008.xxx.co.jp into control/locals... │Putting ml008.xxx.co.jp into control/rcpthosts... │Now qmail will refuse to accept SMTP messages except to ml008.xxx.co.jp. │Make sure to change rcpthosts if you add hosts to locals or virtualdomains! |
# cd /var/qmail/alias # touch .qmail-postmaster .qmail-mailer-daemon .qmail-root # chmod 644 .qmail* |
# echo '&tarou@xxx.co.jp' > .qmail-root |
# env - PATH="/var/qmail/bin:$PATH" qmail-start ./Mailbox splogger qmail & |
# ps -xa ┌──────────── │qmail-send │splogger qmail │qmail-lspawn ./Mailbox │qmail-rspawn │qmail-clean |
自ホストへメール送信 |
| |
他ホストへメール送信 |
| |
エラーメール送信 |
| |
~/Mailboxにエラーメールが届きます。 ← ? |
# killall -HUP sendmail |
# /usr/sbin/sendmail -q |
# mv /usr/sbin/sendmail /usr/local/sendmail.bak # ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail |
sendmail_enable="YES" # Run the sendmail daemon (or NO). ↓ sendmail_enable="NO" |
# cp /var/qmail/boot/home /var/qmail/rc # vi /var/qmail/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 & └──────────────────────── |
# ln -s /var/qmail/rc /usr/local/etc/rc.d/qmail.sh |
Download Site | Name |
---|---|
http://cr.yp.to/ucspi-tcp/install.html | ucspi-tcp-0.88.tar.gz |
# cd /usr/local/src # tar zxvf ucspi-tcp-0.88.tar.gz # cd ucspi-tcp-0.88 # make # make setup # make check |
# vi /var/qmail/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 & │ │/usr/local/bin/tcpserver -c 1000 -u 1004 -g 1003 0 \ │smtp /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 & |
・-c 1000は同時接続を1000まで拡張(標準は40)。 ・-u はqmaildのuserid、 ・-g はnofilesのgroupidを書いておく ・最後のsploggerはlog取りの為 |