중급자를 위한 리눅스 서버 세팅 순서와 자동 설치 스크립트 소스 - 부분 4

· 19년 전 · 2621
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>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 3,288
19년 전 조회 3,171
19년 전 조회 3,861
19년 전 조회 3,154
19년 전 조회 2,387
19년 전 조회 2,387
19년 전 조회 2,328
19년 전 조회 2,952
19년 전 조회 2,651
19년 전 조회 3,499
19년 전 조회 3,363
19년 전 조회 1,986
19년 전 조회 2,903
19년 전 조회 7,990
19년 전 조회 2,667
19년 전 조회 3,273
19년 전 조회 3,042
19년 전 조회 3,159
19년 전 조회 2,388
19년 전 조회 2,617
19년 전 조회 4,215
19년 전 조회 2,409
19년 전 조회 4,391
19년 전 조회 2,567
19년 전 조회 2,246
19년 전 조회 2,482
19년 전 조회 2,041
19년 전 조회 2,574
19년 전 조회 2,356
19년 전 조회 3,229
19년 전 조회 2,016
19년 전 조회 3,686
19년 전 조회 2,868
19년 전 조회 3,588
19년 전 조회 3,612
19년 전 조회 3,313
19년 전 조회 5,587
19년 전 조회 2,332
19년 전 조회 2,379
19년 전 조회 2,480
19년 전 조회 3,556
19년 전 조회 3,873
19년 전 조회 3,897
19년 전 조회 2,512
19년 전 조회 2,547
19년 전 조회 2,840
19년 전 조회 3,164
19년 전 조회 2,602
19년 전 조회 2,779
19년 전 조회 2,622
19년 전 조회 2,362
19년 전 조회 3,381
19년 전 조회 3,455
19년 전 조회 3,175
19년 전 조회 5,011
19년 전 조회 2,850
19년 전 조회 3,467
19년 전 조회 3,299
19년 전 조회 2,156
19년 전 조회 3,290
19년 전 조회 2,023
19년 전 조회 2,480
19년 전 조회 2,568
19년 전 조회 4,136
19년 전 조회 3,328
19년 전 조회 3,246
19년 전 조회 2,690
19년 전 조회 2,156
19년 전 조회 1,799
19년 전 조회 2,579
19년 전 조회 2,489
19년 전 조회 1,961
19년 전 조회 1,970
19년 전 조회 2,751
19년 전 조회 2,720
19년 전 조회 2,039
19년 전 조회 2,263
19년 전 조회 3,446
19년 전 조회 2,098
19년 전 조회 2,623
19년 전 조회 2,706
19년 전 조회 2,820
19년 전 조회 3,079
19년 전 조회 2,727
19년 전 조회 3,132
19년 전 조회 2,899
19년 전 조회 3,665
19년 전 조회 2,020
19년 전 조회 2,871
19년 전 조회 2,533
19년 전 조회 2,164
19년 전 조회 2,584
19년 전 조회 2,014
19년 전 조회 5,572
19년 전 조회 2,422
19년 전 조회 4,381
19년 전 조회 2,450
19년 전 조회 2,011
19년 전 조회 2,737
19년 전 조회 2,484