FreeBSDからは、cron(periodic)が処理したdailyやweeklyなどの結果のメールが届くのだけれど、ふと気づいたら security run outputのメールは来ているのに daily run outputのメールが来ていない。
なんでだろう?と思ってspamフォルダを覗いたら、見事にspamassassinによってspam判定されていた。
postfixでmail queueを削除する方法を調べたところ、
そこで、最初はちまちまコマンドを打っていたのだが、61回もIDを打ってられないので、現時点でqueueに残っているのは全て不要なメールと判断して、以下のコマンドで一気に削除した。(これって、普通にpostfixのコマンドでできそうな気がするので、無駄なことをしていると思われる)
なんでだろう?と思ってspamフォルダを覗いたら、見事にspamassassinによってspam判定されていた。
Spam detection software, running on the system "sv.wizard-limit.net", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Removing stale files from /var/preserve: Cleaning out old system announcements: Removing stale files from /var/rwho: [...] Content analysis details: (8.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: celebdrop-better.info] 1.6 URIBL_WS_SURBL Contains an URL listed in the WS SURBL blocklist [URIs: celebdrop-better.info] 1.2 URIBL_JP_SURBL Contains an URL listed in the JP SURBL blocklist [URIs: celebdrop-better.info] 1.7 URIBL_DBL_SPAM Contains an URL listed in the DBL blocklist [URIs: celebdrop-better.info] 1.6 URIBL_SBL Contains an URL listed in the SBL blocklist [URIs: gorgeous-lovez.info] 1.1 URI_HEX URI: URI hostname has long hexadecimal sequence -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_URIBL_BLACK_OVERLAP T_URIBL_BLACK_OVERLAP 0.0 T_SURBL_MULTI1 T_SURBL_MULTI1 1.1 TO_NO_BRKTS_PCNT To: misformatted + percentageどうも、メール本文に含まれる以下の部分がひっかかったらしい。
Mail in local queue: -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- ・・・(中略)・・・ 1C00B295BA8 4434 Sat Mar 17 02:13:49 MAILER-DAEMON (connect to mail.celebdrop-best.info[219.255.7.7]:25: Connection refused) (伏せ).freemail@celebdrop-best.info ・・・(中略)・・・ -- 309 Kbytes in 61 Requests.本文内のメールアドレスでひっかかるルールにも問題があるような気がするけど、spamassassinのルールは面倒臭くて最近いじってないので、ルールの方はほっておいてmail queue から不要なメールを削除することにする。
postfixでmail queueを削除する方法を調べたところ、
# postsuper -d メールのID(上の例だと1C00B295BA8とか)のようにするらしい。
そこで、最初はちまちまコマンドを打っていたのだが、61回もIDを打ってられないので、現時点でqueueに残っているのは全て不要なメールと判断して、以下のコマンドで一気に削除した。(これって、普通にpostfixのコマンドでできそうな気がするので、無駄なことをしていると思われる)
# mailq | grep MAILER | sed -e 's/ .*//' | xargs -n 1 postsuper -dこれで、平和が訪れてくれると良いんだけど。