[
https://issues.apache.org/jira/browse/JAMES-1346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Tellier closed JAMES-1346.
---------------------------------
Resolution: Fixed
Fixed?
Successfully uses LDAP + ValidRcptHandler on James 3.7.0-SNAPSHOT
Please upgrade to a more recent James version, reopen if still relevant.
Regards, Benoit
> Validate recipient handler does not look up local users from LDAP when using
> ReadOnlyUsersLDAPRepository
> ---------------------------------------------------------------------------------------------------------
>
> Key: JAMES-1346
> URL: https://issues.apache.org/jira/browse/JAMES-1346
> Project: James Server
> Issue Type: Bug
> Components: SMTPServer, UsersStore & UsersRepository
> Affects Versions: 3.0-beta3
> Environment: mac os x 10.6.8
> Reporter: Rajeev Guru
> Priority: Major
>
> Tried to set up apache james with apache DS LDAP.
> After starting the server , using JMX handlers issued the following command
> Rajeev-Gurus-MacBook-Air:apache-james-3.0-beta3 rajeevguru$
> ./bin/james-cli.sh -h localhost -p 9999 listusers
> [email protected]
> [email protected]
> listusers command executed sucessfully in 178 ms.
> JAMES server successfully executed and listed the users from LDAP.
> When I try to send a email locally from one user to another, I cannot send as
> it says unknown users. See below the telnet command issued
> Rajeev-Gurus-MacBook-Air:apache-james-3.0-beta3 rajeevguru$ telnet localhost
> 5025
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 Rajeev-Gurus-MacBook-Air.local SMTP Server (JAMES SMTP Server) ready Tue,
> 15 Nov 2011 06:42:51 +0100 (CET)
> ehlo test
> 250-Rajeev-Gurus-MacBook-Air.local Hello test (localhost [127.0.0.1])
> 250-PIPELINING
> 250-ENHANCEDSTATUSCODES
> 250 8BITMIME
> mail from:<guru>
> 250 2.1.0 Sender <[email protected]> OK
> rcpt to:<nele>
> 550 5.1.1 Unknown user: [email protected]
> The extract from the server logs
> Rajeev-Gurus-MacBook-Air:apache-james-3.0-beta3 rajeevguru$ tail -f
> ./log/james-server.log
> DEBUG 06:43:26,912 | james.smtpserver | ID=92692649 executing hook
> org.apache.james.protocols.smtp.core.log.HookResultLogger@511192bd
> INFO 06:43:26,913 | james.smtpserver | ID=92692649
> org.apache.james.smtpserver.fastfail.ValidRcptHandler: result=2 (DENY)
> DEBUG 06:43:26,913 | james.smtpserver | ID=92692649 executing hook
> org.apache.james.smtpserver.jmx.HookResultJMXMonitor@58b8dfdf
> INFO 06:43:26,913 | james.smtpserver | ID=92692649
> org.apache.james.smtpserver.JamesRcptCmdHandler: 550 [5.1.1 Unknown user:
> [email protected]]
> DEBUG 06:43:26,913 | james.smtpserver | ID=92692649
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
> disconnect=false
> DEBUG 06:44:35,495 | james.smtpserver | ID=92692649
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
> received: quit
> DEBUG 06:44:35,495 | james.smtpserver | ID=92692649 Lookup command handler
> for command: QUIT
> DEBUG 06:44:35,495 | james.smtpserver | ID=92692649
> org.apache.james.protocols.smtp.core.QuitCmdHandler: 221 [2.0.0
> Rajeev-Gurus-MacBook-Air.local Service closing transmission channel]
> DEBUG 06:44:35,496 | james.smtpserver | ID=92692649
> org.apache.james.protocols.smtp.core.SMTPCommandDispatcherLineHandler
> disconnect=false
> INFO 06:44:35,499 | james.smtpserver | ID=92692649 Connection closed for
> localhost (127.0.0.1)
> I have tried the same using a JPA user repository and validation works as
> expected
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]