7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NNTPサーバについて調べてみた

Last updated at Posted at 2014-12-31

NNTPとは、掲示板のようなもの。NEWSサーバとも呼ばれる。
usenetとも。早い話が2chのようなもの

ダイアルアップ接続の時代にNEWSをダウンロードし読む、
オフラインで書き込んだ記事をNEWSにUPする
といった使い方がされていた模様。

昔はプロバイダが自由に使えるNNTPサーバを提供していたが時代の流れとともに衰退していった。
ググってみた感じ、日本ではどこも提供していない様子。

オフラインのキャッシュ対応と、クライアントソフトを選択出来るのがwebサービスと違うメリットか。

inn2

NNTPサーバ。投稿を記録するサーバ。
設定がsendmail並に見る気がしないカオス。
設定ファイルは /etc/news/ に色々ある。

yum install -y inn
systemctl start innd

leafnode

NNTPサーバに投稿や取得する君。leafnodeには投稿を記録する機能はない。
設定ファイルは /etc/leafnode/config
こちらはまあ読む気になれる。

yum install -y leafnode
systemctl start leafnode.socket

操作

$ telnet localhost 119
  • list
    • グループ一覧取得
  • post
    • 投稿。telnetだと辛いのでThunderbirdから投稿するのが良い。
    • 添付ファイルも投稿可能な様子。

投稿例

$ telnet localhost nntp
post

Newsgroups: junk
Subject: Test
From: mine

This is Test.
.

権限があればこれで投稿できるっぽい。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?