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 0D4AD9D30 for ; Tue, 26 Jun 2012 09:04:35 +0000 (UTC) Received: (qmail 90617 invoked by uid 500); 26 Jun 2012 09:04:34 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 90543 invoked by uid 500); 26 Jun 2012 09:04:34 -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 90522 invoked by uid 99); 26 Jun 2012 09:04:34 -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:04:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.238.6.178] (HELO mailrelay011.isp.belgacom.be) (195.238.6.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 09:04:29 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYFALx56U9btyYw/2dsb2JhbABEtiiBCYIYAQEFOBYIIhEIAxcBCQ0BCA8JAwIBAgEfCBYIBggFAgQBAQEBBRQEh24HuSOLMxqCSgGDHwOVMYESjnGCYYFWBw Received: from 48.38-183-91.adsl-static.isp.belgacom.be (HELO localhost) ([91.183.38.48]) by relay.skynet.be with ESMTP; 26 Jun 2012 11:04:07 +0200 MIME-Version: 1.0 X-UserIsAuth: true Received: from 213.246.205.194 (EHLO [10.100.11.96]) ([213.246.205.194]) by srv002 (JAMES SMTP Server ) with ESMTPA ID 1146371930; Tue, 26 Jun 2012 11:04:07 +0200 (CEST) Message-ID: <4FE97B06.9080505@apache.org> Date: Tue, 26 Jun 2012 11:04:06 +0200 From: Eric Charles User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120402 Thunderbird/11.0.1 To: James Users List Subject: Re: Question about empty MAIL FROM References: <020701cd52e8$b8d94730$2a8bd590$@sendthisfile.com> In-Reply-To: <020701cd52e8$b8d94730$2a8bd590$@sendthisfile.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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?) 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='234288323' User='' Invalid email > address while processing DATA. > javax.mail.internet.AddressException: Out of data at position 1 in '' in > string ``'' at position 1 > 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 is > 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=LOGIN PLAIN > 250-PIPELINING > 250-ENHANCEDSTATUSCODES > 250 8BITMIME > MAIL FROM:<> > 250 2.1.0 Sender<> OK > RCPT TO: > 250 2.1.5 Recipient OK > 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 MAIL > 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