	NT ¾(ޤʬǤʤä)ĤΤ

------------------------------------------------------------
1	NT fml (POP )ư
1.1	ntfml ϲ򤷤Ƥ뤫

2	᡼륵
2.1	Sendmail for NT
2.2	EMWAC

3	桼ƥƥ
3.1	diff Ȥ

4	Examples
4.1	̤᡼SJIS+CRLFѴΤ

5	󥹥ȡ (fml-help ML )
5.1	windows2000serverexchange2000server Ǥ fmlι 
------------------------------------------------------------


1	NT fml (POP )ư

1.1	ntfml ϲ򤷤Ƥ뤫

    	one loop
    	|<-------- ------------>|
    	 ml1 ml2 ml3 ..  <=====>|
    			   wait
    
    ĤΥ롼פ
    
    	ml1 ˤ뤳ȤʤĴ٤ơ⤷ä 	
    		õ٤
    	ml2 ˤ뤳ȤʤĴ٤ơ⤷ä 	
    		õ٤
    		....
    	ml200
    		õ٤
    
    	180 ( -u ץѹǤ) ᤮Ƥʤä餷Ф٤
    	Τ٤ߤ <=====> ʬǤ
    
    -u 򾮤Ƥ⡢ǸΤ٤ߤûʤǡõ٤Ǥߤ
    äƤȤʤʤޤ

2	᡼륵

2.1	Sendmail for NT

S96  name server ؤȤ碌뤮礦򥳥ȥ

2.2	EMWAC

% unzip 
% mv ims.dll \winnt\system32
% smtprs -install
% smtpds -install
% pop3s  -install

[control panel] - [EMWAC IMS]

3	桼ƥƥ

3.1	diff Ȥ

cygnus

ƥ ե뤪ӥץȴ֤ɽǽ

	http://www.asia.microsoft.com/japan/developer/library/technical/ssafe/J/ProdInfo/ssdiff.htm

	http://www.vector.co.jp/vpack/browse/software/win95/util/sn072811.html

4	Examples

4.1	̤᡼SJIS+CRLFѴΤ

fml-support: 08941

mailbox ǤǤ͡ʤǤǤޤ͡
 UNIX ǤʤȤ⤫M$ ĶǤ򤷤顩

    $DISTRIBUTE_CLOSE_HOOK = q#
        my ($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0..6];
        my $dir = "$DIR/mailbox";
        my $mailbox = 
           $dir .'/'.sprintf("%04d%02d%02d", 1900 + $year, $mon + 1, $mday);
    
        &Mkdir($dir);
    
        if ( open($mailbox, ">> $mailbox") ) {
            my $body = "\n". $Envelope{'Body'};
            $body =~ s/\nFrom /\n>From /g;
            $body = &JSTR($body, 'sjis');
    
            print $mailbox "From $From_address \n";
            print $mailbox $Envelope{'Hdr'};
            print $mailbox $body ;
            print $mailbox "\n";
            close($mailbox);
        }
        else {
            &Log("ERROR: cannot open $mailbox");
        }
    #;

5	󥹥ȡ (fml-help ML )

5.1	windows2000serverexchange2000server Ǥ fmlι 

    ̵ʲδĶǹۤޤ
    
    ڴĶ
    Windows2000ServerSP2
    Exchange2000Server
    fml-4.0.1POP)
    ActivePerl-5.6.1.628
    exsvc04
    
    ĴҤ˾äưʲδĶǤưǧޤ
    
    ڴĶ
    Windows2000Professional
    fml-4.0.1POP)
    ActivePerl-5.6.1.628
    exsvc04
    ᡼륵СfmlĶΥޥ
    
    ɤؤƱΤǥ󥹥ȡޤ
    դ󤲤СĶλ˥᡼󥰥ꥹȥ桼ɲä
    ϡ
    ĶǤϤʤĶǤȸȤǤ
    λǤäƤ˲ʬʤʤޤ
    
    ȡäѤޤпͤ᡼ͤˤʤäƤΤǤ
    ᡼󥰥ꥹȤΥ̾ѹϲǽǤ礦
    ޤ̾˼ư֤ղä褦ʻϽΤǤ礦
    ¸Τ
    
    Windows2000ܣιۤ򣱤ޤȤޤΤǡ
    줫ƱĶfml򥤥󥹥ȡ뤵ϻͤˤƤߤƲ
    
    fml󥹥ȡ
    
     fml桼κ
     fml򥤥󥹥ȡ뤹ޥˡfml󥹥ȡѤΥ桼ޤ
     fml
    
     ˥᡼󥰥ꥹȥ桼κ
     ޤSMTPPOPСưƤ륵СʴĶΥޥˤˡ
     ᡼󥰥ꥹȤΥ桼ޤ
     λ桼ʤȡntfmlư˥顼ɽ³
     ǡ
     桼Ƥޤ礦᡼ܥåƲ
     elena
     elena-ctl
     elena-admin
    
     ܹԥƥΰ١Administratorfmlelena桼Ȥʬ
     ǡ
     ֱ¦Administratorfmlelena򻲹ͤˤƲ
     ʤߤAdministratorǼ»ܤƤ⡢᡼󥰥ꥹȤϺޤ
    
     ActivePerl-5.6.1.628-MSWin32-x86-multi-thread򥤥󥹥ȡ
     Administrator
     http://aspn.activestate.com/ASPN/Downloads/ActivePerl/ 顢
     ActivePerl 5.6.1.628פΡWindowsAS Package 9MBפɡ
     ֥륯å̤˥󥹥ȡ뤷ޤ
     ExamplesDocumentationϥ󥹥ȡ뤷ʤƤOK)
    
     Windows2000б̡ॽեȤ򥤥󥹥ȡAdministrator
     http://www.forest.impress.co.jp/library/lhaz.html 顢lhaz099.exeפ
     ɡ
     ʲexeեʤΤǡ֥륯åƥ󥹥ȡ뤷ޤ
     θहziplzhDLLפбƤΤɤȻפޤ
    
     fml-4.0.1Ÿfml
     ftp://ftp.fml.org/pub/fml/release/ 顢fml-4.0.1.zipפɡ
     C:\fml-4.0.1Ÿޤ(Ǥ⹽ʤǤC:\fmlϻߤ᤿ɤ
     
    
     fml-4.0.1򥤥󥹥ȡfml
     cmd.exe(DOSץץȡˤưŸ줿c:\fml-4.0.1ץե˰ư
     ʲΥޥɤ¹Ԥޤ
     C:\fml-4.0.1>ntinstall
     󥹥ȡC:\fmlɤǤʥǥեȤc:\fmlǤ
    
     ʲϥ󥹥ȡƤǤ
     C:\fml\fml-4.0.1>perl sys\WINDOWS_NT4\bootstrap.pl
    
     0       end
     1       Prog Mailer e.g. MetaInfo Sendmail (2.0 after)
     2       POP Version
    
     Which one your environment fit? (0-2) [0] 2POPСʤΤǣϡ
    
     Starting the installer "sbin\makefml"
     unshift(@INC, /src)
     ---NOT USING configuration file (for the first time)
     ---Please Define Your Fml System Configurations
    
     Personal Use or ML-Admin-Group-Shared or fmlserv you use?
     Personal, Group, Fmlserv (personal/group/fmlserv) [personal]
    
     DOMAIN NAME               [ɥᥤ̾.co.jp]
     FQDN                      [ޥ̾.ɥᥤ̾.co.jp]
     EXEC FILES DIRECTORY      [C:\fml]
     TOP LEVEL ML DIRECTORY    [C:\fml\ml]
    
     Language (Japanese or English) [Japanese]
    
     TimeZone (TZ: e.g. +0900, -0300) [+0900]
    
       --- summary ---
           DOMAIN: ɥᥤ̾.co.jp
             FQDN: ޥ̾.ɥᥤ̾.co.jp
         EXEC_DIR: C:\fml
           ML_DIR: C:\fml\ml
         Language: Japanese
         TimeZone: +0900
    
     The current configuration is saved in C:\fml/_fml/system
        mkdir C:\fml\ml
    
     ---Install the Fml system to C:\fml. (y/n) [n] y
    
     Installing fml system to C:\fml
     Fixing Path: src
     ...............................................................
     ............. libexec ..... sbin . cf . bin .................... www/cgi-bin
     ...
     ...... www/lib ... sys ......... module ..
             Done.
    
     Generate nroff manuals:
    
     perl sys/WINDOWS_NT4/ntinstall.pl C:\fml
     Installing bin .
     Installing sbin .
     Installing libexec .
     Installing cf .
     Installing etc ..
     Installing databases .......
     Installing messages ..
     Installing drafts ..
     Installing module .......
     Installing doc
     .................................................................
     ............................................................................
     ....
     ....
     Installing var\html
    
     Installing perl scripts (*.pl) files ...
     .
             Generating C:\fml\ntfml.cmd
     Good. Installation is done.
    
     --- Please ignore after this (EVEN IF THIS INSTALLER FAILED).
     --- New version (test phase)
             Generating C:\fml\sys\WINDOWS_NT4\NEW\ntfml.cmd
             Generating C:\fml\sys\WINDOWS_NT4\NEW\ntfmlrm.cmd
             Generating C:\fml\sys\WINDOWS_NT4\NEW\autoexnt.bat
     Done.
    
     ##### POP and SMTP Server Configuration ####
    
        directory C:\fml\ml/popfml is created as USER=fml
     POP SERVER [ޥ̾.ɥᥤ̾.co.jp]:
    
     POP SERVER is [ޥ̾.ɥᥤ̾.co.jp] O.K.?  (y/n) [n] y
    
     SMTP SERVER [ޥ̾.ɥᥤ̾.co.jp]:
    
     SMTP SERVER is [ޥ̾.ɥᥤ̾.co.jp] O.K.?  (y/n) [n] y
    
     Warning:(called from main sbin\makefml 2311)
     cannot find template C:\fml/www/etc/dot_htaccess.admin
     Warning:(called from main sbin\makefml 2311)
     cannot find template C:\fml/www/etc/dot_htaccess.admin
    
     Setup CGI examples Warning:(called from main sbin\makefml 2311)
     cannot find template C:\fml/www/etc/dot_htaccess.admin
     ..Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/apache/httpd.conf.patch from main
     sbin\makefml 7
     064
     .Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/mini_httpd/README from main sbin\makefml
     7064
     .Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/postfix/main.cf from main sbin\makefml 7064
     .Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/qmail/README from main sbin\makefml 7064
     .Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/sendmail/README from main sbin\makefml 7064
     .Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/sendmail/senmail.cf from main sbin\makefml
     7064
     .Warning:(called from main sbin\makefml 2315)
     cannot open C:\fml/www/examples/thttpd/README from main sbin\makefml 7064
    
     ʪWarningɬФޤ
     פʤΤǤ礦
     褢̵뤷˿ʤǲ
     ᡼󥰥ꥹȤ̵ưޤ
    
           CGI configuration is saved in C:\fml/_fml/cgi.conf
    
      -- Enjoy Internetworking!
    
     ˥᡼󥰥ꥹȤκelena)
     cmd.exeưc:\fmlץե˰ưʲΥޥɼ¹Ԥޤ
     C:\fml>makefml newml elena
    
     󥹥ȡelenaȡelena-ctlPOP3ѥɤ׵ᤵΤǡ
     ˥äƤޤ礦
    
     ʲϥ󥹥ȡƤǤ
     C:\fml>C:\Perl\bin\Perl.exe C:\fml\makefml -w newml elena
     DO "newml" for elena mailing list.
     ---Creating elena mailing list
        directory C:\fml\ml/elena is created as USER=elena
        directory C:\fml\ml/elena/spool is created as USER=elena
     ---Generting configuration examples.
    
        Generate template files in C:\fml\ml/elena/
              include include-ctl include-mead aliases Makefile crontab
              fmlwrapper.c fmlwrapper.h
    
        Generate qmail template files in C:\fml\ml/etc/qmail/alias/
              .qmail-elena .qmail-elena-ctl .qmail-elena-default
              .qmail-elena-admin .qmail-elena-request .qmail-owner-elena
              .qmail-owner-elena-ctl
     On NT4, we do not gerenate qmail/users/assign.
    
        Update C:\fml\ml/etc/crontab/elena
    
        Create config.ph(C:\fml\ml/elena/config.ph):
             C:\fml\ml/elena/cf  ->  config.ph ... Done.
    
        Create template files for commands (help, guide ...)
              help help-admin deny guide welcome confirm objective
     ---Setting POP3 Passwd of the user elena (elena mailing list)
    
     [elena's POP password setting]
    
        Mailing List Name: elena
            POP3 Password: elena
    
        Passwd Changed (C:\fml\ml/etc/pop_passwd).
    
     [elena-ctl's POP password setting]
    
        Mailing List Name: elena-ctl
            POP3 Password: elena
    
        Passwd Changed (C:\fml\ml/etc/pop_passwd).
    
        Update C:\fml\ml/etc/aliases
    
        The next step: update your MTA configuration. For example
             % su root
             # cat C:\fml\ml/elena/aliases >> /etc/aliases
             # newaliases
    
        FYI: See templates in 'C:\fml\ml/elena/'
     done.
    
     ˥᡼󥰥ꥹȤΥ桼ɲáelena)
     cmd.exeưc:\fmlץե˰ưʲΥޥɤ¹Ԥޤ
     C:\fml>makefml add elena ɲä᡼륢ɥ쥹
    
     ˥᡼󥰥ꥹȥץεưAdministrator)
     cmd.exeưc:\fmlץե˰ưʲΥޥɤ¹Ԥޤ
     ƥȤΰٷ֤֤10äˤƤޤ
    
     C:\fml>ntfml.pl -u 10(á
    
     ʾǥ᡼󥰥ꥹȤϽλޤ
     elena@ɥᥤ󰸤Ƥ˥ƥȥ᡼ꤲƸƲ
    
     ntfmlΥӥ
     ᡼󥰥ꥹȤ˲ưޤ顢ntfml򥵡ӥ
     ưư褦ˤޤ礦
    
     exsvc04ŸAdministrator)
     http://www6.plala.or.jp/k-ssk/download.html 顢
     ֥ӥưޥ V 0.4(exsvc04.lzh)(71,302Х) ǿǡפ
     ɡ
     C:\exsvc04Ÿޤ
    
     ˥ӥϿAdministrator)
     cmd.exeưŸC:\exsvc04ץե˰ưʲΥޥɤ
     ¹Ԥޤ
     C:\exsvc04>instsvc -n ntfml c:\exsvc04\execsvc.exe
    
     ˥󥹥ȡ뤵СʲΥåϤޤ
     ӥϿޤ
     ӥ̾ExecuteServiceɽ̾ntfmlǤ
    
     ˽եAdministrator)
     C:\exsvc04ץեExecSvc.iniե򳫤ntfmlη֤֤
     
     ʲϤޤǻʤΤǡɬ碌ɬפϤޤ
     fmlΥ󥹥ȡ褬C:\fmlפǤСǥեȤʤưޤ
    
     ARG = c:\fml\ntfml.pl -u 300
     300äĹΤ20ä˽ޤ
     ARG = c:\fml\ntfml.pl -u 20
    
     ˽եιʸåAdministrator)
     cmd.exeưŸC:\exsvc04ץե˰ưʲΥޥɤ
     ¹Ԥޤ
     execsvc.iniեƤʤƤǰΰ٤˼¹Ԥޤ礦
     C:\exsvc04>chkconf.exe -d execsvc.ini
    
     ʲ
     2001/07/18 10:05:05.875 INFO: Parse configuration file
     2001/07/18 10:05:05.875 DEBUG: found key (LOG) (line=12)
     2001/07/18 10:05:05.885 DEBUG: get value (ON) (line=12)
     2001/07/18 10:05:05.885 DEBUG: found key (LVL) (line=13)
     2001/07/18 10:05:05.885 DEBUG: get value (1) (line=13)
     2001/07/18 10:05:05.885 DEBUG: section line [ntfml]] found
     2001/07/18 10:05:05.895 INFO: Check multibyte character in section [ntfml]
     (line
     =18)
     2001/07/18 10:05:05.895 DEBUG: found section [ntfml] (line=18)
     2001/07/18 10:05:05.905 DEBUG: found key (EXE) (line=19)
     2001/07/18 10:05:05.905 DEBUG: get value (c:\perl\bin\perl.exe) (line=19)
     2001/07/18 10:05:05.905 DEBUG: found key (ARG) (line=21)
     2001/07/18 10:05:05.915 DEBUG: get value (c:\fml\ntfml.pl -u 20) (line=21)
     2001/07/18 10:05:05.915 DEBUG: found key (DIR) (line=22)
     2001/07/18 10:05:05.915 DEBUG: get value (c:\fml) (line=22)
     2001/07/18 10:05:05.925 INFO: argv[0]=chkconf.exe
     2001/07/18 10:05:05.925 INFO: MyPath=.
     2001/07/18 10:05:05.925 INFO: ConfPath=.\ExecSvc.ini
     2001/07/18 10:05:05.935 INFO: LogPath=.\ExecSvc.log
     2001/07/18 10:05:05.935 DEBUG: argc=3, argv[0]=chkconf.exe
     2001/07/18 10:05:05.935 DEBUG: MyPath=.
     2001/07/18 10:05:05.945 INFO: section [] check command file
     2001/07/18 10:05:05.945 INFO: section [ntfml] check command file
     No fatal errors.
    
     ˥ӥưAdministrator)
     ġΥӥưӥɽ̾ntfmlפ֥륯å
     ȥåפμּưפˡӥξ֤ˤֳϡץܥ򲡲
     롣
    
     ʾ塢Windows2000+fmlιۤƽλǤ


		INDEX

