This file is indexed.

/usr/share/doc/HOWTO/ja-html/Mail-Queue-4.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Linux Mail-Queue mini-HOWTO: e-mail¤ÎÇÛÁ÷</TITLE>
 <LINK HREF="Mail-Queue-3.html" REL=previous>
 <LINK HREF="Mail-Queue.html#toc4" REL=contents>
</HEAD>
<BODY>
¼¡¤Î¥Ú¡¼¥¸
<A HREF="Mail-Queue-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Mail-Queue.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s4">4. e-mail¤ÎÇÛÁ÷</A></H2>

<P>ÅŻҥ᡼¥ë¤ÎÇÛÁ÷¤Ï&quot;sendmail -q&quot;¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç
¹Ô¤ï¤ì¤Þ¤¹¡£sendmail¤¬¹Ô¤Ã¤Æ¤¤¤ë¤³¤È¤Ë¶½Ì£¤¬¤¢¤ë¿Í¤Ï
&quot;sendmail -q -v&quot;¤È¤¹¤ì¤ÐÇÛÁ÷¥×¥í¥»¥¹¤Î·Ð²á¤òɽ¼¨¤·¤Æ¤¯¤ì¤Þ¤¹¡£
<P>[<CODE>-v</CODE>¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æsendmail¤ò¼Â¹Ô¤¹¤ë¤È¡¢
<PRE>
  Running RAA18307 (sequence 1 of 3)
  &lt;user@mail.server.or.jp>... Connecting to mail.server.or.jp. via smtp...
  220 sv220.tk.mmm.ad.jp ESMTP Sendmail 8.8.4+2.7Wbeta4/3.5Wpl1-97120410; Thu
  >>> EHLO your.server.name.jp
  250-sv220.tk.mmm.ad.jp Hello city1DU22.mmm.ad.jp [000.000.000.000], ple
  250-8BITMIME
  250-SIZE
  250-DSN
  250-ONEX
  250-ETRN
  250-XUSR
  250 HELP
  >>> MAIL From:&lt;user@mail.server.or.jp> SIZE=5
  250 &lt;user@mail.server.or.jp>... Sender ok
  >>> RCPT To:&lt;user@mail.server.or.jp>
  250 &lt;user@mail.server.or.jp>... Recipient ok
  >>> DATA
  354 Enter mail, end with "." on a line by itself
  >>> .
  250 RAA15115 Message accepted for delivery
  &lt;user@mail.server.or.jp>... Sent (RAA15115 Message accepted for delivery)
</PRE>

¤È¤¤¤Ã¤¿¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£cron¤Ç¼Â¹Ô¤µ¤ì¤ë¤È½ÐÎÏ·ë²Ì¤Ê¤É¤¬
¥á¡¼¥ë¤ÇÁ÷¿®¤µ¤ì¤ë¤Î¤Ç³Îǧ¤Ê¤É¤Ç¤­¤Þ¤¹¡£
<P>¥á¡¼¥ë¤¬¥í¥Ã¥¯¤µ¤ì¤Æ&quot;sendmail -q -v&quot;¤È¤·¤Æ¤âÁ÷¿®¤µ¤ì¤Ê¤¤
¥±¡¼¥¹¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢<CODE>/etc/rc.d/rc.M</CODE>¤ÇÀßÄꤷ¤Æ¤¤¤ë
sendmail¤Ë<CODE>-q</CODE>¥ª¥×¥·¥ç¥ó¤òÀßÄꤷ¤Æ¤¤¤¿¤ê¡¢¥á¡¼¥é¤Çbody¤ò½ñ¤¤¤Æ¤¤¤ë
»þ¤Ë&quot;sendmail -q&quot;¤¬¼Â¹Ô¤µ¤ì¥í¥Ã¥¯¤µ¤ì¤ë¤Ê¤É¸¶°ø¤ÏÍÍ¡¹¤Ç¤¹¡£
²¿¤«¤è¤¤²ò·èÊýË¡¤¬¤¢¤ì¤Ð¶µ¤¨¤Æ²¼¤µ¤¤¡£
<P><CODE>/var/spool/mqueue</CODE>°Ê²¼¤Ë¥á¡¼¥ë¤Ï¥­¥å¡¼¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤Î¥Õ¥¡¥¤¥ë¤Î
Ãæ¤Ç¥µ¥¤¥º¤¬0byte¤Î¤â¤Î¤¬¤¢¤ë¤È¤½¤Î¥á¡¼¥ë¤Ï¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
Á÷¿®¤µ¤ì¤Ê¤¤¥á¡¼¥ë¤Ï£±½µ´Ö¤¹¤ë¤ÈÁ÷¿®¼Ô¤Ë¥ê¥¿¡¼¥ó¤µ¤ì¤Þ¤¹¡£
<CODE>/var/spool/mqueue</CODE>°Ê²¼¤Î¥á¡¼¥ë¥Õ¥¡¥¤¥ë¤Ç¡¢Æ¬£²Ê¸»ú¤¬
qf¤Î¤â¤Î¤Ï¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¡¢df¤Î¤â¤Î¤Ïbody¡¢xf¤Ï¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë»þ¤Ë¤¢¤ë
¥Õ¥¡¥¤¥ë¤Ç¤¹¡£Æ¬£²Ê¸»ú°Ê²¼¤Î̾Á°¤Ï<CODE>Message Id</CODE>¤Ê¤É¤Çɽ¼¨¤µ¤ì¤ë¤â¤Î
¤Ç¤¹]
<P>¥á¡¼¥ëÇÛÁ÷¤Î¥×¥í¥»¥¹¤ò¼«Æ°²½¤¹¤ë¤³¤È¤Ï´Êñ¤Ç¤¹¡£¤³¤ì¤Ë¤Ïcron¤ò»È¤¤¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.1">4.1 ÆÃÄê¤Î»þ´Ö¤Ë¥á¡¼¥ë¤òÇÛÁ÷¤¹¤ë¤Ë¤Ï¡©</A>
</H2>

<P>crontab¤òÊÔ½¸¤·¤Þ¤¹¡§
<BLOCKQUOTE><CODE>
<PRE>
crontab -e
</PRE>
</CODE></BLOCKQUOTE>

°Ê²¼¤Î¥Õ¥©¡¼¥à¤òÄɲä·¤Þ¤¹¡§
<BLOCKQUOTE><CODE>
<PRE>
05 18-23,0-7    * * Mon,Tue,Wed,Thu,Fri /usr/sbin/sendmail -q
05 *            * * Sat,Sun             /usr/sbin/sendmail -q
</PRE>
</CODE></BLOCKQUOTE>

¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ïcrontab¤Îman¥Ú¡¼¥¸¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤
(&quot;man 5 crontab&quot;¤Ç»²¾È¤Ç¤­¤Þ¤¹)¡£¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¤â¤¦ÌÀ¤é¤«¤Ç¤¹¡£
¾å¤Ç½ñ¤«¤ì¤¿crontab¥¨¥ó¥È¥ê¤ÎÎã¤Ç¤Ï¡¢(¥á¡¼¥ë¤¬¥­¥å¡¼¤Ë¤¢¤ë»þ¤Î¤ß)¥á¡¼¥ë¤ò
³ÆÍËÆü¤Î³Æ»þ´Ö5ʬ¸å(¸á¸å6:05¤Ë¥¹¥¿¡¼¥È¤·¸áÁ°7:05¤Ë¥¹¥È¥Ã¥×)¤ËÁ÷¿®¤·¤Þ¤¹¡£
¤Þ¤¿½µËö¤Ë¤Ï³Æ»þ´Ö5ʬ¸å¤Ë¥á¡¼¥ë¤¬ÇÛÁ÷¤µ¤ì¤Þ¤¹(ÅÚÍËÆü¤Î¸á¸å12:05¤Ë¥¹¥¿¡¼¥È¤·
ÆüÍËÆü¤Î¸á¸å11:05¤Ë¥¹¥È¥Ã¥×)¡£
<P>¥À¥¤¥¢¥ë¥ª¥ó¥Ç¥Þ¥ó¥É¥æ¡¼¥¶¡¼¤È¤·¤Æ¡¢ÆÃÄê¤Î»þ´Ö¤ËPOP3¥×¥í¥È¥³¥ë·Ðͳ¤Ç¥á¡¼¥ë¤ò
¼õ¿®¤·¤¿¤¤¤È»×¤¦¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤½¤³¤Ç°Ê²¼¤Î¥¨¥ó¥È¥ê¤òƱ¤¸¤è¤¦¤Ëcrontab¤Ë
Äɲä·¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
0 21            * * * popclient -3 
-u &lt;¤¢¤Ê¤¿¤ÎPOP3¥æ¡¼¥¶¡¼Ì¾&gt; 
-p &lt;¤¢¤Ê¤¿¤Î¥Ñ¥¹¥ï¡¼¥É&gt; 
-o /var/spool/mail/&lt;¼õ¿®¤·¤¿¥á¡¼¥ë¤ò¼õ¤±¤ë¥·¥¹¥Æ¥à¾å¤Î¥æ¡¼¥¶¡¼Ì¾&gt; 
&lt;mailhost.somedomain.com&gt;
</PRE>
</CODE></BLOCKQUOTE>

¤â¤Á¤í¤ó¤³¤ì¤Ï°ì¹Ô¤Ç½ñ¤«¤ì¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¥¨¥Ç¥£¥¿¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£
crontab¤Ï¤³¤ì¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹(ÌõÃí¡§popclient¤ò»È¤¦¤è¤ê¤âfetchmail
¤Ê¤É¤ò»È¤Ã¤¿¤Û¤¦¤¬¥»¥­¥å¥ê¥Æ¥£¾å¤è¤¤¤È»×¤¤¤Þ¤¹)¡£
<P>[Ìõ¼Ô¡§°Ëº´Ìê  Å¯, <CODE>isaji@mxu.meshnet.or.jp</CODE>
<P>Ìõʸ¤Ë´Ø¤¹¤ë´Ö°ã¤¤¡¢ÉÔÌÀ¤ÊÅÀ¤¬¤¢¤ì¤Ð¤´Ï¢Íí²¼¤µ¤¤¡£]
<P>
<P>
<HR>
¼¡¤Î¥Ú¡¼¥¸
<A HREF="Mail-Queue-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Mail-Queue.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>