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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 330 |
prosper
|
20년 전 | 2239 | |
| 329 |
prosper
|
20년 전 | 1847 | |
| 328 |
prosper
|
20년 전 | 1660 | |
| 327 | 20년 전 | 3738 | ||
| 326 | 20년 전 | 4816 | ||
| 325 |
hwatta
|
20년 전 | 2435 | |
| 324 |
|
20년 전 | 3117 | |
| 323 | 20년 전 | 5822 | ||
| 322 |
hwatta
|
20년 전 | 2810 | |
| 321 |
hwatta
|
20년 전 | 2291 | |
| 320 |
yesmoa
|
20년 전 | 4546 | |
| 319 | 20년 전 | 2640 | ||
| 318 | 20년 전 | 2221 | ||
| 317 |
kyodon
|
20년 전 | 2748 | |
| 316 | 20년 전 | 2549 | ||
| 315 |
|
20년 전 | 2864 | |
| 314 |
|
20년 전 | 3306 | |
| 313 |
|
20년 전 | 2619 | |
| 312 |
yesmoa
|
20년 전 | 4694 | |
| 311 | 20년 전 | 3223 | ||
| 310 |
홀로남은자
|
20년 전 | 4529 | |
| 309 | 20년 전 | 2985 | ||
| 308 | 20년 전 | 4105 | ||
| 307 | 20년 전 | 4339 | ||
| 306 | 20년 전 | 7008 | ||
| 305 | 20년 전 | 3840 | ||
| 304 | 20년 전 | 2740 | ||
| 303 |
크리스탈처럼
|
20년 전 | 4374 | |
| 302 | 20년 전 | 2185 | ||
| 301 |
|
20년 전 | 4307 | |
| 300 | 20년 전 | 3764 | ||
| 299 | 20년 전 | 2560 | ||
| 298 | 20년 전 | 4791 | ||
| 297 |
|
20년 전 | 2503 | |
| 296 | 20년 전 | 4493 | ||
| 295 | 20년 전 | 3548 | ||
| 294 | 20년 전 | 3568 | ||
| 293 | 20년 전 | 3802 | ||
| 292 | 20년 전 | 3182 | ||
| 291 |
yesmoa
|
20년 전 | 5896 | |
| 290 | 20년 전 | 2919 | ||
| 289 | 20년 전 | 5825 | ||
| 288 |
|
20년 전 | 2346 | |
| 287 |
|
20년 전 | 1754 | |
| 286 |
|
20년 전 | 2123 | |
| 285 |
|
20년 전 | 3508 | |
| 284 |
|
20년 전 | 2015 | |
| 283 |
|
20년 전 | 4380 | |
| 282 | 20년 전 | 3358 | ||
| 281 |
|
20년 전 | 2186 | |
| 280 |
|
20년 전 | 7782 | |
| 279 | 20년 전 | 5522 | ||
| 278 | 20년 전 | 2969 | ||
| 277 |
|
20년 전 | 5551 | |
| 276 | 20년 전 | 2339 | ||
| 275 | 20년 전 | 2569 | ||
| 274 | 20년 전 | 2336 | ||
| 273 | 20년 전 | 2185 | ||
| 272 | 20년 전 | 2111 | ||
| 271 | 20년 전 | 2577 | ||
| 270 | 20년 전 | 2561 | ||
| 269 | 20년 전 | 2444 | ||
| 268 | 20년 전 | 2651 | ||
| 267 | 20년 전 | 2344 | ||
| 266 | 20년 전 | 2547 | ||
| 265 | 20년 전 | 3482 | ||
| 264 |
|
20년 전 | 5336 | |
| 263 |
|
20년 전 | 3694 | |
| 262 | 20년 전 | 3149 | ||
| 261 |
허저비
|
20년 전 | 5905 | |
| 260 |
|
20년 전 | 5697 | |
| 259 | 20년 전 | 4114 | ||
| 258 | 20년 전 | 2364 | ||
| 257 | 20년 전 | 3164 | ||
| 256 | 20년 전 | 1880 | ||
| 255 | 20년 전 | 1546 | ||
| 254 | 20년 전 | 3121 | ||
| 253 | 20년 전 | 3531 | ||
| 252 | 20년 전 | 5082 | ||
| 251 | 20년 전 | 5788 | ||
| 250 | 20년 전 | 3653 | ||
| 249 | 20년 전 | 4990 | ||
| 248 | 20년 전 | 3270 | ||
| 247 | 20년 전 | 3612 | ||
| 246 |
|
20년 전 | 7922 | |
| 245 |
|
20년 전 | 5886 | |
| 244 | 20년 전 | 4467 | ||
| 243 |
|
20년 전 | 4018 | |
| 242 | 20년 전 | 2748 | ||
| 241 | 20년 전 | 2690 | ||
| 240 | 20년 전 | 2321 | ||
| 239 | 20년 전 | 1617 | ||
| 238 |
아우겐나이스
|
20년 전 | 2237 | |
| 237 |
email
|
20년 전 | 3655 | |
| 236 | 20년 전 | 4120 | ||
| 235 | 20년 전 | 10440 | ||
| 234 | 20년 전 | 5037 | ||
| 233 | 20년 전 | 3353 | ||
| 232 | 20년 전 | 3172 | ||
| 231 | 20년 전 | 3806 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기