🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64483

Re: Mail2News Gateway

#64483
From: Steve
Date: Fri, 21 Mar 2003 13:33
71 lines
4340 bytes
Andrew, my apologies for not replying to your posting sooner, sometimes 
it�s hard to make my girlfriend understand my desire to be in dark dingy 
computer rooms on bright sunny days. :)

Andrew - Supernews wrote:
> here are some suggestions that might make good starting points:
> 
> 1) don't try and support group.name@mail2news type addressing; use a
> single email address for the gateway and require a Newsgroups:
> header. (Besides the obvious issue of email spam, there are just too
> many ways to abuse the gateway otherwise)

No problem with that one, I had already reached the same conclusion with 
regard to the header format.  Having a single Email address for the M2N 
also makes it much easier to apply effective restrictions at the postfix 
level.
> 
> 2) drop anything with "Approved:", "Control:", "Also-Control:" or
> "Supersedes:" headers

I think I will turn around this solution.  Rather than blocking a select 
set of headers, I will strip all but the minimum required for a posting 
to succeed.  This will reduce the maintenance overhead and also the 
opportunities for abuse.

> 
> 3) block access from insecure proxies - this is probably best done at
> the MTA level using as many of the available proxy blacklists as
> possible - e.g. proxies.relays.monkeys.com, opm.blitzed.org, and
> perhaps list.dsbl.org 

Absolutely!  Currently I�m working on postfix v1.x which has good rbl 
filtering capabilities.  However, they are a much improved in postfix 
v2.x and so I will almost certainly upgrade to that in the near future.  
v2.x is still a little new and a new release is appearing quite 
regularly, but I hope this will stabilise before I get close to going 
live.  As well as rbl checks, this also provides good controls for 
checking emails from the freemail services like Hotmail which are 
probably the greatest source for abuse.

> 
> 4) keep a trace header. Some moderators are using an X-Mail-Path:
> header that is largely an imitation of what the old Demon mail2news
> gateway did; I think the code for it is in Russ' News::Gateway
> module. 

This is something new to me so I�ll look into it further.  I intend to 
keep logs of all traffic passing through the gateway as this isn�t 
intended to be any kind of anonymising service.

> 
> 5) be careful with NNTP-Posting-Host. Either leave it absent or,
> possibly, put the IP address of the connecting MTA there; don't allow
> it to be set in any way that the poster has control over. (and don't
> use a random value, either.)

Certainly I will not allow a poster to control this header.  I am 
undecided (having not thought about it until now) whether the best 
option is to include it with the IP of the connecting MTA or to drop it.  
Most likely I think is to drop it.  It aids in abuse control, but I 
would prefer to use other means such as logs to trace abuse.

> 
> 6) drop anything where the Subject: starts "cmsg "

No problem here, I suspect that I will tighten this still further.  For 
example, I might decide to drop any posts starting with Re: that have no 
References.  Another option is to drop posts that change the subject 
within a thread.  These last two are both things that irritate me rather 
than serious abuse solutions I guess. :)
Technical Details
Message-ID: <b5f4bq$3e2$1$830fa17d@news.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
References: <b5a5i6$566$1$8300dec7@news.demon.co.uk> <slrnb7hhsn.2dfb.andrew+nonews@trinity.supernews.net> <b5ajed$nrm$1$8300dec7@news.demon.co.uk> <slrnb7hpa1.2dfb.andrew+nonews@trinity.supernews.net>

Show Full Headers
Complete Article Headers
Message-ID: <b5f4bq$3e2$1$830fa17d@news.demon.co.uk>
Subject: Re: Mail2News Gateway
Date: Fri, 21 Mar 2003 13:33:46 +0000
From: Steve <steve@[nospam]goofer.co.uk>
References: <b5a5i6$566$1$8300dec7@news.demon.co.uk> <slrnb7hhsn.2dfb.andrew+nonews@trinity.supernews.net> <b5ajed$nrm$1$8300dec7@news.demon.co.uk> <slrnb7hpa1.2dfb.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
Newsgroups: news.software.nntp
Lines: 70
NNTP-Posting-Host: biup.demon.co.uk
X-Trace: news.demon.co.uk 1048253626 3522 194.222.183.151 (21 Mar 2003 13:33:46 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 21 Mar 2003 13:33:46 +0000 (UTC)
User-Agent: Xnews/06.02.16