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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 930 | 19년 전 | 3554 | ||
| 929 |
|
19년 전 | 2724 | |
| 928 |
|
19년 전 | 3462 | |
| 927 |
|
19년 전 | 3457 | |
| 926 |
|
19년 전 | 3155 | |
| 925 | 19년 전 | 5447 | ||
| 924 |
|
19년 전 | 2185 | |
| 923 |
|
19년 전 | 2245 | |
| 922 |
|
19년 전 | 2330 | |
| 921 |
|
19년 전 | 3422 | |
| 920 | 19년 전 | 3718 | ||
| 919 |
|
19년 전 | 3761 | |
| 918 |
|
19년 전 | 2382 | |
| 917 |
|
19년 전 | 2412 | |
| 916 |
|
19년 전 | 2721 | |
| 915 | 19년 전 | 3068 | ||
| 914 | 19년 전 | 2474 | ||
| 913 | 19년 전 | 2637 | ||
| 912 | 19년 전 | 2467 | ||
| 911 | 19년 전 | 2233 | ||
| 910 | 19년 전 | 3262 | ||
| 909 | 19년 전 | 3326 | ||
| 908 | 19년 전 | 3056 | ||
| 907 |
|
19년 전 | 4882 | |
| 906 |
|
19년 전 | 2724 | |
| 905 |
|
19년 전 | 3323 | |
| 904 |
|
19년 전 | 3167 | |
| 903 |
|
19년 전 | 2009 | |
| 902 |
|
19년 전 | 3163 | |
| 901 |
|
19년 전 | 1896 | |
| 900 |
|
19년 전 | 2353 | |
| 899 |
|
19년 전 | 2412 | |
| 898 |
|
19년 전 | 4002 | |
| 897 |
|
19년 전 | 3206 | |
| 896 |
|
19년 전 | 3119 | |
| 895 |
|
19년 전 | 2553 | |
| 894 |
|
19년 전 | 2032 | |
| 893 |
|
19년 전 | 1663 | |
| 892 |
|
19년 전 | 2429 | |
| 891 |
|
19년 전 | 2342 | |
| 890 |
|
19년 전 | 1825 | |
| 889 |
|
19년 전 | 1826 | |
| 888 |
|
19년 전 | 2619 | |
| 887 |
|
19년 전 | 2590 | |
| 886 |
|
19년 전 | 1880 | |
| 885 |
|
19년 전 | 2131 | |
| 884 |
|
19년 전 | 3318 | |
| 883 |
|
19년 전 | 1963 | |
| 882 |
|
19년 전 | 2516 | |
| 881 |
|
19년 전 | 2598 | |
| 880 |
|
19년 전 | 2675 | |
| 879 |
|
19년 전 | 2948 | |
| 878 |
|
19년 전 | 2570 | |
| 877 |
|
19년 전 | 2992 | |
| 876 |
|
19년 전 | 2767 | |
| 875 |
|
19년 전 | 3527 | |
| 874 | 19년 전 | 1881 | ||
| 873 | 19년 전 | 2748 | ||
| 872 |
|
19년 전 | 2385 | |
| 871 |
|
19년 전 | 2030 | |
| 870 |
|
19년 전 | 2437 | |
| 869 |
|
19년 전 | 1880 | |
| 868 |
|
19년 전 | 5453 | |
| 867 |
|
19년 전 | 2278 | |
| 866 |
|
19년 전 | 4282 | |
| 865 |
|
19년 전 | 2317 | |
| 864 | 19년 전 | 1868 | ||
| 863 | 19년 전 | 2624 | ||
| 862 | 19년 전 | 2342 | ||
| 861 | 19년 전 | 2541 | ||
| 860 | 19년 전 | 2183 | ||
| 859 | 19년 전 | 3933 | ||
| 858 | 19년 전 | 3430 | ||
| 857 | 19년 전 | 2217 | ||
| 856 |
Power
|
19년 전 | 2114 | |
| 855 | 19년 전 | 1979 | ||
| 854 | 19년 전 | 2015 | ||
| 853 |
pearly
|
19년 전 | 4417 | |
| 852 |
pearly
|
19년 전 | 3367 | |
| 851 | 19년 전 | 2788 | ||
| 850 |
pearly
|
19년 전 | 3362 | |
| 849 |
pearly
|
19년 전 | 3020 | |
| 848 |
pearly
|
19년 전 | 2859 | |
| 847 | 19년 전 | 2383 | ||
| 846 |
|
19년 전 | 2193 | |
| 845 |
pearly
|
19년 전 | 2512 | |
| 844 | 19년 전 | 3118 | ||
| 843 | 19년 전 | 2148 | ||
| 842 |
pearly
|
19년 전 | 3133 | |
| 841 |
pearly
|
19년 전 | 3256 | |
| 840 | 19년 전 | 2944 | ||
| 839 |
|
19년 전 | 1956 | |
| 838 |
|
19년 전 | 1719 | |
| 837 |
|
19년 전 | 2341 | |
| 836 |
|
19년 전 | 2290 | |
| 835 |
|
19년 전 | 1664 | |
| 834 |
|
19년 전 | 1678 | |
| 833 |
|
19년 전 | 1584 | |
| 832 |
|
19년 전 | 2076 | |
| 831 |
|
19년 전 | 1626 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기