james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: Question about empty MAIL FROM
Date Tue, 26 Jun 2012 09:07:50 GMT
2012/6/26 Eric Charles <eric@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?)

"MAIL FORM: <>" is REQUIRED to work. This is the way DSN bounce are delivered.
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='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.<init>(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:<aaron@nospam.com>
>> 250 2.1.5 Recipient<aaron@nospam.com>  OK
>> DATA
>> 354 Ok Send data ending with<CRLF>.<CRLF>
>> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Mime
View raw message