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 "Noel J. Bergman" <no...@devtech.com> on 2003/04/08 19:58:51 UTC
Re: SMTP AUTH sending problem
Matt,
I don't have time to review immediately, but you should set the stmpserver
log to DEBUG and look at the dialog that is logged. Also let us know which
version of James.
--- Noel
-----Original Message-----
From: Matthew Barnes [mailto:carljung@covad.net]
Sent: Tuesday, April 08, 2003 13:28
To: James Users List
Subject: Thx Noel, Re: mail sending problem
I am attempting to send mail using javamail (javax.mail).
The relevant code:
...
boolean DEBUG = true;
Properties p = new Properties();
p.put("mail.smtp.host", "mail._myhost.com");
p.put("mail.smtp.auth", "true");
javax.mail.Session s = javax.mail.Session.getDefaultInstance(p,
null);
s.setPasswordAuthentication(new URLName("mail._myhost.com"), new
PasswordAuthentication("_myuser","_mypass"));
s.setDebug(DEBUG);
...
_myhost, _myuser, and _mypass are all valid.
When I send to a local address everything is ok. If I send to a remote
address, I get an Exception:
javax.mail.SendFailedException: Sending failed; nested exception is:
javax.mail.SendFailedException: Invalid Addresses; nested exception is:
javax.mail.SendFailedException: 530 Authentication Required
On Tuesday 08 April 2003 09:37 am, Noel J. Bergman wrote:
> You'd have to post your code snippet for authenticating with James.
>
> --- Noel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: SMTP AUTH sending problem
Posted by Javier Storni <ja...@512konline.com.ar>.
Problem solved.
Conflict with a DNS server.
Sorry
Javier Storni
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: SMTP AUTH sending problem
Posted by Javier Storni <ja...@512konline.com.ar>.
Yes, I get the same error (always sending with James)
If use another SMTP there is no problem.
Thanks
Javier
----- Original Message -----
From: "Cesar Bonadio" <bo...@picture.com.br>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 09, 2003 12:00 PM
Subject: Re: SMTP AUTH sending problem
> Hello Javier
>
> If you try to send one message to maguilu@terranet.com.ar you
> always receive the error? I tried to send a message and worked fine
> for me no SMTP AUTH was required.
>
> []s
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: SMTP AUTH sending problem
Posted by Cesar Bonadio <bo...@picture.com.br>.
Hello Javier
If you try to send one message to maguilu@terranet.com.ar you
always receive the error? I tried to send a message and worked fine
for me no SMTP AUTH was required.
[]s
----- Original Message -----
From: "Javier Storni" <ja...@512konline.com.ar>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, April 09, 2003 11:22 AM
Subject: Re: SMTP AUTH sending problem
> I also have an SMTP problem. "Some" users cannot send "some" messages to
> another "some" users. It's a bit strange, look at the DEBUG info.
>
> User send a message to various recipients.
> Some of them sent ok, others not.
>
> Here is when the user send the message to James =>
>
> 09/04/03 10:29:31 DEBUG smtpserver: Retrieving a
> org.apache.james.smtpserver.SMTPHandler from the pool
> 09/04/03 10:29:31 DEBUG smtpserver: Getting SMTPHandler from pool.
> 09/04/03 10:29:31 INFO smtpserver: Connection from 200.63.95.195
> (200.63.95.195)
> 09/04/03 10:29:31 DEBUG smtpserver: Sent: 220 pipo SMTP Server (JAMES SMTP
> Server 2.1.2) ready Wed, 9 Apr 2003 10:29:31 -0300 (GMT-03:00)
> 09/04/03 10:29:31 DEBUG smtpserver: Calling start()
> 09/04/03 10:29:31 DEBUG smtpserver: Watchdog default Worker #21 has time
to
> sleep 360000
> 09/04/03 10:29:31 DEBUG smtpserver: Command received: EHLO 1
> 09/04/03 10:29:31 DEBUG smtpserver: Sent: 250-pipo Hello 1 (200.63.95.195
> [200.63.95.195])
> 09/04/03 10:29:31 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
> 09/04/03 10:29:31 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
> 09/04/03 10:29:31 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:31 DEBUG smtpserver: Command received: AUTH LOGIN
> 09/04/03 10:29:31 DEBUG smtpserver: Sent: 334 VXNlcm5hbWU6
> 09/04/03 10:29:32 DEBUG smtpserver: Sent: 334 UGFzc3dvcmQ6
> 09/04/03 10:29:32 DEBUG smtpserver: AUTH method LOGIN succeeded
> 09/04/03 10:29:32 DEBUG smtpserver: Sent: 235 Authentication Successful
> 09/04/03 10:29:32 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:32 DEBUG smtpserver: Command received: MAIL FROM:
> <in...@paraisoserrano.com.ar>
> 09/04/03 10:29:32 DEBUG smtpserver: Sent: 250 Sender
> <in...@paraisoserrano.com.ar> OK
> 09/04/03 10:29:32 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:32 DEBUG smtpserver: Command received: RCPT TO:
> <ma...@yahoo.com.ar>
> 09/04/03 10:29:32 DEBUG smtpserver: Sent: 250 Recipient
> <ma...@yahoo.com.ar> OK
> 09/04/03 10:29:32 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:33 DEBUG smtpserver: Command received: RCPT TO:
> <ma...@terranet.com.ar>
> 09/04/03 10:29:33 DEBUG smtpserver: Sent: 250 Recipient
> <ma...@terranet.com.ar> OK
> 09/04/03 10:29:33 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:33 DEBUG smtpserver: Command received: RCPT TO:
> <pa...@yahoo.com.ar>
> 09/04/03 10:29:33 DEBUG smtpserver: Sent: 250 Recipient
> <pa...@yahoo.com.ar> OK
> 09/04/03 10:29:33 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:33 DEBUG smtpserver: Command received: RCPT TO:
> <sa...@hotmail.com>
> 09/04/03 10:29:33 DEBUG smtpserver: Sent: 250 Recipient
> <sa...@hotmail.com> OK
> 09/04/03 10:29:33 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:34 DEBUG smtpserver: Command received: DATA
> 09/04/03 10:29:34 DEBUG smtpserver: Sent: 354 Ok Send data ending with
> <CRLF>.<CRLF>
> 09/04/03 10:29:34 DEBUG smtpserver: Successfully spooled
> mail )Mail1049894974636-15 from info@paraisoserrano.com.ar for
> [ma_ma_gui_lu@yahoo.com.ar, maguilu@terranet.com.ar,
> paraisoserrano@yahoo.com.ar, sansaloneluis@hotmail.com]
> 09/04/03 10:29:34 DEBUG smtpserver: Sent: 250 Message received
> 09/04/03 10:29:34 DEBUG smtpserver: Calling reset() default Worker #21
> 09/04/03 10:29:35 DEBUG smtpserver: Command received: QUIT
> 09/04/03 10:29:35 DEBUG smtpserver: Sent: 221 pipo Service closing
> transmission channel
> 09/04/03 10:29:35 DEBUG smtpserver: Calling stop() default Worker #21
> 09/04/03 10:29:35 DEBUG smtpserver: Closing socket.
> 09/04/03 10:29:35 DEBUG smtpserver: Calling disposeWatchdog() default
Worker
> #21
> 09/04/03 10:29:35 DEBUG smtpserver: Returning SMTPHandler to pool.
> 09/04/03 10:29:35 DEBUG smtpserver: Returning a
> org.apache.james.smtpserver.SMTPHandler to the pool
> 09/04/03 10:29:35 DEBUG smtpserver: Watchdog default Worker #21 is exiting
> run().
>
>
> Here is when James send messages to the recipients =>
>
> 09/04/03 10:30:35 DEBUG smtpserver: Retrieving a
> org.apache.james.smtpserver.SMTPHandler from the pool
> 09/04/03 10:30:35 DEBUG smtpserver: Getting SMTPHandler from pool.
> 09/04/03 10:30:35 INFO smtpserver: Connection from
> webmail.512konline.com.ar (200.63.64.13)
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 220 pipo SMTP Server (JAMES SMTP
> Server 2.1.2) ready Wed, 9 Apr 2003 10:30:35 -0300 (GMT-03:00)
> 09/04/03 10:30:35 DEBUG smtpserver: Calling start()
> 09/04/03 10:30:35 DEBUG smtpserver: Watchdog default Worker #27 has time
to
> sleep 360000
> 09/04/03 10:30:35 DEBUG smtpserver: Command received: HELO pipo
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 250-pipo Hello pipo
> (webmail.512konline.com.ar [200.63.64.13])
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
> 09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
> 09/04/03 10:30:35 DEBUG smtpserver: Command received: MAIL
> FROM:<in...@paraisoserrano.com.ar>
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 250 Sender
> <in...@paraisoserrano.com.ar> OK
> 09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
> 09/04/03 10:30:35 DEBUG smtpserver: Command received: RCPT
> TO:<ma...@terranet.com.ar>
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 530 Authentication Required
> 09/04/03 10:30:35 ERROR smtpserver: Rejected message - authentication is
> required for mail request
> 09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
> 09/04/03 10:30:35 DEBUG smtpserver: Command received: RSET
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 250 OK
> 09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
> 09/04/03 10:30:35 DEBUG smtpserver: Command received: QUIT
> 09/04/03 10:30:35 DEBUG smtpserver: Sent: 221 pipo Service closing
> transmission channel
> 09/04/03 10:30:35 DEBUG smtpserver: Calling stop() default Worker #27
> 09/04/03 10:30:35 DEBUG smtpserver: Closing socket.
> 09/04/03 10:30:35 DEBUG smtpserver: Calling disposeWatchdog() default
Worker
> #27
> 09/04/03 10:30:35 DEBUG smtpserver: Returning SMTPHandler to pool.
> 09/04/03 10:30:35 DEBUG smtpserver: Returning a
> org.apache.james.smtpserver.SMTPHandler to the pool
> 09/04/03 10:30:35 DEBUG smtpserver: Watchdog default Worker #27 is exiting
> run().
> 09/04/03 10:35:11 DEBUG smtpserver: Retrieving a
> org.apache.james.smtpserver.SMTPHandler from the pool
>
> Take note: smtp for terranet.com.ar doesn't have smtp auth.
>
> Thanks a lot, in advance.
>
> Javier Storni
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org
Re: SMTP AUTH sending problem
Posted by Javier Storni <ja...@512konline.com.ar>.
I also have an SMTP problem. "Some" users cannot send "some" messages to
another "some" users. It's a bit strange, look at the DEBUG info.
User send a message to various recipients.
Some of them sent ok, others not.
Here is when the user send the message to James =>
09/04/03 10:29:31 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
09/04/03 10:29:31 DEBUG smtpserver: Getting SMTPHandler from pool.
09/04/03 10:29:31 INFO smtpserver: Connection from 200.63.95.195
(200.63.95.195)
09/04/03 10:29:31 DEBUG smtpserver: Sent: 220 pipo SMTP Server (JAMES SMTP
Server 2.1.2) ready Wed, 9 Apr 2003 10:29:31 -0300 (GMT-03:00)
09/04/03 10:29:31 DEBUG smtpserver: Calling start()
09/04/03 10:29:31 DEBUG smtpserver: Watchdog default Worker #21 has time to
sleep 360000
09/04/03 10:29:31 DEBUG smtpserver: Command received: EHLO 1
09/04/03 10:29:31 DEBUG smtpserver: Sent: 250-pipo Hello 1 (200.63.95.195
[200.63.95.195])
09/04/03 10:29:31 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
09/04/03 10:29:31 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
09/04/03 10:29:31 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:31 DEBUG smtpserver: Command received: AUTH LOGIN
09/04/03 10:29:31 DEBUG smtpserver: Sent: 334 VXNlcm5hbWU6
09/04/03 10:29:32 DEBUG smtpserver: Sent: 334 UGFzc3dvcmQ6
09/04/03 10:29:32 DEBUG smtpserver: AUTH method LOGIN succeeded
09/04/03 10:29:32 DEBUG smtpserver: Sent: 235 Authentication Successful
09/04/03 10:29:32 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:32 DEBUG smtpserver: Command received: MAIL FROM:
<in...@paraisoserrano.com.ar>
09/04/03 10:29:32 DEBUG smtpserver: Sent: 250 Sender
<in...@paraisoserrano.com.ar> OK
09/04/03 10:29:32 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:32 DEBUG smtpserver: Command received: RCPT TO:
<ma...@yahoo.com.ar>
09/04/03 10:29:32 DEBUG smtpserver: Sent: 250 Recipient
<ma...@yahoo.com.ar> OK
09/04/03 10:29:32 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:33 DEBUG smtpserver: Command received: RCPT TO:
<ma...@terranet.com.ar>
09/04/03 10:29:33 DEBUG smtpserver: Sent: 250 Recipient
<ma...@terranet.com.ar> OK
09/04/03 10:29:33 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:33 DEBUG smtpserver: Command received: RCPT TO:
<pa...@yahoo.com.ar>
09/04/03 10:29:33 DEBUG smtpserver: Sent: 250 Recipient
<pa...@yahoo.com.ar> OK
09/04/03 10:29:33 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:33 DEBUG smtpserver: Command received: RCPT TO:
<sa...@hotmail.com>
09/04/03 10:29:33 DEBUG smtpserver: Sent: 250 Recipient
<sa...@hotmail.com> OK
09/04/03 10:29:33 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:34 DEBUG smtpserver: Command received: DATA
09/04/03 10:29:34 DEBUG smtpserver: Sent: 354 Ok Send data ending with
<CRLF>.<CRLF>
09/04/03 10:29:34 DEBUG smtpserver: Successfully spooled
mail )Mail1049894974636-15 from info@paraisoserrano.com.ar for
[ma_ma_gui_lu@yahoo.com.ar, maguilu@terranet.com.ar,
paraisoserrano@yahoo.com.ar, sansaloneluis@hotmail.com]
09/04/03 10:29:34 DEBUG smtpserver: Sent: 250 Message received
09/04/03 10:29:34 DEBUG smtpserver: Calling reset() default Worker #21
09/04/03 10:29:35 DEBUG smtpserver: Command received: QUIT
09/04/03 10:29:35 DEBUG smtpserver: Sent: 221 pipo Service closing
transmission channel
09/04/03 10:29:35 DEBUG smtpserver: Calling stop() default Worker #21
09/04/03 10:29:35 DEBUG smtpserver: Closing socket.
09/04/03 10:29:35 DEBUG smtpserver: Calling disposeWatchdog() default Worker
#21
09/04/03 10:29:35 DEBUG smtpserver: Returning SMTPHandler to pool.
09/04/03 10:29:35 DEBUG smtpserver: Returning a
org.apache.james.smtpserver.SMTPHandler to the pool
09/04/03 10:29:35 DEBUG smtpserver: Watchdog default Worker #21 is exiting
run().
Here is when James send messages to the recipients =>
09/04/03 10:30:35 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
09/04/03 10:30:35 DEBUG smtpserver: Getting SMTPHandler from pool.
09/04/03 10:30:35 INFO smtpserver: Connection from
webmail.512konline.com.ar (200.63.64.13)
09/04/03 10:30:35 DEBUG smtpserver: Sent: 220 pipo SMTP Server (JAMES SMTP
Server 2.1.2) ready Wed, 9 Apr 2003 10:30:35 -0300 (GMT-03:00)
09/04/03 10:30:35 DEBUG smtpserver: Calling start()
09/04/03 10:30:35 DEBUG smtpserver: Watchdog default Worker #27 has time to
sleep 360000
09/04/03 10:30:35 DEBUG smtpserver: Command received: HELO pipo
09/04/03 10:30:35 DEBUG smtpserver: Sent: 250-pipo Hello pipo
(webmail.512konline.com.ar [200.63.64.13])
09/04/03 10:30:35 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
09/04/03 10:30:35 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
09/04/03 10:30:35 DEBUG smtpserver: Command received: MAIL
FROM:<in...@paraisoserrano.com.ar>
09/04/03 10:30:35 DEBUG smtpserver: Sent: 250 Sender
<in...@paraisoserrano.com.ar> OK
09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
09/04/03 10:30:35 DEBUG smtpserver: Command received: RCPT
TO:<ma...@terranet.com.ar>
09/04/03 10:30:35 DEBUG smtpserver: Sent: 530 Authentication Required
09/04/03 10:30:35 ERROR smtpserver: Rejected message - authentication is
required for mail request
09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
09/04/03 10:30:35 DEBUG smtpserver: Command received: RSET
09/04/03 10:30:35 DEBUG smtpserver: Sent: 250 OK
09/04/03 10:30:35 DEBUG smtpserver: Calling reset() default Worker #27
09/04/03 10:30:35 DEBUG smtpserver: Command received: QUIT
09/04/03 10:30:35 DEBUG smtpserver: Sent: 221 pipo Service closing
transmission channel
09/04/03 10:30:35 DEBUG smtpserver: Calling stop() default Worker #27
09/04/03 10:30:35 DEBUG smtpserver: Closing socket.
09/04/03 10:30:35 DEBUG smtpserver: Calling disposeWatchdog() default Worker
#27
09/04/03 10:30:35 DEBUG smtpserver: Returning SMTPHandler to pool.
09/04/03 10:30:35 DEBUG smtpserver: Returning a
org.apache.james.smtpserver.SMTPHandler to the pool
09/04/03 10:30:35 DEBUG smtpserver: Watchdog default Worker #27 is exiting
run().
09/04/03 10:35:11 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
Take note: smtp for terranet.com.ar doesn't have smtp auth.
Thanks a lot, in advance.
Javier Storni
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org