Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1346

Validate recipient handler does not look up local users from LDAP when using ReadOnlyUsersLDAPRepository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta3
    • None
    • None
    • mac os x 10.6.8

    Description

      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
      nele@afis.europa.eu
      guru@afis.europa.eu

      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 <guru@afis.europa.eu> OK
      rcpt to:<nele>
      550 5.1.1 Unknown user: nele@afis.europa.eu

      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: nele@afis.europa.eu]
      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            guru.rajeev@gmail.com Rajeev Guru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: