doc/ja/man/man8/makemap.8
Hiroyuki Hanai 8384f4bcfc Import Japanese Online Manuals.
The Japanese Manual team(man-jp@jp.FreeBSD.ORG) has translated
and keeps maintaining them.
Submitted by: Kazuo Horikawa <horikawa@isrd.hitachi.co.jp>
1998-02-25 04:54:20 +00:00

218 lines
6.1 KiB
Groff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)makemap.8 8.4 (Berkeley) 7/23/97
.\" jpman %Id: makemap.8,v 1.3 1997/07/26 21:58:03 horikawa Stab %
.\"
.Dd November 16, 1992
.Dt MAKEMAP 8
.Os BSD 4.4
.Sh ̾¾Î
.Nm makemap
.Nd sendmail ÍѤΥǡ¼¥¿¥Ù¡¼¥¹¥Þ¥Ã¥×¤òºîÀ®¤¹¤ë
.Sh ½ñ¼°
.Nm makemap
.Op Fl N
.Op Fl d
.Op Fl f
.Op Fl o
.Op Fl r
.Op Fl v
.Ar maptype
.Ar mapname
.Sh ²òÀâ
.Nm
¤Ï¡¢
.Xr sendmail 8
¤¬¥­¡¼ÉÕ¤­¥Þ¥Ã¥×¤ò¸¡º÷¤¹¤ëºÝ¤ËÍѤ¤¤ë¥Ç¡¼¥¿¥Ù¡¼¥¹¥Þ¥Ã¥×¤òºîÀ®¤·¤Þ¤¹¡£
¤³¤ì¤Ïɸ½àÆþÎϤ«¤éÆÉ¤ß¹þ¤ß¤ò¹Ô¤¤¡¢»ØÄꤵ¤ì¤¿
.Ar mapname
¤Ë½ÐÎϤò¹Ô¤¤¤Þ¤¹¡£
.Pp
¥³¥ó¥Ñ¥¤¥ëÊýË¡¤Ë°Í¸¤·¤Þ¤¹¤¬¡¢
.Nm
¤ÏºÇÂç 3 ¼ïÎà¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¥Õ¥©¡¼¥Þ¥Ã¥È¤ò°·¤¤¤Þ¤¹¡£
°·¤¦¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï
.Ar maptype
¤Ç»ØÄꤷ¤Þ¤¹¡£
.Ar maptype
¤Ë¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£
.Pp
.Bl -tag -width Fl
.It Li dbm
.Tn DBM
¥Õ¥©¡¼¥Þ¥Ã¥È¥Þ¥Ã¥×¡£
.Xr ndbm 3
¥é¥¤¥Ö¥é¥ê¤¬É¬ÍפǤ¹¡£
.It Li btree
B-Tree¥Õ¥©¡¼¥Þ¥Ã¥È¥Þ¥Ã¥×¡£
¿·¤·¤¤ Berkeley
.Xr db 3
¥é¥¤¥Ö¥é¥ê¤¬É¬ÍפǤ¹¡£
.It Li hash
¥Ï¥Ã¥·¥å¥Õ¥©¡¼¥Þ¥Ã¥È¥Þ¥Ã¥×¡£
Ʊ¤¸¤¯
.Xr db 3
¥é¥¤¥Ö¥é¥ê¤¬É¬ÍפǤ¹¡£
.El
.Pp
¤¹¤Ù¤Æ¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¡¢
.Nm makemap
¤Ïɸ½àÆþÎϤ«¤é¶õÇòʸ»ú¤Ç¶èÀÚ¤é¤ì¤¿ 2 ¤Ä¤Îñ¸ì¤òÆÉ¤ß¹þ¤ß¤Þ¤¹¡£
ºÇ½é¤Îñ¸ì¤Ï¥Ç¡¼¥¿¥Ù¡¼¥¹¥­¡¼¤Ç¡¢2ÈÖÌܤÎñ¸ì¤¬¤½¤ÎÃͤǤ¹¡£
Ãͤ¬
``%\fIn\fP''
.Pf ( Ar n
¤Ï¿ô»ú)¤È¤¤¤¦Ê¸»úÎó¤ò´Þ¤ó¤Ç¤¤¤ë¤È¡¢sendmail ¤¬¥Ñ¥é¥á¡¼¥¿ÃÖ´¹¤ò¹Ô¤¤¤Þ¤¹¡£
.Dq %
¤È¤¤¤¦Ê¸»ú¤ò´Þ¤á¤ë¤Ë¤Ï¡¢``%%'' ¤È¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¶õ¹Ô¤ä ``#'' ¤«¤é»Ï¤Þ¤ë¹Ô¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
.Pp
.Ss ¥Õ¥é¥°
.Bl -tag -width Fl
.It Fl N
ʸ»úÎó¤Î½ªÃ¼µ­¹æ¤È¤·¤Æ¡¢¥Ì¥ëʸ»ú¤â¥Þ¥Ã¥×¤Ë´Þ¤á¤Þ¤¹¡£
¤³¤ì¤Ï¡¢sendmail.cf ¤Î ``K'' ¹Ô¤Ë¤ª¤±¤ë \-N ¥Õ¥é¥°¤È°ìÃפ·¤Æ¤¤¤Ê¤±¤ì¤Ð
¤Ê¤ê¤Þ¤»¤ó¡£
.It Fl d
¥Þ¥Ã¥×Ãæ¤Ë½ÅÊ£¤¹¤ë¥­¡¼¤¬Â¸ºß¤¹¤ë¤³¤È¤òµö¤·¤Þ¤¹¡£
B-Tree¥Õ¥©¡¼¥Þ¥Ã¥È¥Þ¥Ã¥×¤Ç¤Î¤ß²Äǽ¤Ç¤¹¡£
2 ¤Ä¤ÎƱ¤¸¥­¡¼¤¬ÆÉ¤Þ¤ì¤¿¾ì¹ç¡¢Î¾Êý¤È¤â¥Þ¥Ã¥×¤ËÁÞÆþ¤µ¤ì¤Þ¤¹¡£
.It Fl f
Ä̾¥­¡¼¤Î¤Ê¤«¤Î¤¹¤Ù¤Æ¤ÎÂçʸ»ú(upper case)¤Ï¡¢
¤¹¤Ù¤Æ¾®Ê¸»ú(lower case)¤È¤·¤Æµ­Ï¿¤µ¤ì¤Þ¤¹¤¬¡¢
¤³¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¤³¤Îưºî¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤Ë»ØÄê¤Ç¤­¤Þ¤¹¡£
¤³¤ì¤Ï¡¢sendmail.cf Ãæ¤Î
\fBK\fP
¹Ô¤Ë¤ª¤±¤ë
\-f ¥Õ¥é¥°¤È°ìÃפ·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
.It Fl o
¤¹¤Ç¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤ËÄɲ䬹Ԥï¤ì¤Þ¤¹¡£
¤¹¤Ç¤Ë¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¤ò°ú¿ô¤È¤·¤Æ»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
.It Fl r
¤¹¤Ç¤Ë¸ºß¤·¤Æ¤¤¤ë¥­¡¼¤òÃÖ¤­´¹¤¨¤Þ¤¹¡£
Ä̾ï¤Ï¤¹¤Ç¤ËÆþÎϤ·¤¿¥­¡¼¤ò¤µ¤é¤Ë·«¤êÊÖ¤·¤ÆÆþÎϤ·¤Æ¤â¡¢
.Nm
¤Ï·Ù¹ð¤ò½ÐÎϤ·¡¢¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë¤Ï¼è¤ê¹þ¤ß¤Þ¤»¤ó¡£
.It Fl v
½èÍý¤ÎÆâÍÆ¤ò¾ÜºÙ¤Ëɽ¼¨¤·¤Þ¤¹¡£
.El
.\" ¤³¤ÎÉôʬ¤Îưºî³Îǧ¤ò FreeBSD2.1.0R ¤Ë¤Æ¹Ô¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
.\" Noritaka Ishizumi <graphite@jp.freebsd.org>
¤³¤Î¥×¥í¥°¥é¥à¤Ï¡¢
.Pa sendmail.cf
¤òºîÀ®¤¹¤ëºÝ¤Ë¡¢¥­¡¼ÉÕ¤­¥Þ¥Ã¥×¤ò»ÈÍѤ¹¤ë
¾ì¹ç¤ËÌò¤ËΩ¤Á¤Þ¤¹¡£
.Pp
FreeBSD ¤Ç»È¤ï¤ì¤Æ¤¤¤ë
.Xr sendmail 8
¤ÏV8¤Ç¤¹¤«¤é¡¢
.Pa sendmail.cf
¤òºîÀ®
¤¹¤ë¤Ë¤Ï¡¢
.Nm cf
(ÆüËÜ¤Ç¤Ï CF ¤Èɽµ­¤µ¤ì¤ë¥Ð¡¼¥¸¥ç¥ó¤¬¤¢¤ë(CF-3.4W2.tar.gz))¤ò»È¤¤¤Þ¤¹¡£
.Ss »ÈÍÑÎã
.Pa /usr/src/usr.sbin/sendmail/cf/cf
¤Ë
.Pa .mc
(¥Þ¥¹¥¿¡¼¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë)¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç¡¢
³Æ¼«¤Î¥Þ¥·¥ó¤Ë¤¢¤ï¤»¤¿ÀßÄê¤ò
.Pa yourhost.mc
¤Ë¹Ô¤¤¡¢``make yourhost.cf''
¤È¤¹¤ë¤³¤È¤Ç
.Pa yourhost.cf
¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£¤³¤ì¤ò
.Pa /etc/sendmail.cf
¤Ê¤É¤Ë¥³¥Ô¡¼¤·¤Æ»ÈÍѤ·¤Þ¤¹(¼ÂºÝ¤Ë»ÈÍѤ¹¤ëÁ°¤Ë¡¢
.Dq sendmail -bt -C./yourhoust.cf
¤Ê¤É¤ò¼Â¹Ô¤·¤Æ
.Pa yourhost.cf
¤¬Àµ¤·¤¯ºîÀ®¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤)¡£
.Pp
¥Û¥¹¥È̾¤À¤±¤Î̾Á°¤«¤é¡¢¥É¥á¥¤¥ó̾ÉÕ¤­¤Î̾Á°¤Ø¥Þ¥Ã¥Ô¥ó¥°¤ò
.Nm sendmail
¤ËÄ󶡤¹¤ë
ÊýË¡¤Îµ­½ÒÎã¤ò¼¨¤·¤Þ¤¹¡£
.Pa yourhost.mc
¤Ë°Ê²¼¤Îµ­½Ò¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£
.Pp
.Bd -literal -offset indent
LOCAL_RULE_3
R$* < @ $+ > $* $: $1 < @ $(hostmap $2 $) > $3
.Ed
.Pp
¤³¤³¤Ç¡¢¥í¡¼¥«¥ë¥ë¡¼¥ë¤òÄêµÁ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÆâÍÆ¤Ï¥Ø¥Ã¥À¤Ë¤âÈ¿±Ç¤µ¤ì¤Þ¤¹¡£
¤µ¤é¤Ë¡¢
.Pp
.Bd -literal -offset indent
LOCAL_CONFIG
Khostmap hash /etc/hostmap.db
Kyplocal nis -m hosts.byname
.Ed
.Pp
¤È¤¤¤¦µ­½Ò¤ò²Ã¤¨¤Æ¤¯¤À¤µ¤¤¡£1¹ÔÌܤϡ¢°Ê²¼¤ÎÀßÄ꤬¥í¡¼¥«¥ë¤ÊÀßÄê¤Ç¤¢¤ë¤³¤È¤ò
¼¨¤·¤Æ¤¤¤Þ¤¹¡£2¹ÔÌܤ¬
.Nm makemap
¤òɬÍפȤ¹¤ëÎã¤Ç¤¹¡£3¹ÔÌܤϡ¢¥Û¥¹¥È̾¤Î
¥Þ¥Ã¥Ô¥ó¥°¤ò
.Tn NIS
¤«¤é¤È¤Ã¤Æ¤­¤Þ¤¹¡£
.Pp
¤³¤ÎÀßÄê¤òÍøÍѤ·¤¿
.Pa sendmail.cf
¤ò¼ÂºÝ¤Ë»È¤¦¤Ë¤Ï¡¢
.Pa /etc/hostmap.db
¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
.Pp
.Bd -literal -offset indent
mercury% cd /etc
mercury% makemap hash hostmap
moon moon.silver-castle.millennium <- ¤â¤Á¤í¤ó²Í¶õ¤Î¥É¥á¥¤¥ó¤Ç¤¹
^D <- ¥³¥ó¥È¥í¡¼¥ë D(EOFʸ»ú)
.Ed
.Pp
¤³¤ì¤Ë¤è¤Ã¤Æ¡¢¤¿¤È¤¨¤Ð¡¢
.Dq tsukino@moon
¤Ï
.Dq tsukino@moon.silver-castle.millennium
¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£¼ÂºÝ¤Î»È¤¤Êý¤Ï¡¢
.Pa .mc
¥Õ¥¡¥¤¥ë¤ÎÀßÄê¤Ë¤è¤Ã¤ÆÊѲ½¤·¤Þ¤¹¡£
.Pa sendmail/cf/README
¤Ê¤É¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
.Sh ´ØÏ¢¹àÌÜ
.Xr sendmail 8
.Sh Îò»Ë
.Nm
¥³¥Þ¥ó¥É¤Ï
.Bx 4.4
¤«¤éÅо줷¤Þ¤·¤¿¡£