🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87898

Re: INN: Logging username->msgid mappings

#87898
From: Julien ÉLIE
Date: Thu, 06 Dec 2018 20:24
30 lines
2986 bytes
Hi,

> I've set up an INN server to run some local groups. Users are
> authenticated with 'ckpasswd -f'. There's no peering.
> 
> Is there a way to make nnrpd log the authenticated username and the
> MsgID somewhere when a user posts an article? I don't expect problems
> but if somebody decides it would be funny to spoof other posters, I'd
> like to know which user is doing it.

In addition to Paolo's suggestion which would permit logging what you want in the same line, also note that the news.notice log file already contains the relevant information (accross several lines).
For instance, the logs of one of my connection:

21:20 news@trigo /var/log/news/OLD% zgrep 23198 news.notice.14.gz
Nov 22 14:18:36 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr (2a01:cb08:a7:7500:c4ac:f95c:9202:8217) connect - port 563
Nov 22 14:18:36 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr user julien
Nov 22 14:18:36 news nnrpd[23198]: SERVER perl filtering enabled
Nov 22 14:18:36 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr post ok <pt6abc$mku$1@news.trigofacile.com>
Nov 22 14:23:43 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr posts received 1 rejected 0
Nov 22 14:23:43 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr times user 0.068 system 0.016 idle 0.009 elapsed 320.186
Nov 22 14:23:43 news nnrpd[23198]: 2a01cb0800a77500c4acf95c92028217.ipv6.abo.wanadoo.fr time 320191 idle 306944(9) nntpwrite 3(11) 

=> You can see that I authenticated myself as "julien" and posted <pt6abc$mku$1@news.trigofacile.com>.

-- 
Julien ÉLIE

« Il faut mettre un frein à l'immobilisme. »

Technical Details
Message-ID: <puc0io$a4k$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <10bb2d0e-29b9-40a3-80a7-a447274712c1@googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <puc0io$a4k$1@news.trigofacile.com>
Subject: Re: INN: Logging username->msgid mappings
Date: Thu, 6 Dec 2018 21:24:43 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <10bb2d0e-29b9-40a3-80a7-a447274712c1@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 6 Dec 2018 20:24:56 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a775009915e9d4f5bf0763.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:9915:e9d4:f5bf:763";
 logging-data="10388"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0)
 Gecko/20100101 Thunderbird/52.9.1
In-Reply-To: <10bb2d0e-29b9-40a3-80a7-a447274712c1@googlegroups.com>
Content-Language: fr
X-Received-Bytes: 3065
X-Received-Body-CRC: 1427278422