A/B WWW MTA/MSP sendmail POP/IMAP apache WWW 1 1 sendmail uw imap apache WWW host host subnet1: 192.168.1/24 IF1:192.168.1.1 router & server mail and WWW IF2:192.168.0.32 subnet2: 192.168.0/24 1: 1
2 iep.sie.dendai.ac.jp DNS host host host host subnet1: 192.168.1/24 subnet3 IF1:192.168.1.1 router & server mail and WWW router & server mail and WWW IF2:192.168.0.32 subnet2: 192.168.0/24 IF: 192.168.0.1 router DNS The Internet 2: ( ) 2
2 DNS IP DNS (Domain Name System) DNS DNS 2.1 host host DNS IP 3 host ( ) IP host IP ( ) 3 host -l ( ) host -l 168.192.in-addr.arpa ( ) in-addr.arpa host -a ( ) host -a 168.192.in-addr.arpa ( ) in-addr.arpa 3: host 3
2.2 DNS iep.sie.dendai.ac.jp $TTL 3600 @ IN SOA core.iep.sie.dendai.ac.jp. root.core.iep.sie.dendai.ac.jp. ( 2005052500 ; Serial 3600 ; Refresh 900 ; Retry 3600000 ; Expire 3600 ) ; Minimum SOA (Start Of Authority) IN NS core.iep.sie.dendai.ac.jp. NS (Name Server) FQDN(Fully Qualified Domain Name) core IN A 192.168.0.1 server.t1 IN A 192.168.1.1 IN A 192.168.0.32 A (Address) FQDN core 2 2 A www.t1 IN CNAME server.t1 CNAME (Canonical Name) www 4
192.168 $TTL 3600 @ IN SOA core.iep.sie.dendai.ac.jp. root.core.iep.sie.dendai.ac.jp. ( 2005052500 ; Serial 3600 ; Refresh 900 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS core.iep.sie.dendai.ac.jp. SOA NS 1.0 IN PTR core.iep.sie.dendai.ac.jp. 1.1 IN PTR server.t1.iep.sie.dendai.ac.jp. 32.0 IN PTR server.t1.iep.sie.dendai.ac.jp. PTR (Pointer) FQDN core 5
3 3.1 MX DNS A MX (Mail exchange) MX SOA t1 IN MX 10 server A IN MX MX t1 IN MX 10 server IN MX 20 server2 server server2 6
3.2 sendmail FreeBSD sendmail[2] MTA/MSP sendmail /etc/mail sendmail.cf sendmail.cf m4 FreeBSD Makefile m4 sendmail.cf MX /etc/mail/local-host-names t1.iep.sie.dendai.ac.jp LAN (192.168.1/24) /etc/mail/access.sample /etc/mail/access 192.168.1 RELAY /etc/mail make.cf sendmail.cf make install 3.3 sendmail /etc/rc.conf sendmail_enable="yes" sendmail enable sendmail sendmail /etc/rc.d/sendmail start stop restart 7
3.4 uw imap uw imap[3] POP/IMAP uw imap POP (Post Office Protocol)2/3 IMAP (Internet Message Access Protocol) IMAP PC ports ports ports ports ports ports /usr/ports/ /usr/ports/mail/cclient make WITH SSL AND PLAINTEXT=yes install /usr/ports/mail/imap-uw make WITH SSL AND PLAINTEXT=yes install POP IMAP /etc/inetd.conf pop3 stream tcp nowait root /usr/local/libexec/ipop3d ipop3d imap4 stream tcp nowait root /usr/local/libexec/imapd imapd inetd /etc/rc.d/inetd restart 8
3.5 PC 4 @ 4 (a) 05ie999@t1.iep.sie.dendai.ac.jp IP 4 (b) 192.168.1.1 LAN IP POP IMAP 4 (c) 05ie999 1 (a) (b) (c) 4: 1 9
4 WWW apache WWW apache [4] WWW 4.1 apache apache22 /etc/rc.conf apache22_enable="yes" apache22 enable apache apache /usr/local/etc/rc.d/apache22 start stop restart 2 5 5: apache 2 http://www.t1.iep.sie.dendai.ac.jp/ 10
4.2 httpd.conf apache ports /usr/local/etc/apache22 httpd.conf httpd.conf httpd.conf ServerRoot "/usr/local" httpd Listen 80 Listen 8080 httpd #ServerAdmin you@example.com ServerAdmin root@t1.iep.sie.dendai.ac.jp httpd webmaster webmaster@t1.iep.sie.dendai.ac.jp #ServerName www.example.com:80 ServerName www.t1.iep.sie.dendai.ac.jp WWW DNS DocumentRoot /usr/local/www/apache22/data URL 3 ( ) index.html # Language settings Include etc/apache22/extra/httpd-languages.conf # User home directories Include etc/apache22/extra/httpd-userdir.conf 3 http://www.t1.iep.sie.dendai.ac.jp/ 11
/usr/local/etc/apache22/extra/httpdlanguages.conf # DefaultLanguage nl DefaultLanguage ja #LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-br ru sv zh-cn zh-tw LanguagePriority ja en ca cs da de el eo es et fr he hr it ko ltz nl nn no pl pt pt-br ru sv zh-cn zh-tw ja 4.3 public html index.html URL http:// / / 05ie999 /home/05ie999 /home/05ie999/public html index.html URL http://www.t1.iep.sie.dendai.ac.jp/ 05ie999/ 12
[5],[6] 6 DNS iep.sie.dndai.ac.jp DNS LAN WWW PC PC PC LAN router & server mail and WWW subnet router & server DNS 6: ( ) 1. host DNS 2. sendmail LAN mail @ mail 4 mail Subject: 3. uw-imap POP/IMAP SMTP POP/IMAP 4. apache WWW 4 [7] 13
URL [7] [1] ISC : ISC BIND, http://www.isc.org/sw/bind/ [2] Sendmail.org : Sendmail, http://www.sendmail.org/ [3] University of Washington : IMAP Information Center, http://www.washington.edu/imap/ [4] The Apache Software Foundation : The Apache HTTP Server Project, http://httpd.apache.org/ [5] W.. : TCP/IP Vol.1,, ISBN4-89471-320-9, 2000 [6] Douglas Comer : TCP/IP Vol.I 4,, ISBN4-320-12054-X, 2002 [7] : The UNIX Super Text,, ISBN4-7741-1682-3, 2003 14