Postfix ɸ½àÀßÄê¤ÎÎã


¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÎÌÜŪ

¤³¤Î¥É¥­¥å¥á¥ó¥È¤Ïŵ·¿Åª¤Ê Postfix ÀßÄê¤ò¤¤¤¯¤Ä¤«¼¨¤·¤Æ¤¤¤Þ¤¹¡£ BASIC_CONFIGURATION_README ¥É¥­¥å¥á¥ó¥È¤Ë½ñ¤«¤ì¤Æ¤¤¤ë´ðËÜŪ¤ÊÀßÄê¤Î¥¹¥Æ¥Ã¥×¤Ë½¾¤Ã¤¿¸å¤Ç¤³¤Î ¥É¥­¥å¥á¥ó¥È¤ò¸«Ä¾¤¹¤Ù¤­¤Ç¤¹¡£ÆÃ¤Ë Postfix ¤Ç¥í¡¼¥«¥ë¥á¡¼¥ë¤ÎÅêÈ¡¤ä ¥í¡¼¥«¥ë¥á¡¼¥ëÇÛÁ÷¤ò¤ä¤Ã¤¿¤³¤È¤¬¤Ê¤±¤ì¤Ð¡¢Æɤ߿ʤá¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£

¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÎºÇ½é¤ÎÉôʬ¤Ç¤Ï¡¢¤¢¤ëÆÃÄê¤ÎÌäÂê¤ò¤½¤ì¤¾¤ì1¤Ä¤º¤Ä ²ò·è¤¹¤ëɸ½àÀßÄê¤ò¼¨¤·¤Þ¤¹¡£

¤³¤Î¥É¥­¥å¥á¥ó¥È¤Î2ÈÖÌܤÎÉôʬ¤Ç¤Ï¡¢ÆÃÄê´Ä¶­¤Î¥Û¥¹¥È¤Ç¤ÎÄɲÃÀßÄê¤ò ¼¨¤·¤Þ¤¹¡£

¥¹¥¿¥ó¥É¥¢¥í¥ó¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Û¥¹¥È¤Î Postfix

Postfix ¤ÏľÀÜ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤Ë¥¢¥¯¥»¥¹¤¹¤ë¥¹¥¿¥ó¥É¥¢¥í¥ó¥Þ¥·¥ó¤Ç¤Ï¡¢ Êѹ¹¤Ê¤·¤Ë¤½¤Î¤Þ¤ÞÆ°¤¯¤Ï¤º¤Ç¤¹¡£¾¯¤Ê¤¯¤È¤â¡¢ http://www.postfix.org/ ¤«¤é ¥½¡¼¥¹¥³¡¼¥É¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¤­¤¿¾ì¹ç¤Î Postfix ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ï ¤½¤Î¤Þ¤Þ¤ÇÆ°¤¯¤Ï¤º¤Ç¤¹¡£

main.cf ¤Ç¾å½ñ¤­¤µ¤ì¤¿ÀßÄê¤òÃΤë¤Ë¤Ï¡¢"postconf -n" ¥³¥Þ¥ó¥É¤¬»È¤¨¤Þ¤¹¡£ ¥¹¥¿¥ó¥É¥¢¥í¥ó¥Ü¥Ã¥¯¥¹¤Ç¤Ï¤¤¤¯¤Ä¤«¤Î¥Ñ¥¹Ì¾¤ÎÀßÄê¤ò½ü¤­¡¢ BASIC_CONFIGURATION_README ¥É¥­¥å¥á¥ó¥È¤Ç¥«¥Ð¡¼¤·¤Æ¤¤¤ë¤â¤Î¤Ë²Ã¤¨¤Æ¤µ¤é¤Ë¤¤¤¯¤Ä¤«¤ÎÀßÄ꤬ɬÍפǤ¹:

/etc/postfix/main.cf:
    # ¥ª¥×¥·¥ç¥ó: user@hostname ¤Ç¤Ï¤Ê¤¯ user@domainname ¤È¤·¤Æ¥á¡¼¥ë¤ò
    # Á÷¤ê¤Þ¤¹¡£
    #myorigin = $mydomain

    # ¥ª¥×¥·¥ç¥ó: NAT/¥×¥í¥­¥·³°Éô¥¢¥É¥ì¥¹¤ò»ØÄꤷ¤Þ¤¹¡£
    #proxy_interfaces = 1.2.3.4

    # ¾¤Î¥Û¥¹¥È¤«¤é¤Î¥á¡¼¥ë¤òÃæ·Ñ¤·¤Þ¤»¤ó¡£
    mynetworks_style = host
    relay_domains =

ÀßÄ꤬ "¼ÂºÝ¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Û¥¹¥È̾¤ò»ý¤¿¤Ê¤¤¥Û¥¹¥È¤Ç¤Î Postfix" ¥»¥¯¥·¥ç¥ó¤ËÅö¤Æ¤Ï¤Þ¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢¤½¤Î¥»¥¯¥·¥ç¥ó¤â»²¾È¤·¤Æ ¤¯¤À¤µ¤¤¡£

Null ¥¯¥é¥¤¥¢¥ó¥È¤Î Postfix

Null ¥¯¥é¥¤¥¢¥ó¥È¤È¤¤¤¦¤Î¤Ï¡¢¥á¡¼¥ë¤ÎÁ÷¿®¤À¤±¤¬¤Ç¤­¤ë¥Þ¥·¥ó¤Î¤³¤È¤Ç¤¹¡£ ¥Í¥Ã¥È¥ï¡¼¥¯¤«¤é¤Ï¥á¡¼¥ë¤ò¼õ¤±¼è¤é¤º¡¢¥í¡¼¥«¥ë¤Ø¤Î¥á¡¼¥ëÇÛÁ÷¤â¤·¤Þ¤»¤ó¡£ null ¥¯¥é¥¤¥¢¥ó¥È¤Ï¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤Ø¤Î¥¢¥¯¥»¥¹¤Ë¤Ï¤¿¤¤¤Æ¤¤ POP ¤ä IMAP¡¢ NFS ¤ò»È¤¤¤Þ¤¹¡£

¤³¤ÎÎã¤Ç¤Ï¡¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥É¥á¥¤¥ó̾¤Ï "example.com"¡¢¥Þ¥·¥ó̾¤Ï "nullclient.example.com" ¤Ç¤¢¤ë¤È¤·¤Þ¤¹¡£¤¤¤Ä¤âÄ̤ꡢÎã¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤«¤é Êѹ¹¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤ò¼¨¤·¤Þ¤¹¡£

1 /etc/postfix/main.cf:
2     myorigin = $mydomain
3     relayhost = $mydomain
4     inet_interfaces = 127.0.0.1
5     local_transport = error:local delivery is disabled
6 
7 /etc/postfix/master.cf:
8     Comment out the local delivery agent entry

ËÝÌõ:

¥í¡¼¥«¥ë¥Í¥Ã¥È¥ï¡¼¥¯¤Î Postfix

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ë¤Ï1¤Ä¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤È¥á¡¼¥ë¤òÁ÷¼õ¿®¤¹¤ëÊ£¿ô¤Î¾¤Î ¥·¥¹¥Æ¥à¤¬¤¢¤ë¥í¡¼¥«¥ë¥¨¥ê¥¢¥Í¥Ã¥È¥ï¡¼¥¯´Ä¶­¤Ë¤Ä¤¤¤Æ½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£ ¤¤¤Ä¤âÄ̤ꥤ¥ó¥¿¡¼¥Í¥Ã¥È¥É¥á¥¤¥ó̾¤Ï "example.com" ¤È¤·¤Þ¤¹¡£¥·¥¹¥Æ¥à¤Ï ¤¹¤Ù¤Æ "user@example.com" ¤È¤·¤Æ¥á¡¼¥ë¤òÁ÷¤ë¤è¤¦¤ËÀßÄꤵ¤ì¡¢ "user@hostname.example.com" °¸¤Î¥á¡¼¥ë¤ò¼õ¤±¼è¤ê¤Þ¤¹¡£¥á¥¤¥ó¥µ¡¼¥Ð¤Ï "user@example.com" °¸¤Î¥á¡¼¥ë¤â¼õ¤±¼è¤ê¤Þ¤¹¡£¤³¤Î¥Þ¥·¥ó¤ò mailhost.example.com ¤È¤¤¤¦Ì¾Á°¤Ç¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹¡£

"user@example.com" ¤È¤·¤Æ¥á¡¼¥ë¤òÁ÷¤ë¤³¤È¤ÎÌäÂêÅÀ¤Ï¡¢"root" ¤ä¾¤Î ¥·¥¹¥Æ¥à¥¢¥«¥¦¥ó¥È°¸¤Î¥á¡¼¥ë¤âÃæ¿´¤È¤Ê¤ë mailhost ¤ËÁ÷¤é¤ì¤Æ¤·¤Þ¤¦ ¤³¤È¤Ç¤¹¡£¤³¤ì¤ò²ò·è¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î "¤¹¤Ù¤Æ¤Ç¤Ï¤Ê¤¯ °ìÉô¤Î¥¢¥«¥¦¥ó¥È¤ò¥í¡¼¥«¥ë¤ËÇÛÁ÷¤¹¤ë" ¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¤¤¤Ä¤âÄ̤ꡢÎã¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤«¤éÊѹ¹¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤ò¼¨¤·¤Þ¤¹¡£

¤Þ¤º¤Ï mailhost °Ê³°¤ÎÀßÄê¤ò¼¨¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¤½¤ÎÀßÄê¤ÎÊý¤¬¥·¥ó¥×¥ë ¤À¤«¤é¤Ç¤¹¡£¤³¤Î¥Þ¥·¥ó¤Ï "user@example.com" ¤È¤·¤Æ¥á¡¼¥ë¤òÁ÷¤ê¡¢ "user@hostname.example.com" °¸¤ÎºÇ½ªÇÛÁ÷Àè¤È¤Ê¤ê¤Þ¤¹¡£

1 /etc/postfix/main.cf:
2     myorigin = $mydomain
3     mynetworks = 127.0.0.0/8 10.0.0.0/24
4     relay_domains =
5     # Optional: forward all non-local mail to mailhost
6     #relayhost = $mydomain

ËÝÌõ:

¼¡¤Ë mailhost ¤ÎÀßÄê¤ò¼¨¤·¤Þ¤¹¡£¤³¤Î¥Þ¥·¥ó¤Ï¥á¡¼¥ë¤ò "user@example.com" ¤È¤·¤ÆÁ÷¤ê¡¢"user@example.com" ¤Ë²Ã¤¨¤Æ "user@hostname.example.com" °¸¤Î ºÇ½ªÇÛÁ÷Àè¤È¤Ê¤ê¤Þ¤¹¡£

 1 DNS:
 2     example.com    IN    MX  10 mailhost.example.com.
 3 
 4 /etc/postfix/main.cf:
 5     myorigin = $mydomain
 6     mydestination = $myhostname localhost.$mydomain localhost $mydomain
 7     mynetworks = 127.0.0.0/8 10.0.0.0/24
 8     relay_domains =
 9     # Optional: forward all non-local mail to firewall
10     #relayhost = [firewall.example.com]

ËÝÌõ:

¤³¤Î¤è¤¦¤Ê´Ä¶­¤Ç¤Ï¡¢¥æ¡¼¥¶¤Ï¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤Ë°Ê²¼¤Î1¤Ä°Ê¾å¤ÎÊýË¡¤Ç ¥¢¥¯¥»¥¹¤·¤Þ¤¹:

ºÇ¸å¤Î¾ì¹ç¡¢¥æ¡¼¥¶¤Ë¤Ï¤½¤ì¤¾¤ì mailhost ¾å¤Ë¹¥¤ß¤Î¥Þ¥·¥ó¤Ë¥á¡¼¥ë¤ò žÁ÷¤¹¤ë¥¨¥¤¥ê¥¢¥¹¤ò»ý¤¿¤»¤Þ¤¹:

/etc/aliases:
    joe:    joe@joes.preferred.machine
    jane:   jane@janes.preferred.machine

¥¨¥¤¥ê¥¢¥¹¥Ç¡¼¥¿¥Ù¡¼¥¹¤¬ /etc/aliases ¤Ë¤Ê¤¤¥·¥¹¥Æ¥à¤â¤¢¤ê¤Þ¤¹¡£ ¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¾å¤Ç¤Î¾ì½ê¤òÃΤë¤Ë¤Ï¡¢"postconf alias_maps" ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ ¤¯¤À¤µ¤¤¡£

aliases ¥Õ¥¡¥¤¥ë¤òÊѹ¹¤¹¤ë¤¿¤Ó¤Ë¥Þ¥ó¥É "newaliases" ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

E¥á¡¼¥ë¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë/¥²¡¼¥È¥¦¥§¥¤¤Î Postfix

¹Í¤¨Êý¤Ï "example.com" °¸¤Î¥á¡¼¥ë¤òÆâÉô¤Î¥²¡¼¥È¥¦¥§¥¤¥Þ¥·¥ó¤ËžÁ÷ ¤¹¤ë¤¬¡¢"anything.example.com" °¸¤Î¥á¡¼¥ë¤òµñÈݤ¹¤ë Postfix E¥á¡¼¥ë ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë/¥²¡¼¥È¥¦¥§¥¤¤ò¹½ÃÛ¤¹¤ë¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£1¤ÄÌäÂ꤬¤¢¤ê¤Þ¤¹¡£ "relay_domains = example.com" ¤È¤¹¤ë¤È¡¢¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÏÄ̾ï "anything.example.com" °¸¤Î¥á¡¼¥ë¤â ¼õ¤±¼è¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤³¤ì¤ÏÀµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£

Ãí°Õ: ¤³¤ÎÎã¤Ë¤Ï Postfix ¥Ð¡¼¥¸¥ç¥ó 2.0 °Ê¹ß¤¬É¬ÍפǤ¹¡£»È¤Ã¤Æ¤¤¤ë Postfix ¤Î¥Ð¡¼¥¸¥ç¥ó¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf mail_version" ¤ò¼Â¹Ô¤·¤Þ¤¹¡£

²òË¡¤Ï¤¤¤¯¤Ä¤«¤ÎÉôʬ¤Ëʬ¤±¤Æ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤ÎºÇ½é¤ÎÉôʬ¤Ç¤Ï¥Õ¥¡¥¤¥¢ ¥¦¥©¡¼¥ë¾å¤Ç¤Î¥í¡¼¥«¥ë¥á¡¼¥ëÇÛÁ÷¤ò¼è¤ê½ü¤­¡¢¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ò²õ¤ì¤Ë¤¯¤¯ ¤·¤Þ¤¹¡£

1 /etc/postfix/main.cf:
2     myorigin = example.com
3     mydestination =
4     local_recipient_maps =
5     local_transport = error:local mail delivery is disabled
6 
7 /etc/postfix/master.cf:
8     Comment out the local delivery agent

ËÝÌõ:

µ»½ÑŪ¤ËÀµ¤·¤¯¤¹¤ë¤¿¤á¡¢¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Ï postmaster@[firewall ip address] °¸¤Î¥á¡¼¥ë¤ò¼õ¤±¼è¤ì¤ë¤è¤¦¤Ë¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Êó¹ð¤Ë¤è¤ë¤È¡¢ ¤³¤Îµ¡Ç½¤¬Â¸ºß¤¹¤ë¤³¤È¤òÁÛÄꤷ¤Æ¤¤¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¤¿¤á²òË¡¤Î 2ÈÖÌܤÎÉôʬ¤Ç¤Ï¡¢ postmaster@[firewall ip address] ¤Î¥µ¥Ý¡¼¥È¤ò²Ã¤¨¡¢ ¤ª¤Þ¤±¤Ë abuse@[firewall ip address] ¤âƱÍͤ˲䨤ޤ¹¡£¤³¤ì¤é2¤Ä¤Î ¥¢¥«¥¦¥ó¥È°¸¤Î¥á¡¼¥ë¤ÏÆâÉô¥¢¥É¥ì¥¹¤ËžÁ÷¤µ¤ì¤Þ¤¹¡£

1 /etc/postfix/main.cf:
2     virtual_alias_maps = hash:/etc/postfix/virtual
3 
4 /etc/postfix/virtual:
5     postmaster      postmaster@example.com
6     abuse           abuse@example.com

ËÝÌõ:

²òË¡¤ÎºÇ¸å¤ÎÉôʬ¤ÇE¥á¡¼¥ë¤ÎžÁ÷¤ò¤ª¤³¤Ê¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤¬¥Õ¥¡¥¤¥¢ ¥¦¥©¡¼¥ëE¥á¡¼¥ëµ¡Ç½¤ÎËÜÍè¤ÎÌÜŪ¤Ç¤¹¡£

 1 /etc/postfix/main.cf:
 2     mynetworks = 127.0.0.0/8 12.34.56.0/24
 3     relay_domains = example.com
 4     parent_domain_matches_subdomains = 
 5         debug_peer_list smtpd_access_maps
 6     smtpd_recipient_restrictions =
 7         permit_mynetworks reject_unauth_destination
 8 
 9     relay_recipient_maps = hash:/etc/postfix/relay_recipients
10     transport_maps = hash:/etc/postfix/transport
11 
12 /etc/postfix/relay_recipients:
13     user1@example.com   x
14     user2@example.com   x
15      . . .
16 
17 /etc/postfix/transport:
18     example.com   smtp:[inside-gateway.example.com]

ËÝÌõ:

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬ db ¤ÎÂå¤ï¤ê¤Ë dbm ¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Î¤Ç¤¢¤ì¤Ð¡¢hash ¤Ç¤Ï¤Ê¤¯ dbm ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Postfix ¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¸¡º÷¥Æ¡¼¥Ö¥ë¤Î ¼ïÎà¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf -m" ¤ò»È¤¤¤Þ¤¹¡£

relay_recipients ¥Æ¡¼¥Ö¥ë¤òÊѹ¹¤·¤¿¸å¤Ï "postmap /etc/postfix/relay_recipients" ¤òɬ¤º¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

transport ¥Æ¡¼¥Ö¥ë¤òÊѹ¹¤·¤¿¸å¤Ï "postmap /etc/postfix/transport" ¤ò ɬ¤º¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

¥¤¥ó¥¹¥È¡¼¥ëÊýË¡¤Ë¤è¤Ã¤Æ¤Ï¡¢¥Þ¥ë¥Á¥Û¡¼¥à¤Î¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¾å¤ÇÆâ¹Ô¤­¤È ³°¹Ô¤­¤Î¥á¡¼¥ë¤ò½èÍý¤¹¤ëÊ̤ÎPostfix¥¤¥ó¥¹¥¿¥ó¥¹¤¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ Æâ¹Ô¤­¤ÎPostfix¥¤¥ó¥¹¥¿¥ó¥¹¤Ë¤Ï¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Î³°Éô¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç ÂÔ¤ÄSMTP¥µ¡¼¥Ð¤¬¤¢¤ê¡¢³°¹Ô¤­¤ÎPostfix¥¤¥ó¥¹¥¿¥ó¥¹¤Ë¤ÏÆâÉô¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç ÂÔ¤ÄSMTP¥µ¡¼¥Ð¤¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¤è¤¦¤ÊÀßÄê¤Ç¤Ï¡¢¤½¤ì¤¾¤ì¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ë Âбþ¤¹¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¥¢¥É¥ì¥¹¤Î¤ß¤ò $inet_interfaces ¤ËÀßÄꤷ¤¿¤¯¤Ê¤ë¤«¤â ¤·¤ì¤Þ¤»¤ó¡£

$inet_interfaces ¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¥Þ¥Ë¥å¥¢¥ë¤Ë¤â½ñ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢ smtp(8) ÇÛÁ÷¥¨¡¼¥¸¥§¥ó¥È¤Ï»ØÄꤵ¤ì¤¿¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹ ¥¢¥É¥ì¥¹¤ò³°¹Ô¤­Àܳ¤Î¥½¡¼¥¹¥¢¥É¥ì¥¹¤È¤·¤Æ»È¤¤¡¢¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Î "¤â¤¦°ìÊý" ¤Î¥Û¥¹¥È¤ËÅþ㤹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤¿¤á¡¢¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¤³¤Î¤è¤¦¤Ë inet_interfaces ¤ò»È¤Ã¤Æ¤â¤¦¤Þ¤¯ Æ°¤­¤Þ¤»¤ó¡£¤½¤Î¾É¾õ¤Ï¡¢¼ÂºÝ¤Ë¤Ïµ¯¤­¤Æ¤¤¤ë¥Û¥¹¥È¤ËÀܳ¤Ç¤­¤Ê¤¤¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£ ¿ä¾©¤µ¤ì¤ë²óÈòÊýË¡¤Ï inet_interfaces ¥Ñ¥é¥á¡¼¥¿¤Î¥É¥­¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ ¤¯¤À¤µ¤¤¡£

¤¹¤Ù¤Æ¤Ç¤Ï¤Ê¤¯°ìÉô¤Î¥¢¥«¥¦¥ó¥È¤ò¥í¡¼¥«¥ë¤Ë ÇÛÁ÷¤¹¤ë

("user@hostname.example.com" ¤Ç¤Ï¤Ê¤¯) "user@example.com" ¤È¤·¤Æ ¥á¡¼¥ë¤òÁ÷¤ë¤³¤È¤ÎÌäÂê¤Ï¡¢"root" ¤ä¤½¤Î¾¤Î¥·¥¹¥Æ¥à¥¢¥«¥¦¥ó¥È°¸¤Î ¥á¡¼¥ë¤âÃæ¿´¤È¤Ê¤ë mailhost ¤ËÁ÷¤é¤ì¤Æ¤·¤Þ¤¦¤³¤È¤Ç¤¹¡£¤½¤Î¤è¤¦¤Ê ¥¢¥«¥¦¥ó¥È¤ò¥í¡¼¥«¥ë¤ËÇÛÁ÷¤¹¤ë¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ë virtual ¥¨¥¤¥ê¥¢¥¹¤ò ÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹:

1 /etc/postfix/main.cf:
2     virtual_alias_maps = hash:/etc/postfix/virtual
3 
4 /etc/postfix/virtual:
5     root     root@localhost
6     . . .

ËÝÌõ:

¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÎÇظå¤ÇÆ°¤¯ Postfix

¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Ç¼é¤é¤ì¤¿¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÇظå¤Ë¤¢¤ë Postfix ¤òÀßÄꤹ¤ë ºÇ¤â¥·¥ó¥×¥ë¤ÊÊýË¡¤Ï¡¢¥á¡¼¥ë¤ò¤¹¤Ù¤Æ¥²¡¼¥È¥¦¥§¥¤¥Û¥¹¥È¤ËÁ÷¤Ã¤Æ¤·¤Þ¤¤¡¢ ¤½¤Î¥á¡¼¥ë¥Û¥¹¥È¤ËÆâÉô¤ª¤è¤Ó³°Éô¤Ø¤ÎžÁ÷¤ÎÌÌÅݤò¸«¤µ¤»¤ë¤³¤È¤Ç¤¹¡£ ¤½¤ÎÎã¤Ï¾å¤Î ¥í¡¼¥«¥ë¥¨¥ê¥¢¥Í¥Ã¥È¥ï¡¼¥¯ ¥»¥¯¥·¥ç¥ó¤Ç¼¨¤·¤Þ¤·¤¿¡£¤è¤êÀöÎý¤µ¤ì¤¿¥¢¥×¥í¡¼¥Á¤Ï¡¢³°Éô¥á¡¼¥ë¤Î¤ß¤ò ¥²¡¼¥È¥¦¥§¥¤¥Û¥¹¥È¤ËÁ÷¤ê¡¢¥¤¥ó¥È¥é¥Í¥Ã¥È¥á¡¼¥ë¤ÏľÀÜÁ÷¤ë¤³¤È¤Ç¤¹¡£ ¤³¤ì¤Ï Wietse ¤¬»Å»ö¤Ç»È¤Ã¤Æ¤¤¤ëÊýË¡¤Ç¤¹¡£

Ãí°Õ: ¤³¤ÎÎã¤Ë¤Ï Postfix ¥Ð¡¼¥¸¥ç¥ó 2.0 °Ê¹ß¤¬É¬ÍפǤ¹¡£»È¤Ã¤Æ¤¤¤ë Postfix ¤Î¥Ð¡¼¥¸¥ç¥ó¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf mail_version" ¤ò¼Â¹Ô¤·¤Þ¤¹¡£

°Ê²¼¤ÎÎã¤Ë¤ÏÀßÄê¤ÎÄɲÃÉôʬ¤ò¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤ò¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÎÁ°È¾¤Ç µÄÏÀ¤·¤¿´ðËÜŪ¤ÊÀßÄê¾ðÊó¤ÈÁȤ߹ç¤ï¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

 1 /etc/postfix/main.cf:
 2     transport_maps = hash:/etc/postfix/transport
 3     relayhost =
 4     # Optional for a machine that isn't "always on"
 5     #fallback_relay = [gateway.example.com]
 6 
 7 /etc/postfix/transport:
 8     # Internal delivery.
 9     example.com      :
10     .example.com     :
11     # External delivery.
12     *                smtp:[gateway.example.com]

ËÝÌõ:

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬ db ¤ÎÂå¤ï¤ê¤Ë dbm ¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Î¤Ç¤¢¤ì¤Ð¡¢hash ¤Ç¤Ï¤Ê¤¯ dbm ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Postfix ¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¸¡º÷¥Æ¡¼¥Ö¥ë¤Î ¼ïÎà¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf -m" ¤ò»È¤¤¤Þ¤¹¡£

transport ¥Æ¡¼¥Ö¥ë¤òÊÔ½¸¤·¤¿¸å¤Ï "postmap /etc/postfix/transport" ¤ò ɬ¤º¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

¥ê¥â¡¼¥È¥µ¥¤¥È¤Î¥×¥é¥¤¥Þ¥ê¤Þ¤¿¤Ï¥Ð¥Ã¥¯¥¢¥Ã¥×MX¥Û¥¹¥È ¤È¤·¤Æ¤ÎPostfix¤ÎÀßÄê

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤ÏÀßÄê¤ÎÄɲÃÉôʬ¤ò¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤ò¤³¤Î ¥É¥­¥å¥á¥ó¥È¤ÎÁ°È¾¤ÇµÄÏÀ¤·¤¿´ðËÜŪ¤ÊÀßÄê¾ðÊó¤ÈÁȤ߹ç¤ï¤»¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬¥ê¥â¡¼¥È¥µ¥¤¥È¤Î¡Ö¥»¥«¥ó¥À¥ê¡×MX ¥Û¥¹¥È¤Î¾ì¹ç¤Ë ¤ä¤é¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤Î¤Ï°Ê²¼¤Î¤³¤È¤À¤±¤Ç¤¹:

 1 DNS:
 2     the.backed-up.domain.tld        IN      MX 100 your.machine.tld.
 3 
 4 /etc/postfix/main.cf:
 5     relay_domains = . . . the.backed-up.domain.tld
 6     smtpd_recipient_restrictions = 
 7         permit_mynetworks reject_unauth_destination
 8 
 9     # NAT/¥×¥í¥­¥·³°Éô¥¢¥É¥ì¥¹¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
10     #proxy_interfaces = 1.2.3.4
11 
12     relay_recipient_maps = hash:/etc/postfix/relay_recipients
13 
14 /etc/postfix/relay_recipients:
15     user1@the.backed-up.domain.tld   x
16     user2@the.backed-up.domain.tld   x
17      . . .

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬¥ê¥â¡¼¥È¥µ¥¤¥È¤Î¡Ö¥×¥é¥¤¥Þ¥ê¡×MX ¥Û¥¹¥È¤Î¾ì¹ç¤Ë¤Ï¡¢ ¾å¤Ë²Ã¤¨¤Æ°Ê²¼¤â¤ª¤³¤Ê¤¤¤Þ¤¹:

18 /etc/postfix/main.cf:
19     transport_maps = hash:/etc/postfix/transport
20 
21 /etc/postfix/transport:
22     the.backed-up.domain.tld       relay:[their.mail.host.tld]

½ÅÍפÊÃí°Õ:

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬ db ¤ÎÂå¤ï¤ê¤Ë dbm ¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Î¤Ç¤¢¤ì¤Ð¡¢hash ¤Ç¤Ï¤Ê¤¯ dbm ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Postfix ¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¸¡º÷¥Æ¡¼¥Ö¥ë¤Î ¼ïÎà¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf -m" ¤ò»È¤¤¤Þ¤¹¡£

transport ¥Æ¡¼¥Ö¥ë¤òÊÔ½¸¤·¤¿¸å¤Ï "postmap /etc/postfix/transport" ¤ò ɬ¤º¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

Postfix < 2.2¤Ø¤ÎÃí°Õ: ¥Ð¥Ã¥¯¥¢¥Ã¥×¤Þ¤¿¤Ï¥×¥é¥¤¥Þ¥êMX¥É¥á¥¤¥ó¤Ø¤Î¥á¡¼¥ë¤ÎÃæ·Ñ»þ¤Ë fallback_relay µ¡Ç½¤ò»È¤ï¤Ê¤¤¤Ç ¤¯¤À¤µ¤¤¡£ºÇ½ªÅª¤ÊÇÛÁ÷Àè¤ËÅþã¤Ç¤­¤Ê¤¤¤È¤­¤Ë¡¢¥á¡¼¥ë¤¬Postfix MX¥Û¥¹¥È¤È fallback_relay ¥Û¥¹¥È¤Î´Ö¤Ç ¥ë¡¼¥×¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

¤³¤ì¤é¤ÏPostfix¥Ð¡¼¥¸¥ç¥ó2.2°Ê¹ß¤Ç¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç¤¹¡£

¥À¥¤¥¢¥ë¥¢¥Ã¥×¥Þ¥·¥ó¾å¤Î Postfix

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤Ï¡¢¤Û¤È¤ó¤É¤Î»þ´Ö¥À¥¦¥ó¤·¤Æ¤¤¤ë¥À¥¤¥¢¥ë¥¢¥Ã¥×Àܳ¤Ë ±þÍѤ·¤Þ¤¹¡£24x7 ¤ÇÀܳ¤·¤Æ¤¤¤ë¥À¥¤¥¢¥ë¥¢¥Ã¥×Àܳ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¾å¤Î ¥í¡¼¥«¥ë¥¨¥ê¥¢¥Í¥Ã¥È¥ï¡¼¥¯ ¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ ¤¯¤À¤µ¤¤¡£

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤ÏÀßÄê¤ÎÄɲÃÉôʬ¤ò¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤ò¤³¤Î¥É¥­¥å¥á¥ó¥È¤Î Á°È¾¤ÇµÄÏÀ¤·¤¿´ðËÜŪ¤ÊÀßÄê¾ðÊó¤ÈÁȤ߹ç¤ï¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

¼«Ê¬¼«¿È¤Î¥Û¥¹¥È̾¤äIP¥¢¥É¥ì¥¹¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç (¤¿¤¤¤Æ¤¤¤Ï¥À¥¤¥¢¥ë¥¢¥Ã¥×¤ä ¥±¡¼¥Ö¥ëTV¡¢DSLÀܳ)¡¢"¼ÂºÝ¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Û¥¹¥È̾¤ò »ý¤¿¤Ê¤¤¥Û¥¹¥È¤Ç¤Î Postfix" ¤Î¥»¥¯¥·¥ç¥ó¤â³Ø½¬¤¹¤ë¤Ù¤­¤Ç¤¹¡£

¼ÂºÝ¤Î¥Û¥¹¥È̾¤ò»ý¤¿¤Ê¤¤¥Û¥¹¥È¤Ç¤ÎPostfix

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ï¼«Ê¬¼«¿È¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Û¥¹¥È̾¤ò»ý¤¿¤Ê¤¤¥Û¥¹¥È¸þ¤±¤Ç¤¹¡£ ¤³¤ì¤é¤Ï¤¿¤¤¤Æ¤¤ DHCP ¤ä¥À¥¤¥¢¥ë¥¢¥Ã¥×¤ÇưŪ IP ¥¢¥É¥ì¥¹¤ò¼èÆÀ¤¹¤ë ¥·¥¹¥Æ¥à¤Ç¤¹¡£Postfix ¤Ï¥Þ¥·¥ó¾å¤Î¥¢¥«¥¦¥ó¥È¤Ë¶õÁÛ¤Î̾Á°¤¬¤¢¤ì¤ÐÌäÂê¤Ê¤¯ ¥á¡¼¥ë¤òÁ÷¼õ¿®¤·¤Þ¤¹¡£¤·¤«¤·¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤Ë¥á¡¼¥ë¤òÁ÷¤ëºÝ¤Ë¤ÏE¥á¡¼¥ë ¥¢¥É¥ì¥¹¤Ë¶õÁÛ¥Û¥¹¥È̾¤ò»È¤¦¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£»È¤Ã¤Æ¤·¤Þ¤¦¤Èï¤â¤½¤Î ¥á¡¼¥ë¤ËÊÖ»ö¤òÊÖ¤»¤Ê¤¤¤«¤é¤Ç¤¹¡£¼ÂºÝ¡¢Â¸ºß¤·¤Ê¤¤¥É¥á¥¤¥ó̾¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò µñÈݤ¹¤ë¥µ¥¤¥È¤ÏÁý¤¨¤Æ¤­¤Æ¤¤¤Þ¤¹¡£

Ãí°Õ: °Ê²¼¤Î¾ðÊó¤ÏPostfix¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë°Í¸¤·¤Þ¤¹¡£»È¤Ã¤Æ¤¤¤ëPostfix¤Î ¥Ð¡¼¥¸¥ç¥ó¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf mail_version" ¤ò¼Â¹Ô¤·¤Þ¤¹¡£

²òË¡1: Postfix version 2.2°Ê¹ß

Postfix 2.2¤Ï¥í¡¼¥«¥ë¤Î¶õÁÛE¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÍ­¸ú¤Ê¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹¤Ç ÃÖ¤­´¹¤¨¤ë¤Î¤Ë generic(5) ¥¢¥É¥ì¥¹¥Þ¥Ã¥Ô¥ó¥°¤ò»È¤¤¤Þ¤¹¡£¤³¤Î¥Þ¥Ã¥Ô¥ó¥°¤Ï ¥á¡¼¥ë¤¬¥Þ¥·¥ó¤ò½Ð¤Æ¹Ô¤¯¤È¤­¡Ö¤Î¤ß¡×¼Â¹Ô¤µ¤ì¤Þ¤¹; Ʊ¤¸¥Þ¥·¥ó¾å¤Î¥æ¡¼¥¶´Ö¤Ç ¥á¡¼¥ë¤òÁ÷¤ë¤È¤­¤Ë¤Ï»È¤ï¤ì¤Þ¤»¤ó¡£

°Ê²¼¤ÎÎã¤ÏÄɲ乤ëÀßÄê¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤ò¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÎÁ°È¾¤ÇµÄÏÀ¤·¤¿ ´ðËÜŪ¤ÊÀßÄê¾ðÊó¤È¹ç¤ï¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

1 /etc/postfix/main.cf:
2     smtp_generic_maps = hash:/etc/postfix/generic
3
4 /etc/postfix/generic:
5     his@localdomain.local             hisaccount@hisisp.example
6     her@localdomain.local             heraccount@herisp.example
7     @localdomain.local                hisaccount+local@hisisp.example

¥ê¥â¡¼¥È¥Û¥¹¥È¤ËSMTP¤Ç¥á¡¼¥ë¤òÁ÷¤ë¾ì¹ç:

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬ db ¤ÎÂå¤ï¤ê¤Ë dbm ¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Î¤Ç¤¢¤ì¤Ð¡¢ hash ¤Ç¤Ï¤Ê¤¯ dbm ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Postfix¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë ¸¡º÷¥Æ¡¼¥Ö¥ë¤Î¼ïÎà¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf -m" ¤ò»È¤¤¤Þ¤¹¡£

generic ¥Æ¡¼¥Ö¥ë¤òÊÔ½¸¤·¤¿¸å¤Ï "postmap /etc/postfix/generic" ¤ò ɬ¤º¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

²òË¡2: Postfix version 2.1°ÊÁ°

Postfix¤Ë¤È¤Ã¤Æ¤Î´°àú¤Ê²ò¤Ï¡¢¥á¡¼¥ë¤¬¥Þ¥·¥ó¤òÎ¥¤ì¤ë¤È¤­¤Ë¡¢¥í¡¼¥«¥ë¤Î ¶õÁÛ E¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÍ­¸ú¤Ê¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Ô¥ó¥°¤¹¤ë¤³¤È¤Ë ¤Ê¤ë¤Ç¤·¤ç¤¦ (Sendmail ¤Î generics ¥Æ¡¼¥Ö¥ë¤Î¤è¤¦¤Ë)¡£¤³¤ì¤Ï¶á¤¤¾­Íè·×²è ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

¤·¤Ð¤é¤¯¤Î´Ö¤Ï¡¢Postfix ¤Ç¤Î²ò¤Ï¤Ç¤­¤ë¤À¤±Í­¸ú¤Ê¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹¤ò »È¤¤¡¢ Postfix ¤ËÍ­¸ú¤Ê¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹¤«¤é¥í¡¼¥«¥ë¤Î¶õÁÛ¥¢¥É¥ì¥¹¤Ë ¥Þ¥Ã¥Ô¥ó¥°¤µ¤»¤ë¤³¤È¤Ç¤¹¡£¤³¤¦¤¹¤ë¤È¡¢¥á¡¼¥ë¤ò¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÁ÷¤Ã¤¿¤ê¡¢ ¼«Ê¬¤ÎÍ­¸ú¤Ê¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥É¥ì¥¹¤ò»ý¤¿¤Ê¤¤¥í¡¼¥«¥ë¶õÁÛ¥¢¥É¥ì¥¹¤Ø¤Î ¥á¡¼¥ë¤ò´Þ¤á¤Æ¡¢¥í¡¼¥«¥ë¤Î¶õÁÛ¥¢¥É¥ì¥¹¤Ë¥á¡¼¥ë¤òÁ÷¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤ÏÀßÄê¤ÎÄɲÃÉôʬ¤ò¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤ò¤³¤Î¥É¥­¥å¥á¥ó¥È¤Î Á°È¾¤ÇµÄÏÀ¤·¤¿´ðËÜŪ¤ÊÀßÄê¾ðÊó¤ÈÁȤ߹ç¤ï¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

 1 /etc/postfix/main.cf:
 2     myhostname = hostname.localdomain
 3     mydomain = localdomain
 4 
 5     canonical_maps = hash:/etc/postfix/canonical
 6 
 7     virtual_alias_maps = hash:/etc/postfix/virtual
 8 
 9 /etc/postfix/canonical:
10     your-login-name    your-account@your-isp.com
11 
12 /etc/postfix/rtual.5.html">virtualeirtual:
13     your-account@your-isp.com       your-login-name

ËÝÌõ:

¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬ db ¤ÎÂå¤ï¤ê¤Ë dbm ¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Î¤Ç¤¢¤ì¤Ð¡¢hash ¤Ç¤Ï¤Ê¤¯ dbm ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Postfix ¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¸¡º÷¥Æ¡¼¥Ö¥ë¤Î ¼ïÎà¤òÃΤë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É "postconf -m" ¤ò»È¤¤¤Þ¤¹¡£

canonical ¥Æ¡¼¥Ö¥ë¤òÊÔ½¸¤·¤¿¸å¤Ï "postmap /etc/postfix/canonical" ¤ò ɬ¤º¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

virtual ¥Æ¡¼¥Ö¥ë¤òÊÔ½¸¤·¤¿¸å¤Ï "postmap /etc/postfix/virtual" ¤òɬ¤º¼Â¹Ô ¤·¤Æ¤¯¤À¤µ¤¤¡£