sendmail 지우기
rpm -qa | grep sendmail
sendmail-cf-8.12.8-4
sendmail-8.12.8-4
[root@localhost root]# rpm -e sendmail-cf
[root@localhost root]# rpm -e sendmail
error: Failed dependencies:
/usr/sbin/sendmail is needed by (installed) squirrelmail-1.2.10-4
[root@localhost root]# rpm -e squirrelmail
[root@localhost root]# rpm -e sendmail
warning: /etc/mail/submit.cf saved as /etc/mail/submit.cf.rpmsave
warning: /etc/mail/statistics saved as /etc/mail/statistics.rpmsave
tar xvfz 큐메일
cd 큐메일
make clean
rm -f `cat TARGETS`
[root@localhost qmail-1.03]#
#tar zxvf qmail-1.03-linux.tar.gz
cd /usr/local/src/qmail
#cd qmail-1.03
#make clean
#mkdir /var/qmail &&
#cp -a /usr/local/mysql/include/mysql /usr/include && cp /usr/local/mysql/lib/mysql/* /usr/lib && sh qmail-user.sh &&
#make && make setup check
cd /usr/local/src/qmail
tar zxvf ucspi-tcp-0.88.tar.gz
cd /usr/local/src/qmail/ucspi-tcp-0.88
make clean && make && make setup check
cd /usr/local/src/qmail
tar zxvf daemontools-0.70.tgz
cd /usr/local/src/qmail/daemontools-0.70
make clean && make && make setup check
(레드핫 9에서 error.h 파일에 추가 #include <errno.h>)
cd /usr/local/src/qmail
tar zxvf rblsmtpd-0.70.tgz
cd /usr/local/src/qmail/rblsmtpd-0.70
make clean && make && make setup check
# Qmail 설정
cd /usr/local/src/qmail/qmail-1.03
./config-fast test.com
mkdir -p /var/qmail/supervise/qmail-send/log
mkdir -p /var/qmail/supervise/qmail-smtpd/log
chmod +t /var/qmail/supervise/qmail-send
chmod +t /var/qmail/supervise/qmail-smtpd
cd /usr/local/src/qmail/qmail-etc
cp send_run /var/qmail/supervise/qmail-send/run
cp send_log_run /var/qmail/supervise/qmail-send/log/run
cp smtpd_run /var/qmail/supervise/qmail-smtpd/run
cp smtpd_log_run /var/qmail/supervise/qmail-smtpd/log/run
chmod 755 /var/qmail/supervise/qmail-send/run
chmod 755 /var/qmail/supervise/qmail-send/log/run
chmod 755 /var/qmail/supervise/qmail-smtpd/run
chmod 755 /var/qmail/supervise/qmail-smtpd/log/run
mkdir -p /var/log/qmail/smtpd
chown qmaill /var/log/qmail /var/log/qmail/smtpd
cp qmail_script /etc/rc.d/init.d/qmail
cp tcp.smtp /etc/
cd ~alias
echo
master@sansung.net > .qmail-mailer-daemon
echo
master@sansung.net > .qmail-postmaster
echo
master@sansung.net > .qmail-root
chmod 755 /etc/rc.d/init.d/qmail
ln -s /etc/rc.d/init.d/qmail /etc/rc.d/rc3.d/S90qmail
/etc/rc.d/rc3.d/sendmail stop
# mv /etc/rc.d/rc3.d/S30sendmail /etc/rc.d/rc3.d/K30sendmail
mv /usr/lib/sendmail /usr/lib/sendmail.old
mv /usr/sbin/sendmail /usr/sbin/sendmail.old
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
cd /usr/local/src/qmail/qmail-etc
#cp /var/qmail/boot/proc /var/qmail/rc
cp rc /var/qmail/
chmod 755 /var/qmail/rc
# CHECKPASSWORD 설치
cd /usr/local/src/qmail
tar zxvf checkpassword-0.81-linux.tar.gz
cd /usr/local/src/qmail/checkpassword-0.81 && make clean && make && make setup check
## 에러 발생시 추가 error.h 파일에 include<errno.h> (/load auto-str substdio.a error.a str.a )
# IMAP 설치
cd /usr/local/src/qmail
tar zxvf imap.tgz
cd /usr/local/src/qmail/imap-4.7c && make clean && make slx
cd ..
rm -rf /usr/local/imap
cp -a imap-4.7c /usr/local/imap
#cd /usr/local/imap && ln -s c-client include && ln -s c-client lib && cp -f ipopd/ipop3d /usr/sbin && cp -f imapd/imapd /usr/sbin
cd /usr/local/src/qmail/qmail-etc && cp imap /etc/xinetd.d/ && cp ipop3d /etc/xinetd.d/
cp sqlserver /var/qmail/control/
mkdir /home/qmail && chown -R 99:99 /home/qmail
/compile str_len.c
./compile str_start.c
./makelib byte.a byte_chr.o byte_copy.o byte_cr.o \
byte_diff.o byte_rchr.o fmt_uint.o fmt_uint0.o fmt_ulong.o \
scan_ulong.o str_chr.o str_diff.o str_len.o str_start.o
./load svscan unix.a byte.a
svscan.o(.text+0x4d2): In function `doit':
: undefined reference to `errno'
svscan.o(.text+0x51a): In function `doit':
: undefined reference to `errno'
svscan.o(.text+0x540): In function `doit':
: 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(strerr_sys.o)(.text+0x8): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [svscan] Error 1
[root@localhost daemontools-0.70]#