こんなに変わるメール生活

以下のテキストは、執筆時当時の情報を元に書いたものであり、 現在の情勢にそぐわないことを含む場合があるので注意されたい。 また、テキストは最終提出原稿で校正を経る前のものなので、実際にUNIXUSER 本誌に記載されたものとは異なる。誤字脱字等そのままである。

致命的な誤り以外は加筆修正等は行なわないので情報の鮮度に気をつけつつ 利用して欲しい。

目次


Part V 

qmailPostfix




MTA





sendmailUNIX




 qmail, Postfix 



MTA

UNIX 
MUA
qmail(~/.qmail-*) 
Postfix ~/.forward+* 





qmail




 gombei@foo.ymzk.org 

  

  
  

	* 
	* 
	* cronroot
	* 1
	* 2
	   :
	* 1
	* 2
	   :

  
   procmail 
  
   procmail 
  
  procmail
  
  
  
  

  
  
  
  2

	1	
	2	()

  
  [1]

--[1]----------------------------------------------------------------------

    +--------- 1 --------------+  +---------- 2 --------+
    |                              |  |                         |
  +( To: gombei) --------++-\ +---  --+ |
  +(ML1 To: gombei-job1)---++-+ gombei ()   | |
  +(ML2 To: gombei-job2)---++-//+-------------------+ |
  +(ML1 To: gombei-joy1)---++-/ +-- --+ |
  +( To: gombei-notice)++-+ gombei-office   | |
  +(root To: gombei-admin)---++-/ +-------------------+ |
    |                              |  |   +-- --+ |
  +(ML2 To: gombei-joy2)---++-+gombei-| |
    |                              |  |   +-------------------+ |
    +------------------------------+  +-------------------------+

    [gombei]  {POPMaildir (~/popdir/)}
        
      {Maildir (~/Maildir/)}
        
    [gombei-office]

    [gombei-]  
-----------------------------------------------------------------------------

  2
  

	A ()
	B 
	C ML
	  

  
  
  
  DailyML
  A, B, C 
  

	A gombei@foo.ymzk.org
	B gombei-office@foo.ymzk.org
	C gombei-<>@foo.ymzk.org

  1
  [1]

	[1]
	/		
	---------------------+------------------------+----------------
				gombei ()	A
	root		gombei-admin		B
			gombei-renraku		B
	ML	gombei-job1		A
	ML	gombei-	C

  
  2 
  dot-qmail [1]
  

				
	------------------------+---------------------------
	~/.qmail		| ./popdir/
				| ./maildir/
	------------------------+---------------------------
	~/.qmail-office		| ./maildir/
	------------------------+---------------------------
	~/.qmail-admin		| &gombei-office
	------------------------+---------------------------
	~/.qmail-renraku	| &gombei-office
	------------------------+---------------------------
	~/.qmail-job1		| &gombei
	------------------------+---------------------------
	~/.qmail-		| | /usr/local/bin/imstore -d +ml/$EXT
	------------------------+---------------------------
	~/.qmail-pop		| ./popdir/
	------------------------+---------------------------

  ~/.qmail- imstore IM[] 
  
  $EXT
  gombei-  $EXT   
  
  ~/Mail/ml/ []

--[]----------------------------------------------------------------------
ftp://ftp.mew.org/pub/Mew/im-140.tar.gz
CD-ROM
------------------------------------------------------------------------------

--[]----------------------------------------------------------------------
Postfix EXTENSION 

qmail qmail-command(8)Postfix local(8) 

------------------------------------------------------------------------------

   ~/.qmail-pop POP 
  MUAPOP
   gombei-pop  ~/popdir/ 
  []
   ~/popdir/ 
  
  Mewi(imget) ~/popdir/ 
  hook

--[]----------------------------------------------------------------------
 Part4WU-IMAPD
------------------------------------------------------------------------------

  

  
  
  
  
   Subject 
  Subject
  

  MTA
   virtual domain 
   class.ymzk.org 

	report-XX@class.ymzk.org 
		
	~/Mail/class/report-XX 

  XX
  virtual domain 

	[qmail]
	/var/qmail/control/virtualdomains 
	class.ymzk.org:gombei-class
	 qmail-send HUP

  DNSMX
  ~/.qmail-class-report-XX 
   "class-report-XX" 
  qmail
   EXT2 []

	| /usr/local/bin/imstore -d +class/$EXT2

  3
	~/.qmail-class-report-1
	~/.qmail-class-report-2
	~/.qmail-class-report-3
  
  
	~/.qmail-class-report-default
                              ~~~~~~~
  XX
  [] *-default 
	
	

--[]----------------------------------------------------------------------
Postfix
EXTENSION class+report+XX 
------------------------------------------------------------------------------
--[]----------------------------------------------------------------------
Postfix
 dot-forward 
------------------------------------------------------------------------------

  

ML (ML)

(ML)


MTAaliasFML
MLsendmail
alias


ML
/


MTAaliasML


MLMLML
ML


aliasML
ML

  ML virtual domain 

  ML /etc/aliases 
  
  nomikaimeeting
  
   /etc/aliases ()

  
   gombei 
  MLgombei
  gombei
  vdom.ymzk.org DNS 
  vdom.ymzk.org MXMTA(
  qmail) virtual domain 

	[qmail/var/qmail/control/virtualdomains]
	vdom.ymzk.org:gombei-vdom

  XXX@vdom.ymzk.org  ~gombei/.qmail-vdom-XXX 
  

  FMLML
  vdom.ymzk.org 
  virtual domain

	[qmail/var/qmail/control/virtualdomains]
	vdom.ymzk.org:vdomymzk

   "vdomymzk" 
   gombei 
  ~vdomymzk/.qmail-*  gombei 
   vdomymzk  gombei
  UID
   * []

	# vipw
	(gombei)
	gombei:8jkdsFP23a:774:10::0:0:Gombeisan:/home/gombei:/bin/zsh
	vdomymzk:*:774:10::0:0:vdom.ymzk.org:/home/gombei/vdom:/bin/zsh

--[]----------------------------------------------------------------------
UIDcron
OS

*BSD, RedHatLinuxSolaris 2.x 

------------------------------------------------------------------------------

  gombei ~/vdom/ 
  dot-qmail
  
  

	gombei% cd ~/vdom
	gombei% echo '&gombei' > .qmail-postmaster
	gombei% ln -s .qmail-postmaster .qmail-mailer-daemon
	gombei% ln -s .qmail-postmaster .qmail-abuse
	gombei% ln -s .qmail-postmaster .qmail-admin

  
  

  gombei@vdom.ymzk.org 
   ~vdomymzk/.qmail-gombei 
  

	gombei% echo test for error | Mail -s test gombei@vdom.ymzk.org

  
  
  virtual domain (foo.ymzk.org)
  

  
  gombei@vdom.ymzk.org 

	gombei% echo ./Maildir/ > ~/vdom/.qmail-gombei
	gombei% /var/qmail/bin/maildirmake ~/vdom/Maildir
	gombei% echo test for success | Mail -s test gombei@vdom.ymzk.org

  ~/vdom/Maildir/new 
  @vdom.ymzk.org  ~/vdom/.qmail-* 
  

  gombei
  
  
  
  
  
  

  virtual domain  FML

  ML
  
  FML[]
   vdom.ymzk.org FML
  

	1. FML
	2. virtual domain 
	3. ML
--[]----------------------------------------------------------------------
http://www.fml.org/
------------------------------------------------------------------------------

  (1)FML

   fml-4.0.tar.gz CD-ROM
  FMLPerl
  
  
  

	gombei% tar vxpf fml-4.0.tar.gz
	gombei% cd fml-4.0
	gombei% make install
perl ./makefml install
---NOT USING configuration file (for the first time)

   THIS HOST (newmta.foo.ymzk.org) IS [i386-unknown-freebsd4.2]

---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               [foo.ymzk.org] vdom.ymzk.org
                                         ~~~~~~~~~~~~~
FQDN                      [newmta.foo.ymzk.org] ()
EXEC FILES DIRECTORY      [/usr/local/fml] /home/gombei/fml
                                           ~~~~~~~~~~~~~~~~
TOP LEVEL ML DIRECTORY    [/var/spool/ml] /home/gombei/vdom
                                          ~~~~~~~~~~~~~~~~~
Language (Japanese or English) [English] Japanese
                                         ~~~~~~~~
TimeZone (TZ: e.g. +0900, -0300) [+0900] ()
  --- summary ---
      DOMAIN: vdom.ymzk.org
        FQDN: newmta.foo.ymzk.org
    EXEC_DIR: /home/gombei/fml
      ML_DIR: /home/gombei/vdom
    Language: Japanese
    TimeZone: +0900


The current configuration is saved in /home/gombei/fml/.fml/system

---Install the Fml system to /home/gombei/fml. (y/n) [n] y
                                                         ~
Installing fml system to /home/yuuji/fml
Fixing Path: src............................................................................libexec..... sbin . cf. bin....................www/cgi-bin.........www/lib ... sys.........module ..Done.

Generate nroff manuals:

Installing bin ...
Installing sbin .
Installing libexec .
Installing cf .
Installing etc ....
Installing sys ..
Installing src .......
Installing drafts ..
Installing messages .....
Installing www ......
Installing module ...
Installing databases ...
Installing doc
..................................................................................
Done.

Setup CGI examples ........
      CGI configuration is saved in /home/gombei/fml/.fml/cgi.conf

 -- Enjoy Internetworking!
------------------------------------------------------------------------------

  FML[2]

  [2] 
  FML			~gombei/fml/
  ML		~gombei/vdom/

  FML $EXEC_DIRML 
  $ML_DIR $ML_DIR  ~vdomymzk 
  

  (2)virtual domain 

  FMLML(newml)dot-qmail
  $ML_DIR/etc/qmail/alias/ virtual
  domain 
  $ML_DIR/etc/qmail/users/assign 
  /var/qmail/users/assign 
  sendmail
  

  virtual domain makefml
  dot-qmail 
   dot-qmail  ~gombei/vdom/ 
   makefml  ~gombei/vdom/ 
   dot-qmail 
  makefml 

    $qmail_alias_dir = "$ML_ETC_DIR/qmail/alias";
                        ~~~~~~~~~~~~~~~~~~~~~~~
   ~gombei/vdom/ 

    $qmail_alias_dir = "/home/gombei/vdom";
                        ~~~~~~~~~~~~~~~~~
  

  ML

	gombei% ~/fml/makefml newml testml
--------------------  -----------------------------------
DO "newml" for testml mailing list.
---Creating testml mailing list
   directory /home/gombei/vdom/testml is created as UID=774
   directory /home/gombei/vdom/testml/spool is created as UID=774
---Generting configuration examples.

   Generate template files in /home/gombei/vdom/testml/
         include include-ctl include-mead aliases Makefile crontab
         fmlwrapper.c fmlwrapper.h

   Generate qmail template files in /home/gombei/vdom/etc/qmail/alias/
         .qmail-testml .qmail-testml-ctl .qmail-testml-default
         .qmail-testml-admin .qmail-testml-request .qmail-owner-testml
         .qmail-owner-testml-ctl

   Update /home/gombei/vdom/etc/qmail/users/assign

   Update /home/gombei/vdom/etc/crontab/yuuji

   Create config.ph(/home/gombei/vdom/testml/config.ph):
        /home/gombei/vdom/testml/cf  ->  config.ph ... Done.

   Create template files for commands (help, guide ...)
         help help-admin deny guide welcome confirm objective

   Update /home/gombei/vdom/etc/aliases

   The next step: update your MTA configuration. For example
        % su root
        # cat /home/gombei/vdom/testml/aliases >> /etc/aliases
        # newaliases

   FYI: See templates in '/home/gombei/vdom/testml/'
--------------------  -----------------------------------
	gombei% ls -aF ~/vdom
	        ~~~~~~~~~~~~~
./                              .qmail-testml-ctl
../                             .qmail-testml-default
.qmail-owner-testml             .qmail-testml-request
.qmail-owner-testml-ctl         etc/
.qmail-testml                   testml/
.qmail-testml-admin

	gombei% ls -aF ~/vdom/testml
	        ~~~~~~~~~~~~~~~~~~~~
./              cf              fmlwrapper.c    include         welcome
../             config.ph       fmlwrapper.h    include-ctl
.crc            confirm         guide           include-mead
Makefile        crontab         help            objective
aliases         deny            help-admin      spool/


  makefmlmakefml newml 
  testml@vdom.ymzk.org ML
  testml-ML 
  FML
  
  FML
  FML

--[]------------------------------------------------------------------
FML virtual domain 

10100GBHDD
virtual domain FML
HDD
 virtual domain 
FMLFML


FMLFML virtual domain 
FMLFMLmakefmlML 

 $EXEC_DIR/.fml/system  virtual domain  
makefml ML
FML /usr/local/fml/ 
makefml

 ggombei% cp /usr/local/fml/makefml ~/vdom/
 gombei% mkdir ~/vdom/.fml
 gombei% cp /usr/local/fml/.fml/system ~/vdom/.fml
 gombei% vi ~/vdom/makefml
 ()
  $CONFIG_DIR = '/usr/local/mail/fml/.fml'; #  __MAKEFML_AUTO_REPLACED_HERE__
                ~~~~~~~~~~~~~~~~~~~~~~~~
   
  $CONFIG_DIR = '/home/gombei/vdom/.fml'; #  __MAKEFML_AUTO_REPLACED_HERE__
                ~~~~~~~~~~~~~~~~~~~~~~
  ( $qmail_alias_dir )

 gombei% vi ~/vdom/.fml/system
  ($ML_DIR, $DOMAIN )
  $ML_DIR = '/home/gombei/vdom';
  $DOMAIN = 'vdom.ymzk.org';

 virtual domain ML 
~/vdom/makefml 
----------------------------------------------------------------------------

  (3)ML

  
  ML

	gombei% ~/fml/makefml newml 

   @vdom.ymzk.org ML
  

	gombei% ~/fml/makefml config 

  FML
  ML
  

	gombei% rm -rf ~/vdom/
	gombei% rm ~/vdom/.qmail-*

  ailases
  ML
  ML

  ML
  ML
  ML
  ML
  
  









WWWApache  virtual domain 
virtual
domainsendmail


~/.forward 
  

 ~/.forward 
myname, myname@otherdomain









sendmail

 qmail Postfix




MTA




sendmail




WU-IMAPD
Postfix


yuuji@gentei.org
Fingerprint16 = FF F9 FF CC E0 FE 5C F7 19 97 28 24 EC 5D 39 BA
HIROSE Yuuji - ASTROLOGY / BIKE / EPO / GUEST BOOK / YaTeX [Tweet]