You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Richard Han <rh...@totalcarepharmacy.com> on 2004/08/05 22:16:18 UTC
smtp problem
Please help if you could,
I am new to james, and I'm having a smtp problem when sending email from
an application.
I traced the error message in the src code, it occurs in
SMTPHandler.java, it fails at the point of:
private void doHELO(String argument) {
String responseString = null;
if (argument == null) {
responseString = "501 Domain address required: " +
COMMAND_HELO;
Do you have any clues why SMTP's HELO command's argument is null (I have
very little knowledge of SMTP).
my james config.xml
-------------------
<james>
<servernames autodetect="false" autodetectIP="true">
<servername>localhost</servername>
</servernames>
...
</james>
---------
<processor name="transport">
<mailet match="RemoteAddrNotInNetwork=127.0.0.1,192.168.*"
class="ToProcessor">
<processor> relay-denied </processor>
<notice>550 - Requested action not taken: relaying
denied</notice>
</mailet>
</processor>
----------
<dnsserver>
<servers>
<server>192.168.10.10</server> <=== our company's internal dns
</servers>
<autodiscover>false</autodiscover>
<authoritative>false</authoritative>
</dnsserver>
<smtpserver enabled="true">
<authorizedAddresses>127.0.0.0/8</authorizedAddresses>
</smtpserver>
The following is from smtpserver.log
---------------------------------
05/08/04 13:24:31 DEBUG smtpserver: Using a bounded pool for SMTP
handlers with upper limit 30
05/08/04 13:27:25 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
05/08/04 13:27:25 DEBUG smtpserver: Getting SMTPHandler from pool.
05/08/04 13:27:25 INFO smtpserver: Connection from localhost
(127.0.0.1)
05/08/04 13:27:25 DEBUG smtpserver: Sent: 220 localhost SMTP Server
(JAMES SMTP Server 2.2.0) ready Thu, 5 Aug 2004 13:27:25 -0600 (MDT)
05/08/04 13:27:25 DEBUG smtpserver: Calling start()
05/08/04 13:27:25 DEBUG smtpserver: Watchdog default Worker #5 has time
to sleep 359999
05/08/04 13:27:29 DEBUG smtpserver: Command received: EHLO
05/08/04 13:27:29 DEBUG smtpserver: Sent: 501 Domain address required:
EHLO
05/08/04 13:27:29 DEBUG smtpserver: Calling reset() default Worker #5
05/08/04 13:27:33 DEBUG smtpserver: Command received: HELO
05/08/04 13:27:33 DEBUG smtpserver: Sent: 501 Domain address required:
HELO
05/08/04 13:27:33 DEBUG smtpserver: Calling reset() default Worker #5
05/08/04 13:27:43 DEBUG smtpserver: Calling stop() default Worker #5
05/08/04 13:27:43 DEBUG smtpserver: Closing socket.
05/
Thank you!
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org