🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by D. Stussy Wed, 14 Apr 2010 07:33
Opinion: Mailpost script - edit received header?
#82993
Author: D. Stussy
Date: Wed, 14 Apr 2010 07:33
27 lines
2174 bytes
Generally, we don't edit "Received:" headers in mail.  However, as mail
that goes through the "mailpost" script become articles, I'm considering
that certain received headers should be altered - to protect the gateway.

The alteration:  If the received header contains a "for" clause followed by
a mailbox identity that belongs to the posting server, the "for" clause
should be deleted.

Reason:  To protect the identity of the mailbox that is acting as a
mail-to-news gateway from spammers that scan Usenet by deleting it from
headers it might be specified in (i.e. when it is the only recipient).

Proposal:  Around line 290 of the script, just before the comment "# Random
unknown header....", insert a conditional to edit the received header to
remove the "for" clause.  Something like (syntax inexact/approximate):

    if (/^Received:\s*/sio) {
        s/\s*for\s+\<.+@(.+\.)$INN:Config:fromhost\>//;
    }

Or should this be one of the other variables: domain or pathhost (or a
succession of them until one is defined)?

Comments?


Re: Opinion: Mailpost script - edit received header?
#82994
Author: Grant Taylor
Date: Thu, 15 Apr 2010 00:08
11 lines
1474 bytes
D. Stussy wrote:
> The alteration:  If the received header contains a "for" clause 
> followed by a mailbox identity that belongs to the posting server, 
> the "for" clause should be deleted.

Rather than altering the Received: header, why not simply not include it 
in the message that is being gatewayed to Usenet.



Grant. . . .
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads