Return-Path: X-Original-To: apmail-james-server-user-archive@www.apache.org Delivered-To: apmail-james-server-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71E5B9D4B for ; Tue, 26 Jun 2012 09:08:40 +0000 (UTC) Received: (qmail 2262 invoked by uid 500); 26 Jun 2012 09:08:40 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 2221 invoked by uid 500); 26 Jun 2012 09:08:39 -0000 Mailing-List: contact server-user-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Users List" Reply-To: "James Users List" Delivered-To: mailing list server-user@james.apache.org Received: (qmail 2203 invoked by uid 99); 26 Jun 2012 09:08:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 09:08:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache@bago.org designates 209.85.214.49 as permitted sender) Received: from [209.85.214.49] (HELO mail-bk0-f49.google.com) (209.85.214.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 09:08:33 +0000 Received: by bkwj4 with SMTP id j4so5199332bkw.22 for ; Tue, 26 Jun 2012 02:08:12 -0700 (PDT) Received: by 10.204.130.194 with SMTP id u2mr4788329bks.2.1340701691851; Tue, 26 Jun 2012 02:08:11 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id n17sm49779621bkw.5.2012.06.26.02.08.11 (version=SSLv3 cipher=OTHER); Tue, 26 Jun 2012 02:08:11 -0700 (PDT) Received: by lbbgg6 with SMTP id gg6so10452629lbb.22 for ; Tue, 26 Jun 2012 02:08:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding :x-gm-message-state; bh=wHBHsrAWrI5CwsrwoaXKmqSBvuljXtWddttzpJNyj3E=; b=fxd5mndtADwFCV10rVsz6SIrLnIPa1TMgy0T/qABjJkLdZUzfZPKRQfc4/Wne5hAlc kI40f7VJM3xaufwIOxBxF/xSRdB0ZJviztzVDTe9kqa0RB25leXp1HnvO0ik15/2lxuK +veLaMnoluPTIPmQbUcZP47rVHz8vrom8ZgzUfl1XATPSxkLkGuzOKDo3sC0P7OV0QFG OdsMstTblZsamIs/q6ctg5IbAjEwohk2P/oa3PFd5/HCqG6EAjM/w+lui+OhTEF6llUI PgBMMqahV4uCWvpJrOMJHjiZ7T9wX0Eto6//e6Uvnb+ggHkwEzB9ht8ulgXBcFszkyh0 iDgg== Received: by 10.112.86.166 with SMTP id q6mr7214111lbz.6.1340701690523; Tue, 26 Jun 2012 02:08:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.42.33 with HTTP; Tue, 26 Jun 2012 02:07:50 -0700 (PDT) X-Originating-IP: [88.149.210.3] In-Reply-To: <4FE97B06.9080505@apache.org> References: <020701cd52e8$b8d94730$2a8bd590$@sendthisfile.com> <4FE97B06.9080505@apache.org> From: Stefano Bagnara Date: Tue, 26 Jun 2012 11:07:50 +0200 Message-ID: Subject: Re: Question about empty MAIL FROM To: James Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnVA4JezX4+len/pT3b14VhbS7l5up7RgXC+cxoOdaj18Z4SaNh+5LqYf7zkPGUIziebDPd X-Virus-Checked: Checked by ClamAV on apache.org 2012/6/26 Eric Charles : > Hi Aaron, > > Sorry to return you the question, but what does SMTP RFC > (http://www.ietf.org/rfc/rfc2821.txt) tells about empty mails? (is it > allowed?) "MAIL FORM: <>" is REQUIRED to work. This is the way DSN bounce are deliver= ed. Mailservers not supporting this "sender" are listed by http://www.rfc-ignorant.org/ Stefano > In any case, it would be better to a more specific and throw an exception > with a correct readable message. > > Based on your finding, it will be good to open a JIRA on > https://issues.apache.org/jira/browse/JAMES or > https://issues.apache.org/jira/browse/PROTOCOLS (it will depend how/where= we > will fix it). > > Thx, Eric > > > On 06/25/2012 05:39 PM, Aaron Freeman wrote: >> >> On James Server 3.0 beta 4, we are seeing lots of these errors in the >> logs: >> >> >> ERROR 10:31:12,847 | james.smtpserver | Id=3D'234288323' User=3D'' Inval= id >> email >> address while processing DATA. >> javax.mail.internet.AddressException: Out of data at position 1 in '' in >> string ``'' at position 1 >> =A0 =A0 =A0 =A0 at org.apache.mailet.MailAddress.(MailAddress.java= :159) >> >> So I tried to reproduce it and while I can't be 100% sure this is what i= s >> causing it, it does at least reproduce it: >> >> [root@alpha log]# telnet 10.123.123.123 25 >> Trying 10.123.123.123... >> Connected to alpha.nospam.com (10.123.123.123). >> Escape character is '^]'. >> 220 alpha.nospam.com JAMES SMTP Server Server (JAMES SMTP Server ) ready >> EHLO testcomputer.com >> 250-alpha.nospam.com Hello testcomputer.com [10.123.123.123]) >> 250-AUTH LOGIN PLAIN >> 250-AUTH=3DLOGIN PLAIN >> 250-PIPELINING >> 250-ENHANCEDSTATUSCODES >> 250 8BITMIME >> MAIL FROM:<> >> 250 2.1.0 Sender<> =A0OK >> RCPT TO: >> 250 2.1.5 Recipient =A0OK >> DATA >> 354 Ok Send data ending with. >> Subject: Test >> >> Test >> . >> 451 4.0.0 Error processing message: Out of data at position 1 in '' >> quit >> 451 Unable to process request >> Connection closed by foreign host. >> >> Is there a setting that will allow us to process emails with an empty MA= IL >> FROM, or is this just a bug that needs to be submitted somewhere? >> >> Thoughts? >> >> Aaron >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org >> For additional commands, e-mail: server-user-help@james.apache.org >> > > -- > eric | http://about.echarles.net | @echarles > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org > For additional commands, e-mail: server-user-help@james.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org