1 / 13

전자메일

전자메일. 전산과 대학원 2 차 학기 DB 연구실 김 종 탁. 개요. sendmail 설치 준비 사항 package 설치 방법 sendmail 설치법 pop3 설치법. Sendmail 설치 준비 사항. 기본적 설치 package(file) GNUzip.1.2.4.SPARC.Solaris.2.6.pkg.tar (GNUtar.1.12.SPARC.Solaris.2.6.pkg.tgz) GNUgroff.1.11.SPARC.Solaris.2.6.pkg.tgz

Download Presentation

전자메일

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 전자메일 전산과 대학원 2차 학기 DB연구실 김 종 탁

  2. 개요 • sendmail 설치 준비 사항 • package 설치 방법 • sendmail 설치법 • pop3 설치법

  3. Sendmail 설치 준비 사항 • 기본적 설치 package(file) • GNUzip.1.2.4.SPARC.Solaris.2.6.pkg.tar (GNUtar.1.12.SPARC.Solaris.2.6.pkg.tgz) • GNUgroff.1.11.SPARC.Solaris.2.6.pkg.tgz • GNUgcc.2.8.1.SPARC.Solaris.2.6.pkg.tgz • GNUm4.1.4.SPARC.Solaris.2.6.pkg.tgz • sendmail-8.8.8H1-4nospam.tar • qpopper.2.53.SPARC.Solaris.2.6.pkg.tgz

  4. Package 설치방법 • /usr/local 에 보통 작업을 한다. • gzip –d 화일이름 • 예) gzip –d GNUgcc.2.8.1.SPARC.Solaris.2.6.pkg.tgz • tar –xvf 화일이름 • Pkgadd –d `pwd` 폴더 이름 • rm –r 폴더 이름 • rm 파일 이름

  5. sendmail 설치법(1) • 현재 sendmail 디먼을 종료 • Sendmail 파일을 푼다 • sendmail-8.8.8H1 폴더가 생긴다 [dblab: /usr/local] ps -ef | grep sendmail root 1059 1 0 10:55:12 ? 0:00 sendmail -bd -q1h [dblab: /usr/local] kill -9 1059 tar -xvf sendmail-8.8.8H1-4nospam.tar [dblab: /usr/local] ls bin sendmail etc sendmail-8.8.8H1 info sendmail-8.8.8H1-4nospam.tar lib share libexec sparc-sun-solaris2.6

  6. sendmail 설치법(2) • sendmail-8.8.8H1/src 폴더로 들어간다. • makesendmail 명령어를 수행하면 scrip가 알아서 os를 식별하여 sendmail Binary 를 만들기 시작한다. [dblab: /usr/local] cd sendmail-8.8.8H1 /usr/local/sendmail-8.8.8H1 [dblab: /usr/local/sendmail-8.8.8H1] cd src /usr/local/sendmail-8.8.8H1/src [dblab: /usr/local/sendmail-8.8.8H1/src] makesendmail Configuration: os=SunOS, rel=5.6, rbase=5, rroot=5.6, arch=sun4, sfx= Creating obj.SunOS.5.6.sun4 using Makefile.SunOS.5.6 Making dependencies in obj.SunOS.5.6.sun4 make: Nothing to be done for `depend'. Making in obj.SunOS.5.6.sun4 gcc -I. -O -I/usr/sww/include -DNDBM -DNIS -DNISPLUS –DSOL ARIS=20600 -c alias.c -o alias.o

  7. sendmail 설치법(3) • 오류 발생 • 44bsd 라이브러리가 지원 되지 않는 경우 • Makefile의 다음라인 수정 ld: fatal: library -l44bsd: not found ld: fatal: File processing errors. No output written to sendmail make: *** [sendmail] Error 1 [dblab: /usr/local/sendmail-8.8.8H1/src/obj.SunOS.5.6.sun4] vi Makefile # libraries required on your system # delete -l44bsd if you are not running BIND 4.9.x LIBS= -lresolv -l44bsd -lsocket -lnsl -lkstat

  8. sendmail 설치법(4) • obj.SunOS.5.6.sun4폴더에 들어가서 make install 실행 • 위 과정이 완료되면 새로운 sendmail.cf 를 만든다. • 폴더 이동 : usr/local/sendmail-8.8.8H1/cf/cf • m4를 사용하여 sendmail.cf파일 생성 • sendmail.cf 를 /etc 에 카피 [dblab: /usr/local/sendmail-8.8.8H1/src] cd obj.SunOS.5.6.sun4 /usr/local/sendmail-8.8.8H1/src/obj.SunOS.5.6.sun4 [dblab: /usr/local/sendmail-8.8.8H1/src/obj.SunOS.5.6.sun4] make install m4 ../m4/cf.m4 generic-solaris2.mc > sendmail.cf cp sendmail.cp /etc

  9. sendmail 설치법(5) • sendmail 디몬 실행 • 오류발생 • /etc/mail/sendmail.cw 생성 sendmail -bd -q1h 451 /etc/sendmail.cf: line 73: fileclass: cannot open /etc/mail/sendmail.cw: No such file or directory inchon.ac.kr dblab.inchon.ac.kr

  10. pop3 설치법(1) • 현재 pop3 디몬을 종료 • Pop3 압축풀기 [dblab: /usr/local] ps – ef | grep inetd root 128 1 0 Oct 27 ? 0:00 /usr/sbin/inetd -s [dblab: /usr/local] kill - 9 128 [dblab: /usr/local] ps -ef | grep inetd. [dblab: /usr/local] gzip -d qpopper.2.53.SPARC.Solaris.2.6.pkg.tgz [dblab: /usr/local] tar -xvf qpopper.2.53.SPARC.Solaris.2.6.pkg.tar

  11. pop3 설치법(2) • package 풀기 • /usr/local/etc 로 이동 • popper.normal 파일을 popper 로 변경 [dblab: /usr/local] pkgadd -d `pwd` qpopper [dblab: /usr/local] cd etc /usr/local/etc [dblab: /usr/local/etc] cp popper.normal popper

  12. pop3 설치법(3) • /etc/services 파일에 다음 행 추가 • /etc/inetd.conf파일에 다음 행 추가 • pop3 디몬 실행 Pop3 110/tcp popper pop3 stream tcp nowait root /usr/local/etc/popper popper -s [dblab: /etc] inetd -s [dblab: /etc] ps -ef | grep inetd root 1686 1 1 16:28:30 ? 0:00 inetd -s

  13. pop3 설치법(4) • pop3 실행 확인 [dblab: /etc] telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK QPOP (version: 2.53) at dblab starting. <1690.941095726@dblab> user jtkim +OK Password required for jtkim. pass wngP +OK jtkim has 0 messages (0 octets).

More Related