Category - qmail

Qmail PHP起動時のエラー

こんなエラーが出た場合

May 10 02:21:45 sv qmail: 1336584105.449605 status: local 1/120 remote 0/120
May 10 02:21:45 sv qmail: 1336584105.450309 delivery 48316: deferral: Uh-oh:_.qmail_has_prog_delivery_but_has_x_bit_set._(#4.7.0)/

qmailアカウントで起動しているシェルの権限に+wがあるのが原因。
644にパーミッションを変更する。

read more

q-mail 高速メール配信サーバー 構築

q-mail SMTPサーバーを配信上限をあげてDNSキャッシュサーバーとともにインストールしてみました。
big-concurrency.patch を使っています。
こんな感じです。
さらにチューニングは続く・・・

cd /usr/local/src
ls
wget http://cr.yp.to/software/qmail-1.03.tar.gz
wget http://cyberam.dip.jp/linux_server/mail/qmail-date-localtime.patch
wget http://www.ckdhr.com/ckd/qmail-103.patch
wget http://qmail.org/qmail-smtpd-relay-reject
wget http://www.suspectclass.com/~sgifford/qmail/qmail-0.0.0.0.patch
wget http://qmail.org/qmailqueue-patch
ls
tar zxf qmail-1.03.tar.gz
ls
cd qmail-1.03
ls
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
mkdir -p /package
chmod 1755 /package
tar zxvf daemontools-0.76.tar.gz
cd admin/daemontools-0.76
patch -p1 < ./daemontools-0.76.errno.patch
cd ../
ls
cd ../
ls
cd ../
ls
cd qmail-1.03
ls
daemontools-0.76.errno.patch
rm daemontools-0.76.errno.patch
rm daemontools-0.76.tar.gz
rm -R admin
cd ../
ls
cd /usr/local/src
mkdir -p /package
chmod 1755 /package
wget http://tools.qmail.jp/daemontools/daemontools-0.76.tar.gz
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
cd /usr/local/src
mkdir -p /package
chmod 1755 /package
tar -xvzf daemontools-0.76.tar.gz
cd admin/daemontools-0.76
patch -p1 < ../../daemontools-0.76.errno.patch
package/install
kill -HUP 1
vi /etc/inittab
date | tai64n | tai64nlocal
ls -la /command
ll /command
ps ax
kill -9 3925
kill -9 3927
ps ax
kill -9 3938
ls
ps ax
kill -9 3944
ps ax
kill -9 3941 3943
ps axx
ps ax
ls -la /package/
exit
ntsysv
checkconfig
exit
ps ax
cd qmail-1.03
cd /
ll /command
mv /usr/local/src/admin /package
ll
ll /
ll /command
ln -s envdir /package/admin/daemontools/command/envdir
rm envdir
cd /command
ln -s envdir /package/admin/daemontools/command/envdir
rm envdir
ln -s envdir /package/admin/daemontools/command/envdir
ll
ls
ln -s /package/admin/daemontools/command/envdir ./envdir
ll
ln -s /package/admin/daemontools/command/envuidgid ./envuidgid
rm envuidgid
ln -s /package/admin/daemontools/command/envuidgid ./envuidgid
ll
rm fghack
ln -s /package/admin/daemontools/command/fghack ./fghack
ll
rm multilog
ln -s /package/admin/daemontools/command/multilog ./multilog
ll
rm pgrphack
ln -s /package/admin/daemontools/command/pgrphack ./pgrphack
rm readproctitle
ln -s /package/admin/daemontools/command/readproctitle ./readproctitle
ll
rm setlock
ln -s /package/admin/daemontools/command/setlock ./setlock
ll
ln -s /package/admin/daemontools/command/setuidgid ./setuidgid
rm setuidgid
ln -s /package/admin/daemontools/command/setuidgid ./setuidgid
ll
rm softlimit
ln -s /package/admin/daemontools/command/softlimit ./softlimit
ll
rm supervise
ln -s /package/admin/daemontools/command/supervise ./supervise
ll
rm svc
ln -s /package/admin/daemontools/command/svc ./svc
rm svok
ln -s /package/admin/daemontools/command/svok ./svok
rm svscan
ln -s /package/admin/daemontools/command/svscan ./svscan
rm svscanboot
ln -s /package/admin/daemontools/command/svscanboot ./svscanboot
rm svstat
ln -s /package/admin/daemontools/command/svstat ./svstat
rm tai64n
ln -s /package/admin/daemontools/command/tai64n ./tai64n
rm tai64nlocal
ln -s /package/admin/daemontools/command/tai64nlocal ./tai64nlocal
ll
ps ax
cd /usr/local/src
ls
wget http://www.qmail.org/big-concurrency.patch
ls
cd qmail-1.03
rpm -qa | grep sendmail
rpm -e sendmail sendmail-cd
rpm -e sendmail sendmail-cf
rpm -e sendmail sendmail-cf mdadm fetchmail mutt
rm /var/log/mail/statistics.rpmsave
rm /etc/mail/submit.cf.rpmsave
rm /etc/mail/sendmail.mc.rpmsave
rm /etc/mail/sendmail.cf.rpmsave
ls
mkdir /var/qmail
groupadd nofiles
groupadd qmail
useradd -g nofiles -d /var/qmail -s /bin/false qmaild
useradd -g nofiles -d /var/qmail -s /bin/false qmaill
useradd -g nofiles -d /var/qmail -s /bin/false qmailp
useradd -g nofiles -d /var/qmail/alias -s /bin/false alias
useradd -g qmail -d /var/qmail -s /bin/false qmailq
useradd -g qmail -d /var/qmail -s /bin/false qmailr
useradd -g qmail -d /var/qmail -s /bin/false qmails
patch -s -p1 < ../qmail-date-localtime.patch
patch -s -p1 < ../qmail-103.patch
patch -s -p1 < ../qmail-smtpd-relay-reject
patch -s -p1 < ../qmail-0.0.0.0.patch
cd ../
ls
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/qmail-1.03.errno.patch
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/qmail-1.03.qmail_local.patch
cd qmail-1.03
patch -s -p1 < ../qmail-1.03.errno.patch
patch -s -p1 < ../qmail-1.03.qmail_local.patch
patch -s -p1 < ../big-concurrency.patch
make
vi conf-spawn
make
make setup check
cd ../
wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.a_record.patch
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.nobase.patch
cd qmail-1.03
rm *.tar.gz
cd ../
tar zxf ucspi-tcp-0.88.tar.gz
cd ucspi-tcp-0.88
patch -s -p1 < ../ucspi-tcp-0.88.errno.patch
patch -s -p1 < ../ucspi-tcp-0.88.nobase.patch
patch -s -p1 < ../ucspi-tcp-0.88.a_record.patch
make
make setup check
cd ../qmail-1.03
./config-fast mydomain.com
cd /var/qmail/alias
echo '&postmaster@mydomain.com' > .qmail-mailer-daemon
echo '&postmaster@mydomain.com' > .qmail-postmaster
echo '&postmaster@mydomain.com' > .qmail-root
chmod 644 .qmail-*
vi /etc/tcpserver
tcprules /etc/tcpserver.cdb /etc/tcpserver.smtp < /etc/tcpserver
cd /var/qmail
cp boot/home rc
vi rc
vi rc
vi /etc/init.d/qmail
chmod 755 /etc/init.d/qmail
cd /etc/rc3.d
ln -s ../init.d/qmail S25qmail
ll
ls
service qmail start
ps ax
cd /var/qmail
ls
cd bin
ls
cd /usr/sbin
ln -s /var/qmail/bin/sendmail ./sendmail
ls
ls -la
ls
cd /usr/local/src
wget ftp://ftp.jp.qmail.org/qmail/djbdns-1.05.tar.gz
ls
ll
wget http://www.fefe.de/dns/djbdns-1.05-test23.diff.bz2
ls
bunzip2 djbdns-1.05-test23.diff.bz2
ls
tar zxvf dbjdns-1.05.tar.gz
ls
tar zxvf djbdns-1.05.tar.gz
cd djbdns-1.05
ls
patch -s -p1 ../djbdns-1.05-test23.diff
patch -s ../djbdns-1.05-test23.diff
patch ../djbdns-1.05-test23.diff
groupadd djbdns
ll /sbin/nologin
useradd -g djbdns -s /sbin/nologin dnscache
useradd -g djbdns -s /sbin/nologin dnslog
rm -fR /home/dnscache /home/dnslog
ls /home
make
cd ../
ls
vi qmail-1.03.errno.patch
wget ftp://moni.csi.hu/pub/djbware/patches/djbdns-1.05.errno.patch
wget http://www.thedjbway.org/patches/djb_errno_patches.tgz
tar zxf djb_errno_patches.tgz
ls
cd djbdns-1.05
patch -s -p1 < ../djbdns-1.05.errno.patch
make
make setup check
dnscache-conf dnscache dnslog /var/djbdns/dnscache IPアドレス
mkdir /var/djbdns
dnscache-conf dnscache dnslog /var/djbdns/dnscache IPアドレス
cd /var/djbdns/dnscache/
ls
cd root
ls
cd servers/
ls
vi @
dnsname `cat \@`
vi @
vi @
dnsname `cat \@`
cd /service
ls
ln -s /var/djbdns/dnscache ./
ll
ps ax
svstat /service /dnscache
svstat /service/dnscache
vi /etc/resolv.conf
vi /etc/resolv.conf
nslookup
service named stop
nslookup
vi /etc/hosts
vi /etc/host.conf
netstat -ln
nslookup
rpm -qa | grep bind
rpm -e ypbind bind-utils bind-libs
rpm -e ypbind bind-utils bind-libs yp-tools
nslookup
host
dnscache-conf dnscache dnslog /var/djbdns/dnscache 127.0.0.1
rm -fR /var/djbdns/dnscache
dnscache-conf dnscache dnslog /var/djbdns/dnscache 127.0.0.1
cd /var/djbdns/dnscache
svstat /service/dnscache
cd /
cd ~
cd
ls
vi /etc/resolv.conf
wget wget ftp://ftp.internic.net/domain/named.cache
ls
vi named.cache
vi /var/djbdns/dnscache/root/servers/@
dnsname `\@`
dnsname `cat \@`
dnsname `cat ./\@`
dnsname `cat /var/djbdns/dnscache/servers/\@`
dnsname `cat /var/djbdns/dnscache/root/servers/\@`
svc -t /var/service/dnscache
svc -t /service/dnscache
ps ax
svc -t /service/dnscache
ps ax
ps ax
ps ax
kill -9 supervise
kill -9 1483
ps ax
ntsysv
ps ax
reboot
exit
ps ax
service qmail stop
ps ax
mkdir /var/qmail/services
mkdir /var/qmail/services/qmail
mkdir /var/qmail/services/qmail/log
chmod +t /var/qmail/services/qmail
vi /var/qmail/services/qmail/run
vi /var/qmail/services/qmail/log/run
ll setuidgid
find /* | grep setuidgid
chmod +x /var/qmail/services/qmail/run
chmod +x /var/qmail/services/qmail/log/run
vi /var/qmail/rc
multilog t s 10485760 n 100 /var/log/qmail
cd /var/log/qmail
ls
cd ../
ls
chown qmaill:nofiles /var/log/qmail
chmod 700 /var/log/qmail
ln -s /var/qmail/services/qmail /service/qmail
ps ax
ps ax
vi /var/qmail/services/qmail/run
vi /var/qmail/rc
ps ax
rm /etc/rc3.d/S25qmail
vi /etc/init.d/qmail
rm /etc/init.d/qmail
ls
ls -la
ps ax
kill -9 3363
ps ax
ls /service/qmail/
ll /service/qmail/
rm /service/qmail
ps ax
ps ax
svscan t
cd /service
ls
svc -dx . log
ps ax
cd /var/qmail
ls
ll
cd services/
ll
pwd
ll qmail/
ls
ps ax
readproctitle
readproctitle qmail
reboot

read more

deamontools インストール

Red Hat 9 にdeamontools をインストールしようとしたらいきなりエラー
envdir.o(.text+0xca): In function `main':
: undefined reference to `errno'
envdir.o(.text+0x1ea): In function `main':
: undefined reference to `errno'
unix.a(openreadclose.o)(.text+0x3b): In function `openreadclose':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0xf6): In function `pathexec_run':
: undefined reference to `errno'
unix.a(pathexec_run.o)(.text+0x13a): In function `pathexec_run':
: undefined reference to `errno'
unix.a(readclose.o)(.text+0x42): more undefined references to `errno' follow
collect2: ld はステータス 1 で終了しました
make: *** [envdir] エラー 1
Copying commands into ./command...
cp: cannot stat `compile/svscan': そのようなファイルやディレクトリはありません

なのでパッチを当ててインストール
tar xvzf daemontools-0.76.tar.gz
cd admin/daemontools-0.76/
wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch
patch -p1 < daemontools-0.76.errno.patch
package/install

パッチはここから入手  http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch

read more

Red Hat 9 で qmail がコンパイルできない件

Red Hat Linux 9 で qmail の make setup check を行うと下記のエラーが発生します。これは glibc のバージョンアップによるものです。glibcのバージョンが 2.3.1 以降で起きるっぽいです。

こんな風に
undefined reference to 'errorno'
collect2: ld はステータス 1 で終了しました
make: *** [auto-str] エラー 1

ここからパッチを入手して解決します
http://www.qmail.org/moni.csi.hu/pub/qmail/glibc-2.3.1/

cd qmail-1.03
patch -p1 /path/to/qmail-1.03.errno.patch

このあとに make setup check

read more

Recent entry

Search

Tag Cloud

Page Top