/usr/share/doc/HOWTO/ja-html/Pager-13.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Linux Alphanumeric Pager Gateway Mini-HOWTO: sendmail¤ÎÀßÄê</TITLE>
<LINK HREF="Pager-14.html" REL=next>
<LINK HREF="Pager-12.html" REL=previous>
<LINK HREF="Pager.html#toc13" REL=contents>
</HEAD>
<BODY>
<A HREF="Pager-14.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Pager-12.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Pager.html#toc13">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="setupsendmail"></A> <A NAME="s13">13. sendmail¤ÎÀßÄê</A></H2>
<P>¤¤¤¯¤Ä¤«¥¨¥¤¥ê¥¢¥¹¤òºî¤ëɬÍפ¬¤¢¤ê¤½¤Î·ë²Ìsendmail¤Ï
<CODE>you@somemachine.dink.com</CODE>¤È<CODE>you@pager.dink.com</CODE>¤Ë¥á¥Ã¥»¡¼¥¸¤ò
¶èÊ̤·¤ÆÁ÷¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹(somemachine¤Èpager¤Ï¼ÂºÝ¤ÏƱ¤¸¥Þ¥·¥ó¤Ç¤¹)¡£
¤³¤ì¤ò¹Ô¤¦¤¿¤á¤Ësendmail¥¨¥¤¥ê¥¢¥¹¥Ç¡¼¥¿¥Ù¡¼¥¹¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
<P>
<P>
<P>
<OL>
<LI>¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹¡£<CODE>/etc/domainalias</CODE>¤Ïhost̾¡Öpager¡×¤ò
¼ÂºÝ¤Îhost̾¤ËÊÑ´¹¤·¤Þ¤¹¡£Ãø¼Ô¤Î¥Þ¥·¥ó(luckenbach)¤Ç¤ÏÊÑ´¹¥Õ¥¡¥¤¥ë¤Ï
°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡§
<PRE>
chris@pager.unm.edu cjs-pager@luckenbach.unm.edu
droux@pager.unm.edu nicolas-pager@luckenbach.unm.edu
</PRE>
¤³¤ì¤Ï<CODE>/etc/domainalias</CODE>¤Ç¤¹¡£¤³¤ì¤Ç¤Û¤È¤ó¤É¤Ç¤¤Æ¤¤¤Þ¤¹¡£
°Ê²¼¤Î¥¹¥¤¥Ã¥Á¤òÉÕ¤±¤Æ¥³¥ó¥Ñ¥¤¥ë¤·¤¿sendmail¥Ð¥¤¥Ê¥ê¤ò»È¤¤¤Þ¤¹¡¨
<PRE>
-DNDBM -DNEWDB
</PRE>
ºî¤Ã¤¿domainalias.db¥Õ¥¡¥¤¥ë¤òÆɤàɬÍפΤ¢¤ë¥Ç¡¼¥¿¥Ù¡¼¥¹Áàºî¥³¡¼¥É
¤Ëµö²Ä¤òÍ¿¤¨¤Þ¤¹¡£</LI>
<LI>makemap¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬¤¢¤ë¤³¤È¤ò³Îǧ¤·¤Þ¤¹(sendmailÇÛÉۥѥ屡¼¥¸
¤Î°ìÉô¤Ç¤¹)¡£½àÈ÷¤·¤Æ¤¤¤Ê¤«¤Ã¤¿¤é¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤ª¤¤¤Æ²¼¤µ¤¤¡£
¤³¤ì¤ÏɬÍפǤϤʤ¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£hash, dbm, btree¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤è¤¦
¤¬¤Ê¤«¤í¤¦¤¬¥Á¥§¥Ã¥¯¤·¤Æ²¼¤µ¤¤¡£¤³¤ì¤¬¤É¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤Æ¤¤¤ë¤«¤Ä¤®¤Î
¥¹¥Æ¥Ã¥×¤ò¥Á¥§¥Ã¥¯¤·¤Æ²¼¤µ¤¤)
<PRE>
# cd /usr/src/sendmail-8.7.x/makemap
# rm Makefile makemap
# make CFLAGS='-m486 -O2 -I../src -DNDBM -DNEWDB' LDFLAGS='-s
-lgdbm -ldb' makemap
# cp makemap /usr/bin
</PRE>
</LI>
<LI><CODE>/etc/sendmail.cf</CODE>¤Ë°Ê²¼¤Î¹Ô¤òÄɲä·¤Þ¤¹¡£sendmail¤¬
¿·¤·¤¤²¾ÁÛhost̾¤Î¥á¡¼¥ë¤òµö²Ä¤¹¤ë¤¿¤á¤Ç¤¹¡§
<PRE>
Cw pager.yourdomain.com
</PRE>
</LI>
<LI><CODE>/etc/domainaliases</CODE>¤ò¥Ç¡¼¥¿¥Ù¡¼¥¹¥Õ¥©¡¼¥Þ¥Ã¥È¤ËÊÑ´¹¤·¤Þ¤¹¡§
<PRE>
makemap btree domainaliases.db < domainalisaes
</PRE>
</LI>
<LI><CODE>/etc/sendmail.cf</CODE>¤ËÊ̤ιԤòÄɲä·¤Þ¤¹¡£¤³¤ì¤Ï
¥³¥ó¥Ñ¥¤¥ë¤·¤¿ domainaliases.db ÊÑ´¹¥Õ¥¡¥¤¥ë¤òsendmail¤Ë»Ø¼¨¤¹¤ë¤¿¤á¤Ç¤¹¡§
<PRE>
Kdomainaliases btree /etc/domainaliases.db
</PRE>
</LI>
<LI>¥ë¡¼¥ë¥»¥Ã¥È¤Ë¤Ä¤¤¤Æ<CODE>/etc/sendmail.cf</CODE>¤ËÀµ³Î¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¤ò
³Îǧ¤·¤Æ²¼¤µ¤¤¡£¥¨¥ó¥È¥ê¤ÏTAB¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤Þ¤¹¡£SPACE¤Ï»È¤ï¤Ê¤¤¤Ç²¼¤µ¤¤¡ª¡ª
¤³¤ì¤é¤ÏS98¥ë¡¼¥ë¥»¥Ã¥È¤òÁÞÆþ¤·¤Æ¤¤¤Þ¤¹¡£
<UL>
<LI>PRE 8.7.1
<P>
<HR>
<PRE>
R$+ < @ $+ . > $: $1 < @ $2 > .
R$+ < @ $+ . > $* $: (domainaliases $1@$2 $: $1 < @ $2 > $3 $)
R$+ < @ $+ . > $* $: (domainaliases $2 $: $1 < @ $2 > $3 $)
R$+ < @ $+ > . $: $1 < @ $2 . >
</PRE>
<HR>
<P>
</LI>
<LI>POST 8.7.1
<P>
<HR>
<PRE>
R$+< $+. > $1< $2 >
R$+< $+ > $: < > $(domainaliases $1$2 $)
R< > $+ @ $* $: < $1 > $(domainaliases * @ $2 $)
R< $+ > * $* $: < > $1 $2
R< > $* $: $>3 $1
</PRE>
<HR>
</LI>
</UL>
</LI>
<LI>sendmail¥Ç¡¼¥â¥ó¤ò¤¤¤Ã¤¿¤ókill¤·¤ÆºÆ¥¹¥¿¡¼¥È¤·¡¢¿·¤·¤¤ÀßÄê¤ò
͸ú¤Ë¤·¤Þ¤¹¡£
<PRE>
/sbin/killall sendmail
sendmail -bd -q15m
</PRE>
</LI>
<LI>ºÇ¸å¤Ë¿·¤·¤¤ÀßÄ꤬Àµ¤·¤¯¹Ô¤ï¤ì¤ë¤«³Îǧ¤·¤Þ¤¹¡£
¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤Ï<CODE>/var/log/maillog</CODE>¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£
<HR>
<PRE>
lonestar~> sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 0 chris@PAGER.phys.unm.edu
rewrite: ruleset 0 input: chris @ pager . phys . unm . edu
rewrite: ruleset 98 input: chris @ pager . phys . unm . edu
rewrite: ruleset 98 returns: chris @ pager . phys . unm . edu
rewrite: ruleset 97 input: chris @ pager . phys . unm . edu
rewrite: ruleset 3 input: chris @ pager . phys . unm . edu
rewrite: ruleset 96 input: chris < @ pager . phys . unm . edu >
rewrite: ruleset 96 returns: chris < @ pager . phys . unm . edu . >
rewrite: ruleset 3 returns: chris < @ pager . phys . unm . edu . >
rewrite: ruleset 0 input: chris < @ pager . phys . unm . edu . >
rewrite: ruleset 98 input: chris < @ pager . phys . unm . edu . >
rewrite: ruleset 3 input: cjs-pager @ lonestar . phys . unm . edu
rewrite: ruleset 96 input: cjs-pager < @ lonestar . phys . unm . edu >
rewrite: ruleset 96 returns: cjs-pager < @ lonestar . phys . unm . edu . >
rewrite: ruleset 3 returns: cjs-pager < @ lonestar . phys . unm . edu . >
rewrite: ruleset 98 returns: cjs-pager < @ lonestar . phys . unm . edu . >
rewrite: ruleset 0 returns: $# local $: @ cjs-pager
rewrite: ruleset 97 returns: $# local $: @ cjs-pager
rewrite: ruleset 0 returns: $# local $: @ cjs-pager
</PRE>
<HR>
</LI>
<LI>¤â¤·¤³¤ì¤¬¤Á¤ã¤ó¤ÈÆ°ºî¤·¤Ê¤«¤Ã¤¿¤êÍý²ò¤Ç¤¤Ê¤«¤Ã¤¿¾ì¹ç¤Ïsendmail¤Î¥¨¥¥¹¥Ñ¡¼¥È
¤ËÁêÃ̤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£</LI>
</OL>
<P>
<P>
<HR>
<A HREF="Pager-14.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Pager-12.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Pager.html#toc13">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|