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 Nuno Palma <l1...@alunos.uevora.pt> on 2004/07/07 15:28:13 UTC

smtp authentication problem in james 2.2.0

Hi,


i'm currently using the new james 2.2.0 and i have configured the
config.xml to use smtp autentication:

  <smtpserver enabled="true">
     <port>25</port>
       <handler>
          <helloName autodetect="false">server1</helloName>
         <!--  Uncomment this if you want to require SMTP authentication.
-->
         <authRequired>true</authRequired>
          <!--  the sender address matches the user who has
authenticated. -->
          <verifyIdentity>true</verifyIdentity>
          <maxmessagesize>0</maxmessagesize>
       </handler>
    </smtpserver>

Now, when i try to send a email to the james smtp server with my outlook
with no client authentication, james accept the mail without problem.
But if i send the email with authentication, with a wrong password,
james reject it.
When i run james the smtpserver log file shows:

07/07/04 12:01:16 INFO  smtpserver: This SMTP server requires
authentication and verifies that the authentication credentials match
the sender address.

It seems that james is not making smtp authentication. Any idea ?

Thanks a lot

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


RE: Could not connect to SMTP host

Posted by John Hornsby <jo...@dsdata.co.uk>.
Thanks Noel,

I'll try an upgrade to 2.2.0, hopefully a painless one.

Hopefully this will also solve some other little problems I have where I
simply cannot seem to reach certain mail destinations from my James server,
but I can from others.  (An example is mail to user@imray.co.uk (which works
fine from other mail servers) but gives me a "Connection refused" error from
my James).

Thanks,

John Hornsby


> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 13 July 2004 20:43
> To: James Users List; John.Hornsby@dsdata.co.uk
> Subject: RE: Could not connect to SMTP host
>
> > Why would I get this?
>
> Because the number of sockets was maxed out, there was a
> temporary network problem, or any number of other things.
> Happens often.  That is why large domains have multiple
> servers, and why we retry transmission.
>
> > Is there anything I can do to get around this?   BTW it
> fails many times
> > over many hours, until it finally gives up.
>
> > James 2.1.2
>
> If you are using James 2.1.2, try using James 2.2.0, which
> does a much better job of trying alternative MX records.
>
> 	--- Noel
>

RE: Could not connect to SMTP host

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Why would I get this?

Because the number of sockets was maxed out, there was a temporary network
problem, or any number of other things.  Happens often.  That is why large
domains have multiple servers, and why we retry transmission.

> Is there anything I can do to get around this?   BTW it fails many times
> over many hours, until it finally gives up.

> James 2.1.2

If you are using James 2.1.2, try using James 2.2.0, which does a much
better job of trying alternative MX records.

	--- Noel


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


Could not connect to SMTP host

Posted by John Hornsby <jo...@dsdata.co.uk>.
Hi,

Why would I get this?:

13/07/04 20:03:28 INFO  James.Mailet: RemoteDelivery: Attempting delivery of
Mail1089740921226-2251-to-aol.com to host mailin-02.mx.aol.com. to addresses
[validEmail@aol.com]
13/07/04 20:03:28 INFO  James.Mailet: RemoteDelivery: Temporary exception
delivering mail (Mail1089740921226-2251-to-aol.com:
javax.mail.MessagingException: Could not connect to SMTP host:
mailin-02.mx.aol.com., port: 25
	at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:899)
	at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:158)
	at javax.mail.Service.connect(Service.java:233)
	at javax.mail.Service.connect(Service.java:134)
	at javax.mail.Service.connect(Service.java:86)
	at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:95)
	at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.jav
a:242)
	at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:68
5)
	at java.lang.Thread.run(Thread.java:536)


Why can't my James connect to the AOL SMTP host?

Is there anything I can do to get around this?   BTW it fails many times
over many hours, until it finally gives up.

The email address being used has worked OK before through this very James
server.

Thanks for your help,

John Hornsby


James 2.1.2 
Windows/XP
Java 1.4.1_05



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


Re: smtp authentication problem in james 2.2.0

Posted by Christian Andersson <ca...@ofs.no>.
Nuno Palma wrote:
> Hi,
> 
> 
> i'm currently using the new james 2.2.0 and i have configured the
> config.xml to use smtp autentication:
> 
>  <smtpserver enabled="true">
>     <port>25</port>
>       <handler>
>          <helloName autodetect="false">server1</helloName>
>         <!--  Uncomment this if you want to require SMTP authentication.
> -->
>         <authRequired>true</authRequired>
>          <!--  the sender address matches the user who has
> authenticated. -->
>          <verifyIdentity>true</verifyIdentity>
>          <maxmessagesize>0</maxmessagesize>
>       </handler>
>    </smtpserver>
> 
> Now, when i try to send a email to the james smtp server with my outlook
> with no client authentication, james accept the mail without problem.
> But if i send the email with authentication, with a wrong password,
> james reject it.
> When i run james the smtpserver log file shows:
> 
> 07/07/04 12:01:16 INFO  smtpserver: This SMTP server requires
> authentication and verifies that the authentication credentials match
> the sender address.
> 
> It seems that james is not making smtp authentication. Any idea ?

Who did you try to send the message to?  yourself? (as you were testing)
  or someone else in the domains that the james server accepts?
if so, james sees outlook as an other mailserver (mail is sent betweeen
servers using the same smtp system) and accepts it, other servers cannot
know about the authentication and tehrefore it is allowed.

if you tried to send it to a different domain, james is using the policy
of accept first, handle later, therefore it might well accept anything
you send to it and process it, but most likelly it will not send it on
to any other servers but trap it within the james server as a spam
attempt.. (you can read more about this behaviour here
<http://wiki.apache.org/james/NoFastFail> )

there is a third alternative, if the above is the only changes you have,
I still think that mail that originates from  the same machine
(localhost/127.0.0.1) are let through nomatter what since that machine
is considered as a "good" machine.  so if you have installed to your own
computer which is also running the mail klient, that could be why it
lets it through...

well, something like that

/Christian Andersson



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