¡@¡@¥¦ªº°ò¥»¥\¯à¤@À³Ñ¥þ¡G¬Ý«H¡B¼g«H¡B³q°T¿ý³£¦³¡AÁÙ¥i¦b¼g«H®É§¨±aÀɮסI
¡@¡@¹ï©ó¨Ï¥ÎªÌ¦Ó¨¥¡A¥¦ªº¦n³B¬O¨Ï¥ÎªÌ¥i¦b¥ô¦ó¤@Ó¦a¤è¡A¤£¥²³]©w½ÆÂøªº«H¥óºÞ²zµ{¦¡¡]¹³Outlook Express..), §Y¥i§Q¥Î¬yÄý¾¹ª½±µ¨Ó°µemail¦¬µo¡C
¡@¡@¹ï©ó¨t²ÎºÞ²zªÌ¦Ó¨¥¡A¥¦ªº¦n³B¬O¥i§Q¥Î¨t²Î²{¦³¤§¸ê·½¡A¤£¥²¸g¹L½ÆÂøªº³]©w¡Aª½±µ¦w¸ËFocalMail§Y¥iÅý¨Ï¥ÎªÌ¤è«K¦a¨Ï¥Îemail¡A¬Ù«oºÞ²zªÌ³\¦hÄ_¶Qªº®É¶¡¡C
¡@¡@¤£¦P©ó¤¤µØ¹q¸£ªºWebMail¨t²Î¡AFocalMail¥u¬O³æ¯Â¤@ÓWeb¤¶±¡CWebMail¨t²Î¥]§t¤Fhttpd, ftpd,pop3...µ¥´XÓ¥²¥Îªºservice¡A¤£¥²¥Ñ§@·~¨t²Î¥»¨´£¨Ñ¡A¥B¨Ï¥ÎªÌ±b¸¹¥²¶·¤º«Ø©óWebMail¨t²Î¤¤¡FFocalMail«h¤£¦P¡A¥¦©Ò¦³ªºªA°È§¡¶·©ó§@·~¨t²Î¥»¨´£¨Ñ¡A¨Ï¥ÎªÌ±b¸¹¤]¥²¶·«Ø¥ß©ó§@·~¨t²Î¤§¤¤¡A¥¦¥u³æ¯Â´£¨Ñ¤@ÓWeb¤¶±¨Ó¨Ñ¤H¾Þ§@¨Ï¥Î¡C
¡@¡@¥¦§Q¥ÎJavaSvript»PHTML¨Ó§@ClientºÝªº¤¶±¡A³z¹Lphp3¨Ó©I¥sIMAP¤Îsendmailµ¥ªA°È¨Ó¹F¦¨¨Ï¥ÎªÌªº»Ý¨D¡]¦¬«H¡B¬Ý«H¡B±H«H¡^¡A¨Ã³z¹Lphp3±N¨Ï¥ÎªÌªº³q¿ý°T»PÀô¹Ò°Ñ¼Æ¦s©óMySQLªº¸ê®Æ®w¤¤¡C
¡@¡@§Ú·Q§@ªÌ°ò¥»¤Wªº¥XµoÂI¦b©ó¤è«K¡B§Ö³t¥B¨S¦³¨î¦aÂI¡B¤u¨ã¦a¨Ï¥Î¡A¨Ã¨S¦³·Q¨ìn¾A¥Î¦p¦¹¦h¥B½ÆÂøªºencode,decodeªºÀô¹Ò¡A§¹¥þ°ò©ó¯Â¤å¦rªºÀô¹Ò¬°°ò·Ç¡C
¡@¡@Y±z¥´ºâ¨Ï¥Î FocalMail ¡A±z¥²¶·§iª¾©P¾Dªº¿ËªB¦n¤Í¡A±N Outlook «H¥ó³B²z¤¤¡A«H¥ó¶Ç°e®æ¦¡¤£½×¬O¯Â¤å¦r©ÎHTML¡]¹w³]¬OHTML®æ¦¡¡^¡AMIME®æ¦¡¥²¶·±N½s½XÃö±¼¡]¤£¿ïQuoted Printable©ÎBase 64¡An¿ï"µL"¡^¡A¥B¶·³]©w"ªíÀY®e³\8¦ì¤¸¦r¤¸"¡F©Î¬O°®¯Ü³\¨ú¿ï¨úUuencode¤è¦¡¡F¦p¦¹«K¯à¥¿±`¦aÅã¥Ü¤¤¤å¦r¡I
¡@¡@¥t¥~ÃD¥~¸Ü¡A«H¥ó¶Ç°e®æ¦¡¦³¦p¦¹¦hªºencode¤è¦¡¡A§¹¥þ¬O¡¨·L³n¡¨¦Û¤v¤@¤â·d¥X¨Óªº¡A·Q·íªì¤j®a³£¥Î
Eudora ©Î Netscape ¦¬«H¡A³£¨S¤°»ò°ÝÃD¡A¥D¦®¨Ï¥Î¤¤¤å§¹¥þ¨S¦³°ÝÃD¡A7bit´N¥ÎUuencode¡A8bit«h¤¤¤å§¹¥þ¨S°ÝÃD¡F¥i¬OOutlook
Express¤@¥X²{¡A³n·L¦Ñ¤j¥L¦b¡¨¥D¦®¡¨¤è±ªº½s½X¡A¤]µ¹§A¥ÎMime®æ¦¡½s½X¡A©Ò¦³ªºSendmail³£µLªk¸Ñ¥X¥¿½Tªº¦r¤¸¡]·Q·Q¬Ý¥þ¥@¬É¦h¤Ö¥D¾÷¨Ï¥Îsendmail¡^¡A¤j®aªºEudora©ÎNetscape¦¬«H¡A¥D¦®±q¦¹´N¬Ý¤£¨ì¥¿½Tªº¤¤¤å¦r¡A¥u¬Ý¨ì==Big5.....³o¨Ç¶Ã½X¤F¡A³Q¢±o¤j®a«D±o¨Ï¥ÎOutlook
©Î Outlook Express¬Ý«H¤£¥i¡C²{¦b½Ð¤j®a¼s¬°±À¦æ¡A¨C¦¸³]©wOutlook®É¡A«H¥ó¶Ç°e®æ¦¡Y¥ÎMime®æ¦¡¡A´N¤£n½s½X¥B¶·³]©w"ªíÀY®e³\8¦ì¤¸¦r¤¸"¡A©Î¤j®a°®¯Ü¨Ï¥ÎUuencode½s½X¡AÅý«DMicrosoftªº«H¥ó³B²zµ{¦¡¡A¤]¯à¶¶§Q¦a¬Ý¨ì¤¤¤å¦r¡A¤£¦A¨ü³n·L¦Ñ¤jªºÀ£º^¡I
| -r--r--r-- 1 root root
741517 May 27 21:08 apache-1.3.6-7.i386.rpm
-r--r--r-- 1 root root 75226 May 27 21:08 apache-devel-1.3.6-7.i38.rpm -r--r--r-- 1 root root 32037 May 27 21:17 zlib-1.1.3-5.i386.rpm -r--r--r-- 1 root root 62834 May 27 21:17 zlib-devel-1.1.3-5.i386.rpm -r--r--r-- 1 root root 400307 May 27 21:10 freetype-1.2-8CLE.i386.rpm -r--r--r-- 1 root root 162404 May 27 21:10 freetype-contrib-1.2-8CL.i386.rpm -r--r--r-- 1 root root 164414 May 27 21:10 freetype-devel-1.2-8CLE.i386.rpm -r--r--r-- 1 root root 63934 May 27 21:10 gd-1.3-5.i386.rpm -r--r--r-- 1 root root 5281 May 27 21:10 gd-devel-1.3-5.i386.rpm -r--r--r-- 1 root root 850212 May 27 21:12 imap-4.5-3.i386.rpm -r--r--r-- 1 root root 202804 May 27 21:15 sendmail-8.9.3-10.i386.rpm |
| -rwxrwxr-x 1 root root
4622824 Aug 5 15:50 MySQL-3.22.25-1c.i386.rpm
-rwxrwxr-x 1 root root 3916502 Aug 5 15:50 MySQL-3.22.25-1c.src.rpm -rwxrwxr-x 1 root root 539088 Aug 5 15:50 MySQL-bench-3.22.25-1c.i386.rpm -rwxrwxr-x 1 root root 2036697 Aug 5 15:50 MySQL-client-3.22.25-1c.i386.rpm -rwxrwxr-x 1 root root 597519 Aug 5 15:50 MySQL-devel-3.22.25-1c.i386.rpm -rw-r--r-- 1 root root 269409 Aug 6 00:28 mod_php3-3.0.12-1cc.i386.rpm -rw-r--r-- 1 root root 312579 Aug 6 00:28 mod_php3-imap-3.0.12-1cc.i386.rpm -rw-r--r-- 1 root root 608685 Aug 6 00:28 mod_php3-manual-3.0.12-1cc.i386.rpm -rw-r--r-- 1 root root 36161 Aug 6 00:28 mod_php3-mysql-3.0.12-1cc.i386.rpm -rw-r--r-- 1 root root 13270 Aug 6 00:28 mod_php3-pgsql-3.0.12-1cc.i386.rpm |
| -rwxrwxr-x 1 root root
81352 Aug 7 00:11 focalmail-1.2.5.tar.gz
-rwxrwxr-x 1 root root 16369 Aug 7 00:11 theme-chinese.big5.tar.gz |
| [root@test /]# rpm
-qa | grep apache-
apache-1.3.6-7 apache-devel-1.3.6-7 |
| [root@test /]# rpm
-qa | grep zlib-
zlib-devel-1.2.3-1 zlib-1.2.3-1 |
| [root@test /]# rpm
-qa | grep freetype
freetype-1.2-8CLE freetype-contrib-1.2-8CLE freetype-devel-1.2-8CLE |
| [root@test /]# rpm
-qa | grep gd-
gd-1.3-5 gd-devel-1.3-5 |
| [root@test /]# rpm
-qa | grep imap-
imap-4.5-3 mod_php3-imap-3.0.12-1cc |
| [root@test /]# rpm
-qa | grep sendmail-
sendmail-8.9.3-10 |
| [root@test /]# rpm
-qa | grep MySQL-
MySQL-client-3.22.25-1c MySQL-devel-3.22.25-1c MySQL-3.22.25-1c |
| [root@test /]# rpm
-qa | grep php
mod_php3-imap-3.0.12-1cc mod_php3-mysql-3.0.12-1cc mod_php3-3.0.12-1cc mod_php3-manual-3.0.12-1cc |
| [root@test /]# cd
/mnt
[root@test /mnt]# mount cdrom |
| [root@test /mnt]# cd
/mnt/cdrom/RedHat/RPMS/
[root@test RPMS]# |
| [root@test RPMS]# rpm
-ivh apache-1.3.6-7.i386.rpm
[root@test RPMS]# rpm -ivh apache-devel-1.3.6-7.i386.rpm |
| [root@test RPMS]# rpm
-ivh zlib-1.1.3-5.i386.rpm
[root@test RPMS]# rpm -ivh zlib-devel-1.1.3-5.i386.rpm |
| [root@test RPMS]# rpm
-ivh freetype-1.2-8CLE.i386.rpm
[root@test RPMS]# rpm -ivh freetype-devel-1.2-8CLE.i386.rpm [root@test RPMS]# rpm -ivh freetype-contrib-1.2-8CLE.i386.rpm |
| [root@test RPMS]# rpm
-ivh gd-1.3-5.i386.rpm
[root@test RPMS]# rpm -ivh gd-devel-1.3-5.i386.rpm |
| [root@test RPMS]# rpm -ivh imap-4.5-3.i386.rpm |
| [root@test RPMS]# rpm -ivh sendmail-8.9.3-10.i386.rpm |
| [root@test RPMS]# cd
/root
[root@test /root]# mkdir mysql_php [root@test /root]# cd mysql_php [root@test mysql_php]# ftp vdn1.hmes.kh.edu.tw Connected to 163.18.225.9. 220 test FTP server (Version wu-2.4.2-VR17(1) Mon Apr 19 09:21:53 EDT 1999) rea. Name (192.168.10.10:jang): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: 230 Guest login ok, access restrictions apply. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd apache_php3_mysql 250 CWD command successful. ftp> prompt Interactive mode off. ftp> bin 200 Type set to I. ftp> mget MySQL* local: MySQL-3.22.25-1c.i386.rpm remote: MySQL-3.22.25-1c.i386.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for MySQL-3.22.25-1c.i386.rpm (4622824 . 226 Transfer complete. 4622824 bytes received in 0.348 secs (1.3e+04 Kbytes/sec) local: MySQL-3.22.25-1c.src.rpm remote: MySQL-3.22.25-1c.src.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for MySQL-3.22.25-1c.src.rpm (3916502 b. 226 Transfer complete. 3916502 bytes received in 0.297 secs (1.3e+04 Kbytes/sec) local: MySQL-bench-3.22.25-1c.i386.rpm remote: MySQL-bench-3.22.25-1c.i386.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for MySQL-bench-3.22.25-1c.i386.rpm (53. 226 Transfer complete. 539088 bytes received in 0.0468 secs (1.1e+04 Kbytes/sec) local: MySQL-client-3.22.25-1c.i386.rpm remote: MySQL-client-3.22.25-1c.i386.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for MySQL-client-3.22.25-1c.i386.rpm (2. 226 Transfer complete. 2036697 bytes received in 0.603 secs (3.3e+03 Kbytes/sec) local: MySQL-devel-3.22.25-1c.i386.rpm remote: MySQL-devel-3.22.25-1c.i386.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for MySQL-devel-3.22.25-1c.i386.rpm (59. 226 Transfer complete. 597519 bytes received in 0.0455 secs (1.3e+04 Kbytes/sec) ftp> mget mod_php* local: mod_php3-3.0.12-1cc.i386.rpm remote: mod_php3-3.0.12-1cc.i386.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for mod_php3-3.0.12-1cc.i386.rpm (26940. 226 Transfer complete. 269409 bytes received in 0.0277 secs (9.5e+03 Kbytes/sec) local: mod_php3-3.0.12-1cc.src.rpm remote: mod_php3-3.0.12-1cc.src.rpm 200 PORT command successful. 150 Opening BINARY mode data connection for mod_php3-3.0.12-1cc.src.rpm (396836. 226 Transfer complete. 3968362 bytes received in 0.327 secs (1.2e+04 Kbytes/sec) local: mod_php3-imap-3.0.12-1cc.i386.rpm remote: mod_php3-imap-3.0.12-1cc.i386.m 200 PORT command successful. 150 Opening BINARY mode data connection for mod_php3-imap-3.0.12-1cc.i386.rpm (. 226 Transfer complete. 312579 bytes received in 0.11 secs (2.8e+03 Kbytes/sec) local: mod_php3-manual-3.0.12-1cc.i386.rpm remote: mod_php3-manual-3.0.12-1cc.im 200 PORT command successful. 150 Opening BINARY mode data connection for mod_php3-manual-3.0.12-1cc.i386.rpm. 226 Transfer complete. 608685 bytes received in 0.165 secs (3.6e+03 Kbytes/sec) local: mod_php3-mysql-3.0.12-1cc.i386.rpm remote: mod_php3-mysql-3.0.12-1cc.i38m 200 PORT command successful. 150 Opening BINARY mode data connection for mod_php3-mysql-3.0.12-1cc.i386.rpm . 226 Transfer complete. 36161 bytes received in 0.0374 secs (9.4e+02 Kbytes/sec) local: mod_php3-pgsql-3.0.12-1cc.i386.rpm remote: mod_php3-pgsql-3.0.12-1cc.i38m 200 PORT command successful. 150 Opening BINARY mode data connection for mod_php3-pgsql-3.0.12-1cc.i386.rpm . 226 Transfer complete. 13270 bytes received in 0.00354 secs (3.7e+03 Kbytes/sec) ftp> exit 221-You have transferred 10976109 bytes in 9 files. 221-Total traffic for this session was 10980038 bytes in 12 transfers. 221-Thank you for using the FTP service on test. 221 Goodbye. |
| [root@test mysql_php]# pwd
/root/mysql_php [root@test mysql_php]# rpm -ivh MySQL-3.22.25-1c.i386.rpm [root@test mysql_php]# rpm -ivh MySQL-client-3.22.25-1c.i386.rpm [root@test mysql_php]# rpm -ivh MySQL-devel-3.22.25-1c.i386.rpm |
| [root@test mysql_php]# rpm
-ivh mod_php3-3.0.12-1cc.i386.rpm
[root@test mysql_php]# rpm -ivh mod_php3-mysql-3.0.12-1cc.i386.rpm [root@test mysql_php]# rpm -ivh mod_php3-imap-3.0.12-1cc.i386.rpm [root@test mysql_php]# rpm -ivh mod_php3-manual-3.0.12-1cc.i386.rpm |
| [root@test mysql_php]# cd
/etc/httpd/conf
[root@test conf]# |
| [root@test conf]# qe httpd.conf |
²Ä113¦æ-->#AddModule mod_php3.c
¡@§ï¦¨-->AddModule mod_php3.c
| [root@test conf]# qe srm.conf |
²Ä164¦æ-->#AddType application/x-httpd-php3 .php3
¡@§ï¦¨--->AddType application/x-httpd-php3 .php3
²Ä165¦æ-->#AddType application/x-httpd-php3-source .phps
¡@§ï¦¨--->AddType application/x-httpd-php3-source .phps
| [root@test conf]# /etc/rc.d/init.d/httpd
restart
Shutting down http: [ OK ] Starting httpd: [ OK ] |
| [root@test FocalMail]# tail
/var/log/httpd/error_log
[Wed Aug 18 22:52:47 1999] [notice] caught SIGTERM, shutting down [Wed Aug 18 22:52:49 1999] [notice] Apache/1.3.6 (Unix) (Red Hat/Linux) PHP/3.0 .12 configured -- resuming normal operations |
| focalmail-1.2.5.tar.gz -----> ¥Dµ{¦¡ì©l½X
theme-chinese.big5.tar.gz --> BIG5¤º½XÀô¹Ò®M¥ó |
| [root@test conf]# cd
/home
[root@test home]# tar zxvf focalmail-1.2.5.tar.gz [root@test home]# chown nobody.nobody focalmail -R |
| [root@test home]# cd
/home/focalmail
[root@test focalmail]# tar zxvf theme-chinese.big5.tar.gz [root@test focalmail]# chown nobody.nobody theme2 -R |
| [root@test home]# cd
/home/focalmail
[root@test focalmail]# |
¦bMySQL¸ê®Æ®w¨t²Î¤¤«Ø¥ß¤@Ó·sªº¸ê®Æ®wfocalmail
| [root@test focalmail]# mysqladmin
create focalmail
Database "focalmail" created. |
| [root@test focalmail]# mysql focalmail < focalmail.mysql |
| [root@test focalmail]# mysql
mysql
Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end
with ; or \g.
Type 'help' for help. mysql> UPDATE user
SET password=password('³o¸Ì¶ñ¤J±zrootªº±K½X')
where user='root';
mysql> DELETE FROM
user WHERE User = '';
|
| mysql> insert into
user values ('','fm',password('focaltek'),'y','y','y','y','y'
,'y','y','y','y','y','y','y','y','y'); Query OK, 1 row affected (0.00 sec) mysql> FLUSH PRIVILEGES;
mysql> exit
|
| [root@mail focalmail]#
mysql focalmail -ufm
-hhostname.domainname -pfocaltek
Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end
with ; or \g.
Type 'help' for help. mysql> exit
|
Y¸ê®Æ®w³sµ²¤£¦¨¥\¡A«h·|Åã¥Ü¡G
| ERROR 1045: Access denied for user: 'fm@mail.hmes.kh.edu.tw' (Using password: N) |
²Ä6¦æ-->$mailserver = "192.168.1.123";
¡@³]©w±zmail¥D¾÷¤§¦WºÙ©ÎIP¡A
¡@±NÂù¤Þ¸¹¤º¤§IP§ï¦¨±z¥D¾÷ªº§¹¾ã¦WºÙ(hostname.domainname)
[¨Ò]¡G$mailserver = "mail.hmes.kh.edu.tw";
²Ä7¦æ-->$database= "192.168.1.123";
¡@³]©w±z¸ê®Æ®w¥D¾÷¤§¦WºÙ©ÎIP¡A
¡@±NÂù¤Þ¸¹¤º¤§IP§ï¦¨±z¸ê®Æ®w¥D¾÷ªº§¹¾ã¦WºÙ(hostname.domainname)
[¨Ò]¡G$dataserver = "mysql.hmes.kh.edu.tw";
²Ä19¦æ-->$filepath="/home/eddy";
¡@³]©w±z¶l±H§¨ÀɹLµ{¤¤¼È¦sÀɥؿý¡A³Ì¦n¬Ohttpd©ÒµLªkŪ¨ú¨ìªº¥Ø¿ý¡I
¡@±NÂù¤Þ¸¹¤º¤§¸ô®|§ï¦¨±z·Qn¤§¥Ø¿ý¡A¦b¦¹«ØÄ³ /tmp ³Ì¦n¡I
¡@[¨Ò]¡G$filepath="/tmp";
¡@¨Ã¦b /tmp ¥Ø¿ý¤¤«Ø¥ß¤@¥Ø¿ý¬° tmp¡A¨Ã§ó§ïÅv¡G
| [root@test focalmail]# cd
/tmp
[root@test /tmp]# mkdir tmp [root@test /tmp]# chown nobody.nobody tmp -R [root@test /tmp]# chmod 777 tmp -R |
×§ï command.php3¡A¶·«ü©w imap2 port ªº•´z¡G
˼ƲÄ8¦æ-->$mailstream = imap_open("{$server}$mailbox", $login, $pass);
¡@§ï¦¨----->$mailstream = imap_open("{$server:143}$mailbox",
$login, $pass);
×§ï mailbox.php3¡A½Õ¾ã¦U¦æ±Æ¦C¶¶§Ç¡A¥HÁ×§Kheader¿ù»~¡G
¡@a.±N<title>FocalMail - Mail Box</title>³o¦æ²¾¦Ü<html>¤§¤W¤@¦æ¡C
¡@b.±N/*
¡@¡@¡@FocalMail 1.2
¡@¡@¡@Copywrite 1998 Focaltek Computer <iaser@focaltek.com>
¡@¡@¡@*/
¡@¡@¥|¦æµù¸Ñ²¾¦Üinclude ("language.php3");ªº¤U¤@¦æ
×§ï theme2/language/addaddressbook.lng
¡@±N--> $ln_nickname = §O¦W: ";
¡@¡@§ï¦¨--> $ln_nickname = "§O¦W: ";
¡@±N--> $ln_first = ¦W:";
¡@¡@§ï¦¨--> $ln_first = "¦W:";
×§ï /etc/httpd/conf/srm.conf
²Ä19¦æ--> DocumentRoot /home/httpd/html
¡@§ï¦¨--> DocumentRoot /home/focalmail
©Î¼W¥[¤@¦æ--> Alias /focalmail/ /home/focalmail/
«·s±Ò°Ê apache¡G
| [root@test conf]# /etc/rc.d/init.d/httpd
restart
Shutting down http: [ OK ] Starting httpd: [ OK ] |