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

· 19년 전 · 2461
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,131
19년 전 조회 3,031
19년 전 조회 3,683
19년 전 조회 2,990
19년 전 조회 2,218
19년 전 조회 2,229
19년 전 조회 2,174
19년 전 조회 2,775
19년 전 조회 2,491
19년 전 조회 3,353
19년 전 조회 3,206
19년 전 조회 1,832
19년 전 조회 2,744
19년 전 조회 7,838
19년 전 조회 2,513
19년 전 조회 3,122
19년 전 조회 2,869
19년 전 조회 3,025
19년 전 조회 2,231
19년 전 조회 2,456
19년 전 조회 4,081
19년 전 조회 2,234
19년 전 조회 4,238
19년 전 조회 2,393
19년 전 조회 2,089
19년 전 조회 2,339
19년 전 조회 1,882
19년 전 조회 2,414
19년 전 조회 2,206
19년 전 조회 3,073
19년 전 조회 1,861
19년 전 조회 3,554
19년 전 조회 2,711
19년 전 조회 3,456
19년 전 조회 3,457
19년 전 조회 3,160
19년 전 조회 5,448
19년 전 조회 2,177
19년 전 조회 2,228
19년 전 조회 2,318
19년 전 조회 3,404
19년 전 조회 3,711
19년 전 조회 3,759
19년 전 조회 2,359
19년 전 조회 2,405
19년 전 조회 2,700
19년 전 조회 3,046
19년 전 조회 2,469
19년 전 조회 2,636
19년 전 조회 2,462
19년 전 조회 2,219
19년 전 조회 3,236
19년 전 조회 3,298
19년 전 조회 3,039
19년 전 조회 4,872
19년 전 조회 2,703
19년 전 조회 3,313
19년 전 조회 3,149
19년 전 조회 1,997
19년 전 조회 3,134
19년 전 조회 1,878
19년 전 조회 2,342
19년 전 조회 2,416
19년 전 조회 3,995
19년 전 조회 3,182
19년 전 조회 3,110
19년 전 조회 2,546
19년 전 조회 2,011
19년 전 조회 1,652
19년 전 조회 2,424
19년 전 조회 2,341
19년 전 조회 1,828
19년 전 조회 1,826
19년 전 조회 2,615
19년 전 조회 2,587
19년 전 조회 1,890
19년 전 조회 2,121
19년 전 조회 3,307
19년 전 조회 1,959
19년 전 조회 2,501
19년 전 조회 2,579
19년 전 조회 2,675
19년 전 조회 2,948
19년 전 조회 2,571
19년 전 조회 2,988
19년 전 조회 2,771
19년 전 조회 3,525
19년 전 조회 1,884
19년 전 조회 2,741
19년 전 조회 2,380
19년 전 조회 2,030
19년 전 조회 2,433
19년 전 조회 1,889
19년 전 조회 5,451
19년 전 조회 2,273
19년 전 조회 4,255
19년 전 조회 2,311
19년 전 조회 1,862
19년 전 조회 2,602
19년 전 조회 2,344