#author("2023-04-05T10:03:29+09:00","default:okada","okada")
#author("2023-04-05T10:03:46+09:00","default:okada","okada")
*Postfix¤ÎÀßÄêÊýË¡ [#f78017d9]

RIGHT:¹¹¿·Æü&lastmod();

**mail¤ÎÃæ·Ñ¤Ë¤Ä¤¤¤Æ¡Ê¥á¡¼¥ë¤Î¥µ¡¼¥Ð¤Î­¼è¤ê¡Ë [#q8d4a3de]

***mail¥Ø¥Ã¥À¡¼Éô [#q00afa0a]

 Received: from ­¢
 ¡¡¡¡¡¡¡¡by ­£; Wed, 9 Mar 2005 16:29:14 +0900
 Received: from ­¡
 ¡¡¡¡¡¡¡¡by ­¢; Wed, 9 Mar 2005 16:29:14 +0900
 Received: from (0)
 ¡¡¡¡¡¡¡¡by ­¡; Wed, 9 Mar 2005 16:29:02 +0900
 
''¥á¡¼¥ë¥µ¡¼¥Ð¤Î­¼è¤ê
''¥á¡¼¥ë¥µ¡¼¥Ð¤Î­¼è¤ê''

 ¡¡(0) ¢ª¡¡­¡¡¡¢ª¡¡­¢¡¡¢ª­£

***Îã [#s7496d22]

 Received: from cat-white-a99c5b89fafdbe6c.znlc.jp (cat-white-a99c5b89fafdbe6c.znlc.jp [164.46.67.192])
 	by atom-2.ism21.net (Postfix) with ESMTP id CA9D1207D9A
 	for <okada@ism21.net>; Tue,  4 Apr 2023 11:31:04 +0900 (JST)
 Received: from WIN-C73LB63JO80 (ec2-18-179-196-59.ap-northeast-1.compute.amazonaws.com [18.179.196.59])
 	by cat-white-a99c5b89fafdbe6c.znlc.jp (Postfix) with ESMTPA id 24A9D87525
 	for <okada@ism21.net>; Tue,  4 Apr 2023 11:19:03 +0900 (JST)

''­¼è¤ê''

 WIN-C73LB63JO80 ¢ª¡¡cat-white-a99c5b89fafdbe6c.znlc.jp ¢ª¡¡atom-2.ism21.net



**postfix-pcre¤Ç¤¤¤¿¤º¤é [#k70a1110]

 # apt-get install postfix-pcre

postfix-pcre¤òÆþ¤ì¤ë¤Èperl¤ÎÀµµ¬É½¸½¤¬²Äǽ¤Ë¤Ê¤ë

/etc/postfix/main.cf¤Ë

 alias_maps = hash:/etc/aliases, pcre:/etc/postfix/aliases.regexp
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ÄɲÃ
/etc/postfix/aliases.regexp¤Ë

 /^dummy[0-9]*(@.*)?$/   dummy

¤È¤¹¤ë¤Èdummy00 dummy9¡¡¤Ê¤É¤Î¥á¡¼¥ë¤¬dummy £±¥¢¥«¥¦¥ó¥È¤Ç¼õ¿®¤Ç¤­¤ë

¤³¤Î¤È¤­/etc/postfix/aliases.regexp¤Ï¶õ¥Õ¥¡¥¤¥ë¤Ç¤â¤¤¤¤¤«¤éºîÀ®¤·¤Æ¤ª¤¯É¬Íפ¢¤ê

 # touch aliases.regexp

[[perlÀµµ¬É½¸½ »²¹Í:http://www.site-cooler.com/kwl/perl/8.htm]]

**¥Ñ¥é¥á¡¼¥¿ [#a534364f]

aliases¤Ç¼õ¤±¤¿¥á¡¼¥ë¤òshell¤Ê¤É¼Â¹Ô·Á¼°¤ËÅϤ·¤Æ¼Â¹Ô¤¹¤ë¤È¤­¤³¤Î¥æ¡¼¥¶¤Î¸¢¸Â¤ÇÇÛÁ÷¤¬¤Ê¤µ¤ì¤ë¡£~
¤¿¤À¤·¥æ¡¼¥¶ºîÀ®¤ÎɬÍפ¢¤ê

¼õ¿®¥á¡¼¥ë¤Î£±¹ÔÌܤÎ

Return-Path: <aaa@xxx.ac.jp>
 
¤Î¥æ¡¼¥¶Ì¾¤Ë¤âÆþ¤ë?

 default_privs = nobody


**¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È [#i886d17a]

pop-before-smtp¤ÈÊ»ÍѤ¹¤ë¤Ë¤Ï°Ê²¼¤Î1¹Ô¤Î¥³¥á¥ó¥È¤ò³°¤·postfix¤ò¥ê¥¹¥¿¡¼¥È
¤¹¤ì¤Ð¤è¤¤¡£~
²¼¤Î2¹Ô¤Ï
 ### SMTPǧ¾Ú¤ò¹Ô¤ï¤Ê¤¤¸Â¤ê¡¢°ìÀڤΥ᡼¥ëÁ÷¿®¤òµñÈݤ¹¤ë
   -o smtpd_etrn_restrictions=reject
  
 ### 587È֥ݡ¼¥È¤Ø¤Î¡¢¥¹¥Ñ¥à¥á¡¼¥ë¤ò»ÈÍÑÉÔǽ¤Ë¤·¤Æ¤ª¤¯
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject


¥¯¥é¥¤¥¢¥ó¥È¤Î¥Ý¡¼¥È¤ò587¤Ë¤¹¤ë

''master.cf''

 submission inet n      -       n       -       -       smtpd <=¥³¥á¥ó¥È¤ò¼è¤ë
 #submission inet n      -       n       -       -       smtpd
 #       -o smtpd_etrn_restrictions=reject
 #       -o smtpd_client_restrictions=permit_sasl_authenticated,reject

/etc/services¤ò°ì±þ³Îǧ¤¹¤ë
 submission      587/tcp         msa             # mail message submission
 submission      587/udp         msa             # mail message submission

smtp-auth¤äSTL¤ÏÊÌÅÓ¸¡Æ¤¤¹¤ë¡£

** postfix¤Ç¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È¤ÇÁ÷¿® [#p7900e10]

postfix¤òsmtp¥¯¥é¥¤¥¢¥ó¥È¤È¤·¤ÆÍøÍѤ·¡¢TLSǧ¾Ú¤Ç¥Ñ¥¹¥ï¡¼¥É¤òÀßÄꤷ¡¢¥µ¥Ö¥ß¥Ã¥·¥ç¥ó¥Ý¡¼¥È¤Ç¥á¡¼¥ëÁ÷¿®

°Ê²¼¤ò¥¤¥ó¥¹¥È¡¼¥ë

 # yum install cyrus-sasl-plain
 # /etc/rc.d/init.d/saslauthd start

°Ê²¼¤òÄɲÃ

''postfix/main.cf''

 #relayhost = [mailserver.isp.tld]
 #relayhost = uucphost
 #relayhost = [an.ip.add.ress]
 
 ##Edit by JE2ISM
 relayhost = [mail.ssl-mail.info]:587
 
 #SSL¤òÍ­¸ú¤Ë¤¹¤ë
 smtp_use_tls = yes
 smtpd_use_tls = yes
 
 #ǧ¾Ú¤ÎÀßÄê
 smtp_sasl_auth_enable = yes
 smtp_sasl_password_maps = hash:/etc/postfix/isp_auth
 smtp_sasl_security_options = noanonymou
 smtp_sasl_tls_security_options = noanonymous
 ǧ¾Ú¤òÁê¼ê¤Ë¹ç¤ï¤»¤ë
 smtp_sasl_mechanism_filter = plain

°Ê²¼¤ò½¤Àµ

''postfix/master.cf''

 #smtps     inet  n       -       n       -       -       smtpd
 smtps     inet  n       -       n       -       -       smtpd
 #  -o smtpd_tls_wrappermode=yes
   -o smtpd_tls_wrappermode=yes
 #  -o smtpd_sasl_auth_enable=yes
   -o smtpd_sasl_auth_enable=yes
 #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 #  -o milter_macro_daemon_name=ORIGINATING

¥Ñ¥¹¥ï¡¼¥É¤ÎÀßÄê

''postfix/isp_auth''

 [mail.ssl-mail.info]:587 okada2@wesden.net:*****

DB²½¤ò¹Ô¤¦¡ÊɬÍסË

 # postmap /etc/postfix/isp_auth

postfixºÆµ¯Æ°

 # /etc/rc.d/init.d/postfix restart



**¥á¡¼¥ë¤Î¥ê¥ì¡¼Åù [#rf48be33]
³°¸þ¤±¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤ÈÆâÉô¤Ë¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤Î¤¢¤ë¥µ¡¼¥Ð¤È¤¤¤¦¹½À®¤Ë¤·¤¿¤È¤­
³°Éô¤«¤éÆâÉô¤Ø¤Î¥ê¥ì¡¼¤Î»ÅÊý¤Ë¤Ä¤¤¤Æ

    ----------------                           ---------------
    |DMZ¾å¤Î¥µ¡¼¥Ð |-----------(F/W)-----------|ÆâÉô¤Î¥µ¡¼¥Ð |
    ----------------                           ---------------
                          ¹½À®

***DMZ¾å¤Î¥µ¡¼¥Ð¤«¤éÆâÉô¥µ¡¼¥Ð¤Ø¥ê¥ì¡¼ [#mbc7ec3f]

/etc/postfix/main.cf¤Ç
°Ê²¼¤Î¹Ô¡Ê#¤Ç»Ï¤Þ¤ëÉôʬ°Ê³°¡Ë¤òµ­½Ò
 
 # TRANSPORT MAP
 #
 # Insert text from sample-transport.cf if you need explicit routing.
 transport_maps = hash:/etc/postfix/transport

/etc/postfix/transport¤Ë2¹ÔÄɲÃ

¥É¥á¥¤¥ó°¸(@hogehoge.ac.jp)
 hogehoge.ac.jp smtp:[192.168.1.2] (Ëô¤Ïsmtp:xxx.hogehoge.ac.jp)

¤½¤Î¾¥Þ¥·¥ó¤â°¸¤Æ¤âÁ÷¤ë(@xxx.hogehoge.ac.jp)¤³¤Îµ­½Ò¤Ç¤Ï¥É¥á¥¤¥ó°¸¤Ï¥ê¥ì¡¼¤·¤Ê¤¤¡£¡ÊξÊýɬÍ×)
 .hogehoge.ac.jp smtp:[192.168.1.2] 

ÀßÄ꤬´°Î»¤·¤¿¤é¡¢(Êѹ¹¤¹¤ë¤´¤È¤Ë¼Â¹Ô¤ÎɬÍפ¢¤ê)

 # /usr/sbin/postmap /etc/postfix/transport

/etc/postfix/transportÊѹ¹¤¹¤ë¤´¤È¤Ë¼Â¹Ô¤·¡¢/etc/rc.d/init.d/postfix reload¤â¹Ô¤¦É¬Íפ¬¤¢¤ë

postmap¤ò¼Â¹Ô¤·¤¿¤È¤­¤Î¥í¥°(/var/log/maillog)
 Jan 19 11:01:00 vmware40 postfix/pickup[1987]: 9A6DD1BB8A3: uid=0 from=<root>
 Jan 19 11:01:00 vmware40 postfix/cleanup[2532]: 9A6DD1BB8A3: message- id=<20070119020100.9A6DD1BB8A3@vmware40.abc-u.ac.jp>
 Jan 19 11:01:00 vmware40 postfix/qmgr[1988]: 9A6DD1BB8A3: from=<root@vmware40. abc-u.ac.jp>, size=624, nrcpt=1 (queue active)
 Jan 19 11:01:00 vmware40 postfix/smtp[2534]: 9A6DD1BB8A3: to=<root@vmware40.abc-u.ac.jp>, orig_to=<root>, relay=uso5004.mie-chukyo-u.ac.jp[192.244.75.246], delay=0, status=sent (250 Ok: queued as B3579A1C00B)
 Jan 19 11:01:00 vmware40 postfix/qmgr[1988]: 9A6DD1BB8A3: removed

***ÆâÉô¥µ¡¼¥Ð¤Î¥µ¡¼¥Ð¤«¤éDMZ¾å¤Ø¥ê¥ì¡¼ [#ta635a90]

/etc/postfix/main.cf ¤Î°Ê²¼¤ÎÉôʬ¤òÊÔ½¸

 local_recipient_maps =
	¤¢¤ÆÀèÉÔÌÀ¤Ê¥á¡¼¥ë¤Î½èÍý¤òµ­½Ò¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Ç¡¢²¿¤â»ØÄꤷ¤Ê¤¤¤³¤È¤Ç¡¢¤¢¤ÆÀèÉÔÌÀ¤Î¥á¡¼¥ë¤ò½èÍý¤¹¤ë¡£
 myorigin¤¬ÀßÄꤷ¤Æ¤¢¤ì¤Ï¥É¥á¥¤¥ó¤Ê¤·¥¢¥É¥ì¥¹¤Ïlocal_recipient_maps¤ÎÀßÄê¤È¤Ï̵´Ø·¸¤ËÁ÷¤ì¤ë
 relayhost = [192.168.1.2]	¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥ì¡¼¥Û¥¹¥È¤ò»ØÄê¡£	
 fallback_transport = smtp:[192.168.1.2]
	¥í¡¼¥«¥ë¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¥æ¡¼¥¶¤Ø¤Î¥á¡¼¥ë¤òžÁ÷¤¹¤ëÀè¤òµ­½Ò¡£
 ¤¿¤À¤·¡¢myorigin¤Ç¤½¤Î¥µ¡¼¥Ð¤ËžÁ÷¤µ¤ì¤ë¤Î¤Ç¥í¡¼¥«¥ë¤«¤é¤½¤Î¥µ¡¼¥Ð¤ËÁ÷¤ë¤È¤­¤Ï°ÕÌ£¤¬¤Ê¤¤
 relayhost¤Ï¤½¤Î¾¤Î¥µ¡¼¥Ð¤ËÁ÷¤ë¤È¤­¤Ë¤â¥ê¥ì¡¼¤·¤Æ¤¯¤ì¤ë¡£
 myorigin¤òžÁ÷Àè¤ËÀßÄꤹ¤ì¤Ð¤è¤¤¡£¤³¤ì¤Ï¥é¥¦¥ó¥É¥í¥Ó¥ó¤Ê¤ó¤«¤ÎÊ£¿ô¥µ¡¼¥Ð¤ÇƱ°ì
 ¥É¥á¥¤¥ó¤Ç¼õ¤±¤Æ¡¢Â¸ºß¤·¤Ê¤¤¥æ¡¼¥¶¤òÊÌ¥µ¡¼¥Ð¤ËžÁ÷¤¹¤ë¤È¤­¤Ê¤ó¤«¤ËÍ­¸ú¤«¡©
¤¿¤À¤·¡¢Å¾Á÷À襢¥É¥ì¥¹¤¬¼õ¿®¤Ç¤­¤Ê¤¤¤È¥¨¥é¡¼¤Çµ¢¤Ã¤Æ¤¯¤ë¡£(Î㤨¤Ðyy@xxx.abc.ac.jp¤¬°¸Àè¤Î¤È¤­Å¾Á÷À褬xxx.abc.ac.jp¤ò¼õ¤±¼è¤ì¤Ê¤¤¾ì¹ç)

¼õ¤±¼è¤ì¤Ê¤¤¤È¤­¤Î¤Î¥í¥°

 Jan 19 11:14:56 uso5004 postfix/qmgr[27447]: 526BEA1C00B: from=<okada@vmware40. abc-u.ac.jp>, size=569, nrcpt=1 (queue active)
 Jan 19 11:14:56 uso5004 postfix/smtp[2541]: 526BEA1C00B: to=<okada@vmware40.abc-u.ac.jp>, relay=none, delay=0, status=bounced (Name service error for name=vmware40.abc-u.ac.jp type=A: Host not found)
 Jan 19 11:14:56 uso5004 postfix/cleanup[1748]: 70374A1C00C: message- id=<20070119021456.70374A1C00C@uso5004.abc.ac.jp>
 Jan 19 11:14:56 uso5004 postfix/qmgr[27447]: 70374A1C00C: from=<>, size=2392, nrcpt=1 (queue active)
 Jan 19 11:14:56 uso5004 postfix/smtp[2541]: 70374A1C00C: to=<okada@vmware40.abc-u.ac.jp>, relay=none, delay=0, status=bounced (Name service error for name=vmware40.abc-u.ac.jp type=A: Host not found)

¤¿¤È¤¨¤Ðuso500x¤Ê¤ó¤«¤Ç¼«Ê¬°Ê³°¥æ¡¼¥¶¤ËÁ÷¤ë¤È¤­To:¤Ëabc¤È¤¹¤ì¤Ðabc@abc.ac.jp¤È¤Ê¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ïmain.cf¤Ç

 myorigin = abc.ac.jp

¤È¤¹¤ë¡£¤â¤Ã¤È¤âfrom¤â¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï@abc.ac.jp¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤Þ¤¦¡Ê¤¿¤È¤¨¤Ð¡¢myorigin=$mydomin¤Î¤È¤­¤Ïroot¤«¤é¥á¡¼¥ë¤ò½Ð¤¹¤ÈFrom¤Ë¤Ïroot@$mydomin¤Ëmyorigin=$myhost¤Î¤È¤­¤ÏFrom¤Ë¤Ïroot@$myhost¤Ë¤Ê¤ë)~ 
¤Þ¤¿¡¢¥á¡¼¥é¤Ç¤ÏDelivered-To:¤Ï@°Ê¹ß¤¬Êä´°¤µ¤ì¤ë¤¬¡¢To:¤ÏÊä´°¤µ¤ì¤Ê¤¤¤â¤Î¤â¤¢¤ë

&color(red){¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤émail¥³¥Þ¥ó¥É¤Ç¼Â¸³¤¹¤ë¤È¤­¤Ïmyorigin¤ÇTo:¤¬Êä´°¤µ¤ì¤ë¤Î¤ÇÀßÄꤷ¤Æ¤ª¤¤¤¿¤Û¤¦¤¬¤¤¤¤¡£};

¤Þ¤¿¡£myoriginÀßÄꤷ¤¿¥É¥á¥¤¥ó¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤ËËÜ¥µ¡¼¥Ð¤Ë¥í¡¼¥«¥ë¤«¤éÅêÈ¡¤µ¤ì¤¿¥á¡¼¥ë¤¬¼«Æ°Åª¤ËÇÛÁ÷¤µ¤ì¤ë¡£(fallback_transport¤ÎÀßÄê¤È¤Ï̵´Ø·¸¤ËÇÛÁ÷)

(e.g.) °¸Àèokada¤Ç¤³¤³¤ËÅêÈ¡¤¹¤ë¤Èokada@(myorigin¤ÎÃÍ)¤È¤¤¤¦¥¢¥É¥ì¥¹¤¬°¸Àè¤Ë¤Ê¤ê¡¢(myorigin¤ÎÃÍ)¥µ¡¼¥Ð¤ËžÁ÷


***¥É¥á¥¤¥óÅù¤òÊѹ¹¤·¤ÆžÁ÷ [#r03081a5]

abc.com¤Ë¥æ¡¼¥¶abc¤¬¤¤¤Ê¤¤¾ì¹çaaa.com¤ËžÁ÷

 [A¥µ¡¼¥Ð]  --(abc@abc.com) -->[abc.com¥µ¡¼¥Ð] ==(abc@aaa.com¤È¤·¤Æ) ==> [aaa.com¥µ¡¼¥Ð]

 local_recipient_maps = 
 luser_relay = $user@aaa.com

 
**Postfix2.x¤Î¥¤¥ó¥¹¥È¡¼¥ë [#q9032697]

[[¤³¤³:http://www.postfix.org/download.html]]¤«¤éDownload. 

postfix¤È¤¤¤¦¥æ¡¼¥¶¤Èpostfix,postdrop¤È¤¤¤¦¥°¥ë¡¼¥×¤òºîÀ®¡£rpm¤Çµì¥Ð¡¼¥¸¥ç¥ó¤Ç
¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤¹¤Ç¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë¡£

/etc/passwd
 postfix:x:128:128:postfix:/var/spool/postfix:

/etc/group
 postfix:x:128:
 postdrop:x:129:

 $ tar zxvf postfix-2.2.5.tar.gz
 $ cd postfix-2.2.5
 $ make (./configure¤Ï¤·¤Ê¤¤)
 make -f Makefile.in MAKELEVEL= Makefiles
 (echo "# Do not edit -- this file documents how Postfix was built for your  machine."; /bin/sh makedefs) >makedefs.tmp
 set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
 else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
 
 (ά)

 [src/tlsmgr]
 gcc -Wmissing-prototypes -Wformat  -g -O -I. -I../../include -DLINUX2 -c  tlsmgr.c
 gcc -Wmissing-prototypes -Wformat  -g -O -I. -I../../include -DLINUX2 -o tlsmgr tlsmgr.o ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libglobal.a ../../ lib/libutil.a -ldb -lnsl -lresolv
 cp tlsmgr ../../libexec
 
 $ su
 # /etc/rc.d/init.d/postfix stop
 # /etc/rc.d/init.d/pop-before-smtp stop
 # make upgrade (make install¤ò¤¹¤ë¤È¥¤¥ó¥¹¥È¡¼¥ëÀèÅù¤¤¤í¤¤¤íʹ¤«¤ì¤ë¤¬¡¢
 ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡upgrade¤À¤È¸½ºß¤Î/etc/postfix/main.cf¤«¤éȽÃǤ·¤Æ¤¯¤ì¤ë¡£
                 rpm¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤­¤Ï upgrade¤¬´Êñ)
 
 set -e; for i in src/util src/global src/dns src/tls src/master src/postfix   
 src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local
 src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe
 src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/
 postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/
 spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/
 discard src/tlsmgr; do \
  (set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-prototypes -Wformat '   update MAKELEVEL=) || exit 1; \
 done
 [src/util]
 
 (ά)
 
 Editing /etc/postfix/master.cf, adding missing entry for discard service
 Editing /etc/postfix/master.cf, adding missing entry for tlsmgr service
 
     Note: the following files or directories still exist but are no
     longer part of Postfix:
  
      /etc/postfix/pcre_table /etc/postfix/regexp_table
 
 You have mail in /var/spool/mail/okada
 
------- make install ¤Î¾ì¹ç -----------------------------
 /etc/postfix/main.cf ¤òÊÔ½¸
 /etc/postfix/aliases ¤Ë root: ¼«Ê¬¤Î¥¢¥«¥¦¥ó¥È̾ ¤òÄɲÃ
---------------------------------------------------------

 # /usr/sbin/postfix check
 (²¿¤âµ¢¤é¤Ê¤¤)
 # /etc/rc.d/init.d/postfix start
 # /etc/rc.d/init.d/pop-before-smtp start

***±¿ÍÑÀßÄê [#ge64df5f]

¥¤¥ó¥¹¥È¡¼¥ë¸å¤ËÀßÄꤹ¤ë¥Õ¥¡¥¤¥ë¤Ï/etc/postfix/main.cf¤Ç
°Ê²¼¤ÎÆâÍƤ褦¤ËÀßÄꤹ¤ë
 inet_interfaces = all <--CentOS¤Î¾ì¹ç¤³¤³¤¬localhost¤Ë¤Ê¤Ã¤Æ¤¤¤Æ³°Éô¤«¤é¼õ¿®¤Ç¤­¤Ê¤¤
 mydomain = abc.ac.jp
 °Ê²¼¤Î2¤Ä¤ÏÁ÷¤ê¸µ¤Ë¥Û¥¹¥È̾¤òÆþ¤ì¤ë¤«Èݤ«¤ò·è¤á¤ë
 myorigin = $myhostname <:---user@xxx.domain.jp
 myorigin = $mydomain   <:---user@domain.jp
 mydestination = $myhostname, localhost.$mydomain
 (¤â¤·¡¢¥É¥á¥¤¥ó¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤Ë¤·¤Æ¡¢¥É¥á¥¤¥ó°¸¤Æ¤Î¥á¡¼¥ë¤ò¼õ¤±¼è¤ë¤È¤­¤Ï
 mydestination = $myhostname, localhost.$mydomain, $mydomain
 ¤È¤¹¤ë)
 mynetworks = 192.xxx.xxx.0/24, 127.0.0.0/8, 10.0.0.0/8
 smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient,
       check_client_access hash:/etc/postfix/pop-before-smtp,
       check_relay_domains
 (pop-before-smtp¤ÎÀßÄê)
 relayhost = mail.abc.ac.jp
 (¥ê¥ì¡¼¥Û¥¹¥È¤ÎÀßÄê)
 #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Vine Linux)
 smtpd_banner = $myhostname ESMTP $mail_name
 (¤³¤ì¤Ï¥á¡¼¥ë¥µ¡¼¥Ð¤ÎÁÇÀ­¤ò¤¢¤«¤µ¤Ê¤¤¤¿¤á¤ÎÀßÄê
 
 #Edit by JE2ISM
 ##allow_percent_hack = no
 allow_percent_hack = yes
 
 #Edit by JE2ISM
 # Limit Mssege 30MB
 message_size_limit = 31457280
 (°ìÅÙ¤ËÁ÷¤ì¤ë¥á¥Ã¥»¡¼¥¸¥µ¥¤¥º¤ÎMax default:10MB)
 # MailBox Size 400MB
 mailbox_size_limit = 409600000
 (MailBox¤ÎºÇÂçÍÆÎÌ default:50MB)

¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬´Ö°ã¤Ã¤Æ¤¤¤ë¤È¤­¡Öunknown user: "f05999"¡×
¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤òÁ÷¿®¸µ¤ËÊÖ¤¹¤È¤­¤Ï
 unknown_local_recipient_reject_code = 550

»ØÄê¤Ê¤·¤Ï550¤¬¥Ç¥Õ¥©¥ë¥È¤Î¤è¤¦¤À~
reject¤¹¤ë¤À¤±¤ÇÁ÷¿®¸µ¤Ë¥á¥Ã¥»¡¼¥¸¤òÊÖ¤µ¤Ê¤¤¤Ê¤é
 unknown_local_recipient_reject_code = 450
 550:¥á¡¼¥ë¤ÇµñÈݤòÄÌÃÎ(reject mail) 450:°ìÄê»þ´Ö¸å¤ËºÆ»î¹Ô(try again later)

550¤Î¤È¤­¤Ï°Ê²¼¤Î¤è¤¦¤ÊÁ÷¿®¸µmaillog¤Ë¤Ê¤ë

 May 23 14:42:38 uso5004 postfix/smtp[22124]: F3A34A1C066: 
 to=<abc@wwwism.dyndns.org>, relay=wwwism.dyndns.org[202.59.191.46], delay=1, 
 status=bounced (host wwwism.dyndns.org[202.59.191.46] said: 550 
 <abc@wwwism.dyndns.org>: Recipient address rejected: User unknown in local
 recipient table (in reply to RCPT TO command))

450¤Î¤È¤­¤Ï°Ê²¼¤Î¤è¤¦¤ÊÁ÷¿®¸µmaillog¤Ë¤Ê¤ë
 May 23 14:39:07 uso5004 postfix/smtp[22085]: 79331A1C065: 
 to=<abc@wwwism.dyndns.org>, relay=wwwism.dyndns.org[202.59.191.46], delay=0,
 status=deferred (host wwwism.dyndns.org[202.59.191.46] said: 450
 <abc@wwwism.dyndns.org>: Recipient address rejected: User unknown in local 
 recipient table (in reply to RCPT TO command))

450¤Î¤È¤­¤ÏÁ÷¿®Â¦¤¬¼õ¿®¸µ¤¬º£¤Ï¤À¤á¤À¤¬»þ´Ö¤¬·Ð¤Ã¤Æ¤«¤é¤â¤¦°ìÅÙÁ÷¤Ã¤Æ¤¤¤¤¤è¤È¤¤¤¦°ÕÌ£¤Çmail¥­¥å¡¼¤ËºÆÁ÷ÍѤ˻Ĥ¹

 #mailq
 -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
 70A7EA1C034      690 Wed May 23 14:25:56  okada@mie-chukyo-u.ac.jp
 (host wwwism.dyndns.org[202.59.191.46] said: 450 <abc@wwwism.dyndns.org>: 
 Recipient address rejected: User unknown in local recipient table (in reply to
 RCPT TO command))
                                         abc@wwwism.dyndns.org


°Ê²¼¤Î¤è¤¦¤Ê¥Ñ¥é¥á¡¼¥¿¤âÄɲäǤ­¤ë
 disable_vrfy_command=yes
 vrfy¥³¥Þ¥ó¥É¤ò̵¸ú¤Ë¤¹¤ë¡£vrfy¥³¥Þ¥ó¥É¤È¤Ï¥æ¡¼¥¶¡¼¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«Ì䤤¹ç¤ï¤»¤ë¤¿¤á¤Î¤â¤Î

 smtpd_helo_required=yes
 helo/ehlo¥³¥Þ¥ó¥É¤òÍ׵᤹¤ë¡£helo/ehlo¥³¥Þ¥ó¥É¤ÏÀܳ¸µ¤Î¥Û¥¹¥È¤ò¼±Ê̤¹¤ë¤¿¤á¤Î
 ¥³¥Þ¥ó¥É¡£¼«¤é¤Î¥Û¥¹¥È̾¤òÄÌÃΤ·¤Ê¤¤Àܳ¤òµñÈݤ¹¤ë¤è¤¦¤ËÀßÄꤷ¤Æ¤ª¤¯¡£

 strict_rfc821_envelopes=no
 RFC821¤Î·Á¼°¤Ë¹ç¤ï¤Ê¤¤¥¢¥É¥ì¥¹¤ÏµñÈݤ¹¤ë¡£RFC821¤ÏSMTP¤Ë¤è¤ë¥á¡¼¥ëžÁ÷¤òÄê¤á¤¿ µ¬³Ê¡£

***¥á¡¼¥ëºï½ü [#w3549fc0]

''/etc/postfix/aliase''

 dummy:  /dev/null

¤Çdummy°¸¤Æ¥á¡¼¥ë¤Ïºï½ü¤µ¤ì¤ë


**¥¹¥Ñ¥àÂкö [#i7a45871]
¤¿¤À¤·¡¢¤³¤ì¤ò¹Ô¤¦¤ÈÁ´¤Æ¤½¤ì¤é¤Î¥µ¥¤¥È¤«¤é¤Î¥á¡¼¥ë¤òµñÈݤ¹¤ë¤Î¤ÇÃí°Õ
 maps_rbl_domains=relays.ordb.org

rbl¤È¤ÏÉÔÀµÃæ·Ñ¤ò¹Ô¤¦²ÄǽÀ­¤¬¤¢¤ë¥µ¥¤¥È¤Î¥Ö¥é¥Ã¥¯¥ê¥¹¥È

 smtpd_client_restrictions=reject_maps_rbl, reject_unknown_client
 reject_maps_rbl¤Ï¾å¤Ç»ØÄꤷ¤¿¥Ö¥é¥Ã¥¯¥ê¥¹¥È¤ËÅÐÏ¿¤µ¤ì¤¿¥Û¥¹¥È¤«¤é¤ÎÀܳ¤òµñÈÝ
 reject_unknown_client¤Ïname¤ÎµÕ°ú¤­¤¬¤Ç¤­¤Ê¤¤¤È¤­Àܳ¤òµñÈݤ¹¤ë¤»¤Ã¤Æ

Ʊ»þ¤ËÁ÷¤ì¤ë¥á¥Ã¥»¡¼¥¸¤ÎÀ©¸Â
 default_destination_concurrency_limit
 ¥Ñ¥é¥á¡¼¥¿ (¥Ç¥Õ¥©¥ë¥È: 20) ¤ÏƱ¤¸ÇÛÁ÷Àè¤ËƱ»þ¤ËÁ÷¤ë¤³¤È¤¬¤Ç¤­¤ë¥á¥Ã¥»¡¼¥¸¤Î
 ¿ô ¥á¥Ã¥»¡¼¥¸1·ï¤´¤È¤Ë¥³¥Í¥¯¥·¥ç¥óÄ¥¤ë¤Ë¤Ï£±¤Ë¤¹¤ë

ÆÃÄê¤ÎÇÛÁ÷¥Á¥ã¥Í¥ë (local, smtp, uucp Åù)¤ËÂФ·¤Æ¾å½ñ¤­¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë
 local_destination_concurrency_limit ¥Ñ¥é¥á¡¼¥¿¤Ï Ʊ¤¸¥í¡¼¥«¥ë¼õ¿®¼Ô¤ËÂФ·¤Æ
 Ʊ»þ¤ËÇÛÁ÷¤¹¤ë¥á¥Ã¥»¡¼¥¸¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹.¡¡2¤¯¤é¤¤¤¬¿ä¾©

Êѹ¹¸å¤Ï

 # /etc/rc.d/init.d/postfix reload

¤ÇÊѹ¹ÆâÍƤòÈ¿±Ç¤µ¤»¤ë¡£

***¥ê¥ì¡¼¥Á¥§¥Ã¥¯¤ò¤·¤Æ¤¯¤ì¤ë¥µ¥¤¥È[[RBL.JP:http://www.rbl.jp/]] [#s419904a]


¤½¤Î¥Á¥§¥Ã¥¯¤Ç°Ê²¼¤Î¤è¤¦¤Ê%Æþ¤ê¥¢¥É¥ì¥¹¤Ç¥ê¥ì¡¼¤¹¤ë¤È¥Á¥§¥Ã¥¯¤µ¤ì¤¿¤È¤­¤Ï
main.cf¤Î
 allow_percent_hack = no
¤ò
 allow_percent_hack = yes
¤Ë¤¹¤ë¡£

[¥ê¥ì¡¼¥Á¥§¥Ã¥¯¤Î·ë²Ì]
Ãæ·Ñ¥Æ¥¹¥È ¤½¤Î6
 >>> RSET
 <<< 250 Ok
 >>> MAIL FROM: <spamtest@xxx.xxx.xx.xxx>
 <<< 250 Ok
 >>> RCPT TO: <relaytest%rbl.jp@[xxx.xxx.xx.xxx]>
 <<< 250 Ok
 relay accepted!! 

***spamÂкö [#fbf46e7f]
''Header¤Ç¥Á¥§¥Ã¥¯''

main.cf¤Ë
 #header_checks = regexp:/etc/postfix/header_checks
¤Î¥³¥á¥ó¥È¤ò¤Ï¤º¤¹

/etc/postfix/header_checks
¤Ë
 # It refuses by a partner's subject.
 
 /^Subject: je2ism/       REJECT
 (SubjectÍó¤¬je2ism¤Ç»Ï¤Þ¤ë¥á¡¼¥ë¤òµñÈÝ)
 
 # It refuses in a FROM address.
 
 #/^From: okada/          REJECT
 (FromÍó¤¬okada¤Ç»Ï¤Þ¤ë¥á¡¼¥ë¤òµñÈÝ)
 /^From:.*<#.*@.*>/ REJEC
 (FromÍ󤬲¿¤â¤Ê¤¤¥á¡¼¥ë¤ÏµñÈÝ)
 /^From: .*@abc.ne.jp/        REJECT
 (FromÍó¤¬abc.ne.jp¤«¤é¤Î¥á¡¼¥ë¤ÏµñÈÝ)

''ËÜʸ¤Ç¥Á¥§¥Ã¥¯''

main.cf¤Ë
 body_checks=regexp:/etc/postfix/body_checks
¤òÄɲÃ
/etc/postfix/body_checks¤Ë
 /spam/REJECT
 (ËÜʸÃæ¤Ëspam¤È¤¤¤¦¥­¡¼¥ï¡¼¥É¤¬¤¢¤ì¤Ð¥á¡¼¥ë¤òµñÈÝ)

 /name=.*\.scr/  REJECT
 (źÉÕ¥Õ¥¡¥¤¥ë¤¬.scr¤¬´Þ¤Þ¤ì¤ì¤Ð¥á¡¼¥ë¤òµñÈÝ)


Êѹ¹¸å¤Ï
 # /etc/rc.d/init.d/postfix reload
¤ò¼Â¹Ô

''½èÍýÊýË¡¤Ë¤Ä¤¤¤Æ''
-OK¡§¼õ¿®¤¹¤ë¡ÊVer2.1°Ê¹ß¤ÏDUNNO¿ä¾©¡Ë
-IGNORE¡§°ìÃפ·¤¿¹Ô¤ò¥Ø¥Ã¥À¤«¤éºï½ü
-REJECT¡§¼õ¿®µñÈݤ·¤Æ¡¢¥¨¥é¡¼¥á¡¼¥ë¤òÊÖ¤¹
-DISCARD¡§¼õ¿®¤·¤ÆÇË´þ¤¹¤ë

''maillog''

[REJECT]
 Aug 27 13:17:17 uso5005 postfix/cleanup[1154]: 718A62205E6: reject: header
 From: "=?ISO-2022-JP?B?GyRCMixFRCEhTklMQBsoQg==?=" <okada@wwwism.dyndns.org>
 from mail.mie-chukyo-u.ac.jp[192.244.75.5]; from=<okada@wwwism.dyndns.org>
 to=<okada@uso5005.mie-chukyo-u.ac.jp> proto=ESMTP helo=<mail.mie-chukyo-
 u.ac.jp>: Message content rejected

[DISCARD]
 Aug 27 13:41:58 uso5005 postfix/cleanup[2264]: 91E192205E6: discard: header
 From: "=?ISO-2022-JP?B?GyRCMixFRCEhTklMQBsoQg==?=" <okada@wwwism.dyndns.org>
 from mail.mie-chukyo-u.ac.jp[192.244.75.5]; from=<okada@wwwism.dyndns.org>
 to=<okada@uso5005.mie-chukyo-u.ac.jp> proto=ESMTP helo=<mail.mie-chukyo-
 u.ac.jp>


**Ê̥ɥᥤ¥ó¤Î¥á¡¼¥ë¤â¼õ¤±¼è¤ì¤ë¤è¤¦¤Ë¤¹¤ë [#i39ea045]

/etc/postfix/main.cf¤Î

 mydestination = $myhostname, localhost.$mydomain, $mydomain, abc.ne.jp
                                                             ^^^^^^^^Äɲåɥᥤ¥ó
 ¤Ë¥É¥á¥¤¥ó̾¤òÄɲ乤롣

 IP¥¢¥É¥ì¥¹»ØÄê¤Ï[192.168.1.1]¤Î¤è¤¦¤Ë»ØÄꤹ¤ë

**Á÷¤é¤ì¤¿¥á¡¼¥ë¥¢¥«¥¦¥ó¥È¤Ç¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤Ë¤Ï [#hc8de1b9]

/etc/postfix/aliases¤Ë

 (¥¢¥«¥¦¥ó¥È̾): "|(¥³¥Þ¥ó¥É¥Ñ¥¹)"

 comingout: "|/home/postgres/comingout/perl/comingout.pl"
 ¤Î¤è¤¦¤Ëµ­Æþ¤¹¤ë

*DDNS [#zf43db92]

DDNS(dyndns.org)¤ÎMail Exchanger (optional)¤Ë»ØÄê ¤·¤¿¥á¡¼¥ë¤ò¼õ¤±¼è¤ë¤È¤­¤Ë¤âɬÍס£
Î㤨¤Ð
 Mail Exchanger (optional): abc.ne.jp
¤ÈÀßÄꤹ¤ë¤È

 wwwism.dyndns.org.¡¡¡¡¡¡86400INMX10 abc.ne.jp.
¤ÈDNS¤Ë½ñ¤«¤ì¡¢
abc.ne.jp¤Ëwwwism.dyndns.org°¸¤Æ¥á¡¼¥ë¤¬Å¾Á÷¤µ¤ì¤ë¡£
Backup MX?:DDNS¤ÎIP¤Ë¤â¥á¡¼¥ë¤òžÁ÷¤¹¤ë¤È¤­¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë¡£ÉáÄ̤ϥÁ¥§¥Ã¥¯¤ÎɬÍפʤ·¡£

¼«Âð¤Ë¥á¡¼¥ë¥µ¡¼¥Ð¤òΩ¤Á¾å¤²¥ë¡¼¥¿¤ÇPort25(smtp)¤ò¥Õ¥©¥ï¡¼¥É¤µ¤»¤ë¤È¤­¤ÏMail Exchanger:¤Ëwwwism.dyndns.org¤È¤·¤Æpostfix¤ÎÀßÄê¤òwwwism.dyndns.org¤â¼õ¿®²Äǽ¤Ë¤¹¤ë¤Èokada@wwwism.dyndns.org¤Ç¥á¡¼¥ë¤¬¼õ¤±¼è¤ì¤ë¡£ 

¼«Âð¤Î¥µ¡¼¥Ð¤òsmtp¥µ¡¼¥Ð¤ËÀßÄê

main.cf¤ò
 myhostname = pc85xxxx.axxgo2.ne.jp  <---DHCP¤Ç³ä¤ê¿¶¤é¤ì¤¿Host̾
 
 mydomain = axxgo2.ne.jp     <---¥×¥í¥Ð¥¤¥À¤Î¥É¥á¥¤¥ó̾
 
 mydestination = $myhostname, localhost.$mydomain $mydomain
 
 mynetworks = 168.168.10.0/24, 127.0.0.0/8
 
 relayhost = mail.axxgo2.ne.jp    <---¥×¥í¥Ð¥¤¥À¤Îsmtp¥µ¡¼¥Ð

***¥­¥å¡¼¤Îɽ¼¨ [#ffc89ab9]

 $ mailq
 -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
 2932C2DEA16*    2761 Fri Jan  6 03:20:03  MAILER-DAEMON
                                          info@mail.uzwr.com
 
 1C34F2DEA53*    2655 Fri Jan  6 06:48:21  MAILER-DAEMON
 
                                          info@mail.wubv.com
 (ά)
 
 63E992DE9F1     7372 Fri Jan  6 02:38:31  MAILER-DAEMON
                  (connect to rothen.net[216.168.224.70]: Connection timed out)
                                          colmonr@rothen.net

 6B76F2DEA1C     5917 Thu Jan  5 21:24:13  MAILER-DAEMON
 (host mx1.mail.yahoo.co.jp[202.93.77.231] said: 421 VS14-RT5 Mailbox bounce  arrival rate exceeds system limit (#4.2.2))
                                          fkirij798@yahoo.co.jp

 -- 1471 Kbytes in 202 Requests.

***¥­¥å¡¼ºï½ü [#wd18f6c3]

Postfix2.1°Ê¹ß¤Ê¤é¡¢

 bounce_queue_lifetime = 86400
¤Ç¥æ¡¼¥¶¤¬½Ð¤·¤¿¥á¡¼¥ë¤È¤ÏÊ̤ˡ¢bounce¤·¤¿·ë²ÌºîÀ®¤µ¤ì¤ë¥á¡¼¥ë¤¬¥­¥å¡¼¤Ëα¤Þ¤ë»þ´Ö¤òÀ©¸æ¡£¥Ç¥Õ¥©¥ë¥È¤Ï5Æü(432000 MAX:8640000)

**¤½¤Î¾¤Î¥­¥å¡¼´Ø·¸ [#a5dac97e]
 queue_run_delay (¥Ç¥Õ¥©¥ë¥È: 1000 ÉÃ) 
¥­¥å¡¼ ¥Þ¥Í¡¼¥¸¥ã¤¬ÃÙ±ä¥á¡¼¥ë¤Î¥­¥å¡¼¤ò¥¹¥­¥ã¥ó¤¹¤ëÉÑÅÙ¡£ 

 maximal_queue_lifetime (¥Ç¥Õ¥©¥ë¥È: 5 Æü) 
¥á¥Ã¥»¡¼¥¸¤¬ ÇÛÁ÷ÉÔǽ¤È¤·¤ÆÁ÷¤êÊÖ¤µ¤ì¤ë¤Þ¤Ç¤Ë¥­¥å¡¼¤Ëα¤Þ¤ë´ü´Ö¡£ 

 minimal_backoff_time (¥Ç¥Õ¥©¥ë¥È: 1000 ÉÃ) 
¥á¥Ã¥»¡¼¥¸¤¬ ¸¡º÷¤µ¤ì¤Ê¤¤ºÇ¾®»þ´Ö¤ª¤è¤Ó¡Ö»àË´¡×ÇÛÁ÷Àè¤Ë¼ê¤ò½Ð¤µ¤Ê¤¤ºÇ¾®»þ´Ö¡£ 

 maximal_backoff_time (¥Ç¥Õ¥©¥ë¥È: 4000 ÉÃ) 
ÇÛÁ÷¤Ë ¼ºÇÔ¤·¤Æ¤«¤é¥á¥Ã¥»¡¼¥¸¤ò¸«¤Ê¤¤ºÇÂç»þ´Ö¡£


''(¼êÆ°¤ÇÂнè¡Ë''
mailq ¤ÈÂǤÁ¹þ¤ó¤Ç¡¤¥­¥å¡¼¤Ë¥á¡¼¥ë¤¬¿ôÉ´
°Ê¾å¤¿¤Þ¤Ã¤Æ¤¤¤¿¤é¡¤

 mailq | grep MAILER-DAEMON | sort +3 > hoge

¤È¤«¤·¤Æ¡¤¿ô»þ´Ö°Ê¾å¤¿¤Ã¤¿ MAILER-DAEMON ¤«¤é¤Î¥á¡¼¥ë¤Î¥­¥å¡¼¤Ë¤Ä¤¤¤Æ¤Ï¡¤

 postsuper -d ¥­¥å¡¼ÈÖ¹æ

 # /usr/sbin/postsuper -d 8B3296529B
 postsuper: 8B3296529B: removed
 postsuper: Deleted: 1 message

¤Ç¥á¡¼¥ë¥­¥å¡¼¤«¤éºï½ü¡¤Ä̾ï¥æ¡¼¥¶¸¢¸Â¤Ç¤«¤Þ¤¤¤Þ¤»¤ó¤Î¤Ç
sendmail -q ¤ò¼Â¹Ô¤¹¤ì¤Ð¡¤¥­¥å¡¼¤Ë¤¿¤Þ¤Ã¤¿¥á¡¼¥ë¤òÁ´¤ÆÇÛÁ÷¤¹¤ë

''¥á¥Ã¥»¡¼¥¸¤ÎÆâÍÆɽ¼¨''

 # /usr/sbin/postcat -q QUEUE_ID

 # /usr/sbin/postcat -q 6D3221234FCA
 *** ENVELOPE RECORDS deferred/6/6D3221234FCA ***
 message_size:             913             430               3               0
 message_arrival_time: Thu Jan 13 12:17:19 2011
 ¡Êά¡Ë 
 recipient: neksus@www.matsusaka-u.ac.jp
 *** MESSAGE CONTENTS deferred/6/6D3221234FCA ***
 Received: from 28c07nc7e.com (unknown [**.**.**])
 (ά)
 *** HEADER EXTRACTED deferred/6/6D3221234FCA *** 
 *** MESSAGE FILE END deferred/6/6D3221234FCA ***

''¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤Î¶¯À©Å¾Á÷¡ÊÁ´Éô¡Ë''

 postfix flush

''¥á¥Ã¥»¡¼¥¸¥­¥å¡¼¤ÎÁ´ºï½ü''

 /usr/sbin/postsuper -d ALL

**ÉÔÌÀ¤Ê°¸Àè¤Ë¥Ð¥¦¥ó¥¹¤µ¤»¤Ê¤¤ [#t08eea7d]

¼«Ê¬¤Î¥µ¡¼¥Ð¸ºß¤·¤Ê¤¤¥¢¥«¥¦¥ó¥È°¸¤Î¥á¡¼¥ë¤ò¼õ¤±¤Ê¤¤¤è¤¦¤Ë¤¹¤ë~
¤³¤ì¤Ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤òº¾¾Î¤µ¤ì¤¿Ìµ¼Â¤Î¿Í¤Ë¤â̵ÍѤʥ¨¥é¡¼¥Ð¥¦¥ó¥¹¤ò½Ð¤µ¤Ê¤¯¤Ê¤ë~
°Ê²¼¤ÎÎã¤Ï$alias_maps¤È/etc/passwd¤Ë¥æ¡¼¥¶¤¬¤¤¤Ê¤¤¤È¤­¤Ï¥¨¥é¡¼¤ò½Ð¤¹

main.cf

 local_recipient_maps = $alias_maps unix:passwd.byname

$alias_maps¤À¤±¤Ç¤Î¥æ¡¼¥¶¤·¤«Ç§¤á¤Ê¤¤¾ì¹ç¡¢/etc/passwd¤Î¥æ¡¼¥¶¤âǧ¤á¤Ê¤¤¤È¤­¤Ï

 local_recipient_maps = $alias_maps

¤ÈÀßÄꤹ¤ë

2.x¤Ï¥Ç¥Õ¥©¥ë¥È¤ÇOn 1.x¤â»È¤¨¤ë¡£
±ü¼ÀèÀ¸»²¹Í¥Ú¡¼¥¸

--------------------------------------------------------------------------------
RIGHT:[[¸µ¥Ú¡¼¥¸:https://wwwism.dyndns.org/hp/linux/postfix.htm]]

¥È¥Ã¥×   ÊÔ½¸ º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS