18. imap server - pop3/imap 지원
http://www.nlc.net.au/pub/unix/mail/?D=D
tar xzvf imap-2004.RC6.tar.Z &&
cd imap-2004.RC6/src/osdep/unix &&
mkdir -p /etc/mail/certs &&
vi Makefile
** vi Makefile 에서 편집할 부분, ssl 지원을 위해서
SSLDIR=/usr/local/ssl
SSLCERTS=/etc/mail/certs
SSLKEYS=$(SSLCERTS)
SSLINCLUDE=$(SSLDIR)/include
SSLLIB=$(SSLDIR)/lib
** make lrh 는 레드헷 리눅스 7.3 이상 버젼에서 실행하고,
이하 버전이나 다른 리눅스 호환버전은 make slx 를 실행한다.
cd ../../../ &&
make lrh &&
cd ../ &&
cp -r imap-2004.RC6 /usr/local/imap &&
cd /usr/local/imap &&
cp imapd/imapd /usr/sbin/in.imapd &&
cp ipopd/ipop3d /usr/sbin/in.ipop3d &&
ln -sf /usr/local/imap/c-client/c-client.a /usr/lib/c-client.a &&
ln -sf /usr/local/imap/c-client/mail.h /usr/include/mail.h &&
ln -sf /usr/local/imap/c-client/rfc822.h /usr/include/rfc822.h &&
ln -sf /usr/local/imap/c-client/linkage.h /usr/include/linkage.h
** 아래 부분을 모두 화면 자체에서 실행한다.
cat > /etc/xinetd.d/imap << "EOF"
service imap
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.imapd
log_on_failure += USERID
}
EOF
cat > /etc/xinetd.d/imaps << "EOF"
service imaps
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.imapd
log_on_failure += USERID
}
EOF
cat > /etc/xinetd.d/ipop3 << "EOF"
service pop3
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.ipop3d
log_on_failure += USERID
}
EOF
cat > /etc/xinetd.d/ipop3s << "EOF"
service ipop3s
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.ipop3d
log_on_failure += USERID
}
EOF
** cat 완료 후 아래를 실행한다.
ls /etc/xinetd.d/
** cat 에서 작성한데로 문자열이 적용되었는지 아래처럼 확인한다.
cat /etc/xinetd.d/imap
** 확인작업 후 정렬이 되어 있지않으면 아래 경로로 이동한다.
cd /etc/xinetd.d
** 적용할 문서를 찾기위해 ls 명령을 친 후 아래처럼 작업한다.
각 문서들이 함수 적용 부분이 정렬이 되어 있지 않으므로,
아래처럼 vi 편집기를 이용하여 접속 후 탭키를 이용하여 cat 적용처럼 문자열을 정렬시킨다.
vi imap
vi imaps
vi ipop3
vi ipop3s
** xinetd 의 새로운 적용을 위해 리스타트한다.
/etc/rc.d/init.d/xinetd restart<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
http://www.nlc.net.au/pub/unix/mail/?D=D
tar xzvf imap-2004.RC6.tar.Z &&
cd imap-2004.RC6/src/osdep/unix &&
mkdir -p /etc/mail/certs &&
vi Makefile
** vi Makefile 에서 편집할 부분, ssl 지원을 위해서
SSLDIR=/usr/local/ssl
SSLCERTS=/etc/mail/certs
SSLKEYS=$(SSLCERTS)
SSLINCLUDE=$(SSLDIR)/include
SSLLIB=$(SSLDIR)/lib
** make lrh 는 레드헷 리눅스 7.3 이상 버젼에서 실행하고,
이하 버전이나 다른 리눅스 호환버전은 make slx 를 실행한다.
cd ../../../ &&
make lrh &&
cd ../ &&
cp -r imap-2004.RC6 /usr/local/imap &&
cd /usr/local/imap &&
cp imapd/imapd /usr/sbin/in.imapd &&
cp ipopd/ipop3d /usr/sbin/in.ipop3d &&
ln -sf /usr/local/imap/c-client/c-client.a /usr/lib/c-client.a &&
ln -sf /usr/local/imap/c-client/mail.h /usr/include/mail.h &&
ln -sf /usr/local/imap/c-client/rfc822.h /usr/include/rfc822.h &&
ln -sf /usr/local/imap/c-client/linkage.h /usr/include/linkage.h
** 아래 부분을 모두 화면 자체에서 실행한다.
cat > /etc/xinetd.d/imap << "EOF"
service imap
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.imapd
log_on_failure += USERID
}
EOF
cat > /etc/xinetd.d/imaps << "EOF"
service imaps
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.imapd
log_on_failure += USERID
}
EOF
cat > /etc/xinetd.d/ipop3 << "EOF"
service pop3
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.ipop3d
log_on_failure += USERID
}
EOF
cat > /etc/xinetd.d/ipop3s << "EOF"
service ipop3s
{
disable = no
flags = REUSE
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.ipop3d
log_on_failure += USERID
}
EOF
** cat 완료 후 아래를 실행한다.
ls /etc/xinetd.d/
** cat 에서 작성한데로 문자열이 적용되었는지 아래처럼 확인한다.
cat /etc/xinetd.d/imap
** 확인작업 후 정렬이 되어 있지않으면 아래 경로로 이동한다.
cd /etc/xinetd.d
** 적용할 문서를 찾기위해 ls 명령을 친 후 아래처럼 작업한다.
각 문서들이 함수 적용 부분이 정렬이 되어 있지 않으므로,
아래처럼 vi 편집기를 이용하여 접속 후 탭키를 이용하여 cat 적용처럼 문자열을 정렬시킨다.
vi imap
vi imaps
vi ipop3
vi ipop3s
** xinetd 의 새로운 적용을 위해 리스타트한다.
/etc/rc.d/init.d/xinetd restart<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2176 | |
| 829 |
|
19년 전 | 1905 | |
| 828 |
|
19년 전 | 1797 | |
| 827 |
|
19년 전 | 1646 | |
| 826 |
|
19년 전 | 1844 | |
| 825 |
|
19년 전 | 1883 | |
| 824 |
|
19년 전 | 1941 | |
| 823 |
|
19년 전 | 2686 | |
| 822 |
|
19년 전 | 5310 | |
| 821 |
|
19년 전 | 1718 | |
| 820 |
|
19년 전 | 1563 | |
| 819 |
|
19년 전 | 1430 | |
| 818 |
|
19년 전 | 1588 | |
| 817 |
|
19년 전 | 1518 | |
| 816 |
|
19년 전 | 1438 | |
| 815 |
|
19년 전 | 1453 | |
| 814 |
|
19년 전 | 1377 | |
| 813 |
|
19년 전 | 1437 | |
| 812 | 19년 전 | 2808 | ||
| 811 |
pearly
|
19년 전 | 3824 | |
| 810 |
pearly
|
19년 전 | 5201 | |
| 809 |
|
19년 전 | 1369 | |
| 808 |
pearly
|
19년 전 | 4532 | |
| 807 | 19년 전 | 2974 | ||
| 806 |
|
19년 전 | 1490 | |
| 805 |
|
19년 전 | 2686 | |
| 804 |
|
19년 전 | 3612 | |
| 803 |
|
19년 전 | 1785 | |
| 802 |
|
19년 전 | 3788 | |
| 801 |
|
19년 전 | 1877 | |
| 800 | 19년 전 | 3770 | ||
| 799 | 19년 전 | 3428 | ||
| 798 | 19년 전 | 4200 | ||
| 797 | 19년 전 | 4050 | ||
| 796 |
|
19년 전 | 1886 | |
| 795 |
|
19년 전 | 1841 | |
| 794 | 19년 전 | 4269 | ||
| 793 | 19년 전 | 2666 | ||
| 792 | 19년 전 | 2539 | ||
| 791 | 19년 전 | 2390 | ||
| 790 | 19년 전 | 1967 | ||
| 789 | 19년 전 | 2579 | ||
| 788 | 19년 전 | 2197 | ||
| 787 | 19년 전 | 1842 | ||
| 786 | 19년 전 | 1971 | ||
| 785 | 19년 전 | 1440 | ||
| 784 |
|
19년 전 | 1688 | |
| 783 | 19년 전 | 2830 | ||
| 782 |
|
19년 전 | 1945 | |
| 781 | 19년 전 | 3234 | ||
| 780 | 19년 전 | 3138 | ||
| 779 |
|
19년 전 | 2241 | |
| 778 |
|
19년 전 | 1788 | |
| 777 | 19년 전 | 2829 | ||
| 776 | 19년 전 | 2897 | ||
| 775 | 19년 전 | 4009 | ||
| 774 |
|
19년 전 | 1971 | |
| 773 | 19년 전 | 2619 | ||
| 772 | 19년 전 | 2334 | ||
| 771 | 19년 전 | 3463 | ||
| 770 |
|
19년 전 | 1421 | |
| 769 | 19년 전 | 1487 | ||
| 768 | 19년 전 | 1764 | ||
| 767 | 19년 전 | 2202 | ||
| 766 | 19년 전 | 1832 | ||
| 765 | 19년 전 | 1693 | ||
| 764 |
|
19년 전 | 2100 | |
| 763 |
|
19년 전 | 2209 | |
| 762 |
|
19년 전 | 4963 | |
| 761 | 19년 전 | 2326 | ||
| 760 |
|
19년 전 | 3191 | |
| 759 | 19년 전 | 2639 | ||
| 758 |
|
19년 전 | 2405 | |
| 757 | 19년 전 | 4696 | ||
| 756 | 19년 전 | 2560 | ||
| 755 |
|
19년 전 | 2409 | |
| 754 |
|
19년 전 | 1944 | |
| 753 |
|
19년 전 | 1724 | |
| 752 |
pearly
|
19년 전 | 3360 | |
| 751 | 19년 전 | 2329 | ||
| 750 |
|
19년 전 | 6156 | |
| 749 | 19년 전 | 2018 | ||
| 748 |
|
19년 전 | 1895 | |
| 747 |
|
19년 전 | 2703 | |
| 746 |
|
19년 전 | 1807 | |
| 745 | 19년 전 | 2278 | ||
| 744 | 19년 전 | 2105 | ||
| 743 |
|
19년 전 | 3558 | |
| 742 | 19년 전 | 2570 | ||
| 741 | 19년 전 | 2739 | ||
| 740 |
|
19년 전 | 4362 | |
| 739 | 19년 전 | 3543 | ||
| 738 |
|
19년 전 | 2301 | |
| 737 | 19년 전 | 4292 | ||
| 736 | 19년 전 | 3261 | ||
| 735 |
홀로남은자
|
19년 전 | 4128 | |
| 734 |
홀로남은자
|
19년 전 | 2011 | |
| 733 |
홀로남은자
|
19년 전 | 2223 | |
| 732 | 19년 전 | 2138 | ||
| 731 | 19년 전 | 3347 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기