(Mainly for Serge, I guess)
Two things:
1) I notice that the SMTPHandler now requires angle brackets around
sender and recipient addresses, per rfc821. But is this what real email
clients always do? Or do we need to accept addresses with or without
angle barackets? I'm not sure how we can establish that.
2) Something seems to have gone amiss in the mailet processing. James
appears to be trying to remotely deliver when it should be locally
delivering and it is munging the sender and therefore failing to send (I
think - still trying to get to grips with new API!). I think the first
issue means RecipientIsLocal is not working, and is related to the
implementation of the new MailetContext and how it interacts with
UserManager. I've no ideas on the second problem.
Cheers,
Charles
Description
I made a brand new James dist and created two users in Remote Manager.
I attempted to send mail to them using user@server, where server is the
name auto-detected by James and used in the SMTP greeting. Previously
James delivered these locally, as expected.
-----------------
Usersetup and mail send are:
[charles@benett1 charles]$ telnet localhost 4555
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
JAMES RemoteAdministration Tool 1.1b1
Please enter your login and password
root
root
Welcome root. HELP for a list of commands
adduser dave dave
User dave added
adduser george george
User george added
listusers
Existing accounts 2
user: dave
user: george
quit
bye
Connection closed by foreign host.
[charles@benett1 charles]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 benett1 SMTP Server (JAMES SMTP Server 1.1b1) ready Wed, 13 Sep 2000
15:07:01 +0000
mail from: <dave@benett1>
250 Sender <dave@benett1> OK
rcpt to: <george@benett1>
250 Recipient <george@benett1> OK
data
354 Ok Send data ending with <CRLF>.<CRLF>
From: Dave
To: George
Subject: Local
Testing local delivery
Dave
.
250 Message received
quit
221 benett1 Service closing transmission channel
Connection closed by foreign host.
-----------
Note the mail addresses both have hosts and the host is the one James is
auto-detecting as itself.
----------------
Console messages is:
Avalon runner
parser : org.apache.xerces.parsers.SAXParser
configurationPath : ../conf/
logFile : ../logs/avalon.log
libPath : ../lib/
blockPath : ./blocks/
Scanning jars for new Blocks...
Reading configuration
Avalon 2.2-dev
2000.09.13 03:06:19 439 Channel default opened
javax.mail.MessagingException: 501 Syntax error in parameters or
arguments
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:707)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:486)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:305)
at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:106)
at
org.apache.james.transport.mailets.RemoteDelivery.service(RemoteDelivery.java:224)
at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:114)
at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:193)
at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:158)
at org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
----------------
mailet log
2000.09.13 03:06:10 934 Channel default opened
2000.09.13 03:06:10 936 Channel Mailets opened
2000.09.13 03:06:19 399 Channel default opened
2000.09.13 03:06:19 401 Channel Mailets opened
2000.09.13 03:08:00 563 (INFO) from Mailets: ToProcessor: Sending mail
org.apache.james.core.MailImpl@2a5330 to transport
2000.09.13 03:08:00 607 (INFO) from Mailets: RemoteDelivery: Remotly
delivering mail Mail968857680563-1
2000.09.13 03:08:00 610 (INFO) from Mailets: RemoteDelivery: Sending
mail to [george@benett1] on benett1
2000.09.13 03:08:00 788 (INFO) from Mailets: RemoteDelivery: Exception
delivering mail: Delivery failure: javax.mail.MessagingException: 501
Syntax error in parameters or arguments
2000.09.13 03:08:00 789 (INFO) from Mailets: RemoteDelivery: Storing
message Mail968857680563-1-to-benett11 into delayed after 1 retries
------
But it should go to LocalDelivery not RemoteDelivery, suggesting
something has gone wrong with RecipientIsLocal. I suspect this is
related to the MailContext interaction with UserManager.
--------
netfile log
2000.09.13 03:06:19 400 Channel SMTP opened
2000.09.13 03:06:19 401 Channel POP3 opened
2000.09.13 03:06:19 401 Channel IMAP opened
2000.09.13 03:06:19 401 Channel RemoteAdmin opened
2000.09.13 03:06:19 796 (INFO) from POP3: POP3Server init...
2000.09.13 03:06:19 798 (INFO) from POP3: POP3Listener using DEFAULT on
port 110
2000.09.13 03:06:19 811 (INFO) from POP3: POP3Server ...init end
2000.09.13 03:06:19 812 (INFO) from SMTP: SMTPServer init...
2000.09.13 03:06:19 814 (INFO) from SMTP: SMTPServer ...init end
2000.09.13 03:06:19 866 (INFO) from RemoteAdmin: RemoteManager init...
2000.09.13 03:06:19 867 (INFO) from RemoteAdmin: RemoteManager using
DEFAULT on port 4555
2000.09.13 03:06:19 871 (INFO) from RemoteAdmin: RemoteManager ...init
end
2000.09.13 03:06:27 315 (INFO) from RemoteAdmin: Access from
localhost.localdomain(127.0.0.1)
2000.09.13 03:06:32 057 (INFO) from RemoteAdmin: Login for root
succesful
2000.09.13 03:06:46 502 (INFO) from RemoteAdmin: User dave added
2000.09.13 03:06:53 497 (INFO) from RemoteAdmin: User george added
2000.09.13 03:06:58 730 (INFO) from RemoteAdmin: Logout for root.
2000.09.13 03:07:01 987 (INFO) from SMTP: Connection from
localhost.localdomain (127.0.0.1)
2000.09.13 03:07:01 987 (DEBUG) from SMTP: Executing handler.
2000.09.13 03:07:15 021 (INFO) from SMTP: Command received: mail from:
<dave@benett1>
2000.09.13 03:07:31 159 (INFO) from SMTP: Command received: rcpt to:
<george@benett1>
2000.09.13 03:07:34 213 (INFO) from SMTP: Command received: data
2000.09.13 03:08:00 430 (INFO) from SMTP: Mail sent to Mail Server
2000.09.13 03:08:00 770 (INFO) from SMTP: Connection from
localhost.localdomain (127.0.0.1)
2000.09.13 03:08:00 770 (DEBUG) from SMTP: Executing handler.
2000.09.13 03:08:00 772 (INFO) from SMTP: Command received: EHLO benett1
2000.09.13 03:08:00 783 (INFO) from SMTP: Command received: MAIL
FROM:<Dave>
2000.09.13 03:08:00 785 (ERROR) from SMTP: Error parsing sender address:
Dave: invalid address
2000.09.13 03:08:03 494 (INFO) from SMTP: Command received: quit
2000.09.13 03:14:00 789 (ERROR) from SMTP: Connection timeout on socket
----
Note that on the fourth from last line the mail from address has lost
the host and is therefore failing.
Cheers,
Charles
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]