- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2017-01-11T01:50:05+09:00","Group2","Group2")
#freeze
#author("2020-05-18T03:26:42+00:00","","")
[[hidekiwiki]]
#html{{
<meta name="description" content="http://fukumoto-tech.serveblog.net/wiki/" /> 
<meta name="description" content="https://fukumoto.tokyo/wiki/" /> 
<meta name="keywords" content="sendmail.メールキュー,確認,削除,遅延,一括,停止,起動,一括削除,mqueue,手順,送受信,メール" /> 
<link rel="canonical" href="http://fukumoto-tech.serveblog.net/wiki/" />
<link rel="canonical" href="https://fukumoto.tokyo/wiki/" />
<br>
<!-- admax -->
<script src="http://adm.shinobi.jp/s/1a0429ab1f292195e9a461469817a0ca"></script>
<script src="https://adm.shinobi.jp/s/1a0429ab1f292195e9a461469817a0ca"></script>
<!-- admax -->
<a href="http://it.blogmura.com/linux/ranking.html" target="_blank"><img src="http://it.blogmura.com/linux/img/linux88_31.gif" width="88" height="31" border="0" alt="にほんブログ村 IT技術ブログ Linuxへ" /></a><br /><a href="http://it.blogmura.com/linux/ranking.html" target="_blank">にほんブログ村</a>
<a href="https://it.blogmura.com/linux/ranking.html" target="_blank"><img src="https://it.blogmura.com/linux/img/linux88_31.gif" width="88" height="31" border="0" alt="にほんブログ村 IT技術ブログ Linuxへ" /></a><br /><a href="https://it.blogmura.com/linux/ranking.html" target="_blank">にほんブログ村</a>
</html>
}}
**現状のメールキューの数を確認 [#v5de0a11]
mailq
----------------------------------------
/var/spool/mqueue is empty
Total requests: 328392
----------------------------------------
**sendmailを停止。 [#hbfaaeee]
/etc/init.d/sendmail stop
**メールキューのディレクトリを再構築 [#jf9f76df]
mv /var/spool/mqueue /var/spool/mqueue.bad
mkdir /var/spool/mqueue
chmod 700 /var/spool/mqueue
/etc/init.d/sendmail start
**mailqがなくなっていることを確認 [#gd5e6413]
mailq
----------------------------------------
/var/spool/mqueue is empty
Total requests: 0
----------------------------------------
**メールの送受信テストをおこない。遅延がないことを確認する [#xaf9ca0d]
**その後、オンタイムでメールキューを一括削除 [#zb56f2e8]
rm -rf /var/spool/mqueue.bad