RedHat Linux >> Server Administration for Redhat Linux
|
[목차] |
제3장 Mail 서버 - Sendmail/IMAP
10. IMAP 소스로 설치하기
1. IMAP 설치하기 [root@user root]# cd ../imap-4.7 Linux 7.1이상에서 문제가 되는 time.h에 대한 링크를 수정한다. 컴파일후 다시 원래대로 복사해놓아야 한다. 다른 패키지를 설치할 때 오류를 발생할 수 있다. [root@user imap-4.7]# mv /usr/include/sys/time.h /usr/include/sys/time.h.ori [root@user imap-4.7]# ln -s /usr/include/time.h /usr/include/sys/time.h [root@user imap-4.7]# make slx [root@user imap-4.7]# cp ipopd/ipop2d /usr/sbin [root@user imap-4.7]# cp ipopd/ipop3d /usr/sbin [root@user imap-4.7]# cp imapd/imapd /usr/sbin [root@user imap-4.7]# ln -s c-client/ lib [root@user imap-4.7]# ln -s c-client/ include [root@user imap-4.7]# cd /etc X-Inetd와 inetd 방식에 따라 다르게 설정 된다.
가. Xinetd 방식 [root@user /etc]# vi services 생략 pop2 109/tcp pop-2 postoffice # POP version 2 pop2 109/udp pop-2 pop3 110/tcp pop-3 # POP version 3 pop3 110/udp pop-3 생략 imap2 143/tcp imap # Interim Mail Access Proto v2 imap2 143/udp imap [root@user /etc]# cd xinetd.d [root@user /xinetd.d]# vi imap service imap { disable = no socket_type = stream wait = no user = root server = /usr/sbin/imapd log_on_success += DURATION USERID log_on_failure += USERID } [root@user /xinetd.d]# vi ipop2 service pop2 { disable = no socket_type = stream wait = no user = root server = /usr/sbin/ipop2d log_on_success += USERID log_on_failure += USERID } [root@user /xinetd.d]# vi ipop3 service pop3 { disable = no socket_type = stream wait = no user = root server = /usr/sbin/ipop3d log_on_success += USERID log_on_failure += USERID } [root@user /xinetd.d]# /etc/rc.d/init.d/xinetd restart
나. inetd 방식 [root@user /etc]# vi services 생략 pop 109/tcp pop3 110/tcp imap 143/tcp
[root@user /etc]# vi inetd.conf 생략 pop stream tcp nowait root /usr/sbin/ipop2d ipop2d pop3 stream tcp nowait root /usr/sbin/ipop3d ipop3d imap stream tcp nowait root /usr/sbin/imapd imapd
[root@user /xinetd.d]# /etc/rc.d/init.d/inetd restart
2. PHP에 포팅하기 [root@user php-4.1.1]# ./configure --with-apxs=/usr/local/httpd/bin/apxs --with-config-file-path=/usr/local/httpd --with-mysql=/usr/local/mysql --enable-track-vars --disable-debug --with-imap=../imap-4.7 [root@user php-4.1.1]# make [root@user php-4.1.1]# make install [root@user php-4.1.1]# /etc/rc.d/init.d/httpd restart
웹 브라우저에서 http://localhost/phpinfo.html을 만들어서 테스트한다.
|
[목차] |