From owner-freebsd-ports@FreeBSD.ORG Fri Oct 24 20:29:07 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11649106567E for ; Fri, 24 Oct 2008 20:29:07 +0000 (UTC) (envelope-from news@odo.in-berlin.de) Received: from fallback-mx.in-berlin.de (fallback-mx.in-berlin.de [192.109.42.17]) by mx1.freebsd.org (Postfix) with ESMTP id 8B32C8FC21 for ; Fri, 24 Oct 2008 20:29:06 +0000 (UTC) (envelope-from news@odo.in-berlin.de) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by fallback-mx.in-berlin.de (8.14.3/8.14.3/Debian-5) with ESMTP id m9OKFE9m030985 for ; Fri, 24 Oct 2008 22:15:14 +0200 X-Envelope-From: news@odo.in-berlin.de X-Envelope-To: Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.14.3/8.14.3/Debian-1) with ESMTP id m9OKFEmq025266 for ; Fri, 24 Oct 2008 22:15:14 +0200 Received: (from uucp@localhost) by hirsch.in-berlin.de (8.14.3/8.14.3/Submit) with UUCP id m9OKFEPY025265 for freebsd-ports@freebsd.org; Fri, 24 Oct 2008 22:15:14 +0200 Received: from news by troi.scotty.invalid with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KtT2l-000KGr-2O for freebsd-ports@freebsd.org; Fri, 24 Oct 2008 22:13:59 +0200 To: freebsd-ports@freebsd.org Path: not-for-mail From: Michael Grimm Newsgroups: muc.lists.freebsd.ports Date: Fri, 24 Oct 2008 20:13:59 +0000 (UTC) Organization: ATK - Alternative Tierklinik links der Einfalt Lines: 63 Message-ID: NNTP-Posting-Host: odo.in-berlin.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: odo.in-berlin.de 1224879239 77914 217.197.85.28 (24 Oct 2008 20:13:59 GMT) X-Complaints-To: abuse@odo.in-berlin.de NNTP-Posting-Date: Fri, 24 Oct 2008 20:13:59 +0000 (UTC) Cancel-Lock: sha1:SLXpojfd6hqpAdb39EuUZMXfl/Y= User-Agent: slrn/0.9.9p1/mm/ao (Darwin) Mail-Copies-To: nobody Sender: News Subsystem Subject: freebsd-uucp: rmail fails on email addresses with leading dashes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 20:29:07 -0000 Hi - I recently subscribed to this ML, although reading it quite some time at Usenet. The background for this mail has its origin in a thread in comp.unix.bsd.freebsd.misc, see [1]. I'm receiving my mail via UUCP, thus '/bin/rmail' will be called by '/usr/local/libexec/uucp/uuxqt', and I'm receiving a lot of spam from dumb spammers using guessed email addresses with leading '-' like '-important@example.tld'. (If I'm not mistaken, then localparts with leading dashes are valid ones.) This will result in an uuxqt call ... /bin/rmail -important@example.tld ... with an UUCP error, which is absolutely correct, because rmail doesn't know of any parameter '-important@example.tld'. Workaround is a wrapper script calling 'rmail -- $*'. This has been considered a security issue in [1], and the recommendation was fixing uuxqt to call 'rmail --', instead. Although I volunteered to fix it myself, I have to admit that this would be far beyond my abilities. UUCP looks a rather complicated system to me. I could't find the call to rmail in uuxqt's sourcecode. But, I realized that a so-called 'execute file' is used to tell uuxqt what to do. I tried to modify an example file in a way that rmail might have been called the way I need: 'execute file' example: U mail somename F D.somenameC4X7W I D.somenameC4X7W R spammer@spammers.invalid C rmail -important@example.tld Z I tried to modify it to ... C rmail -- -important@example.tld C rmail '-- -important@example.tld' C rmail "-- -important@example.tld" ... without success: ERROR: Execution: Exit status 64 Well, but ... C rmail '-important@example.tld' ... worked. uux is generating those 'execute files', but now I'm stuck. I can't find where I could patch the sourcecode. And, more importantly, I can't oversee what will break if I could fix it the way I want ... :-( Anyone out there who could help me? This is oooold software, I know ;-) This is all on 6.3-RELEASE, but I'm quite sure its the same with 7.x and 8.x. Regards, Michael [1] http://groups.google.com/group/comp.unix.bsd.freebsd.misc/msg/b653a6cbf387f971 -- to let