james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrick PUPIN (JIRA)" <server-...@james.apache.org>
Subject [jira] [Closed] (JAMES-1703) Can't receive email with Ldap UserRepository
Date Tue, 08 Mar 2016 22:37:41 GMT

     [ https://issues.apache.org/jira/browse/JAMES-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Henrick PUPIN closed JAMES-1703.
    Resolution: Not A Bug

I've solved myself my issue that was a configuration problem.

I use 'uid' attribute for IdentityAttribute. My problem was to have filled the full email
address (login@domain) in the uid field. SMTP and POP3 authentication was working well with
this configuration, not email validation.

The good configuration is (for an user/email : user@domain)
In AD : 
uid =  user

In UserRepository.xml
 <repository name="LocalUsers" 

> Can't receive email with Ldap UserRepository
> --------------------------------------------
>                 Key: JAMES-1703
>                 URL: https://issues.apache.org/jira/browse/JAMES-1703
>             Project: James Server
>          Issue Type: Bug
>          Components: UsersStore & UsersRepository
>    Affects Versions: 3.0.0-beta5
>         Environment: Windows server 2008 R2, Java version 1.7.0_75, Microsoft Windows
Server AD-LDS
>            Reporter: Henrick PUPIN
>            Priority: Blocker
> When using an Ldap user repository, James Server fail to validate email as a local user
and throw the email to "adress-error" folder.
> First, I guess LDAP is correctly configured since I can successfully authenticate to
the mailbox in pop3 with my AD account. 
> Moreover, it works fine when I'm using jpa user repository.
> Here are some parts of my configs : 
> userrepository.xml
> <repository name="LocalUsers" principal="CN=james_user,CN=Applications,CN=Annuaire,DC=MYORG,DC=COM"
credentials="secret" class="org.apache.james.user.ldap.ReadOnlyUsersLDAPRepository" ldapHost="LDAP://myldapserver:389"
userBase="CN=Annuaire,DC=MYORG,DC=COM" userIdAttribute="uid" userObjectClass="user" >
>   <UsersDomain>mydomain.com</UsersDomain>
>   <restriction memberAttribute="member">
>  <group>CN=Users,CN=Roles,CN=Annuaire,DC=MYORG,DC=COM</group>
>   </restriction>
> </repository>
> -----
> smtpserver.xml:
>   - authRequired = true
>   - verifyIdentity = false (if true, smtp connection is refused)
> I have 2 users on my LDAP, with email in uid and email LDAP attributes :
> - user1@mydomain.com
> - user2@mydomain.com
> I try to send an email from user1@mydomain.com to user2@mydomain.com
> My issue : James server don't find the user.
> Stacktrace : 
> INFO  17:57:58,339 | james.smtpserver | Id='32422052' User='' Connection established
> INFO  17:57:59,356 | james.smtpserver | Id='32422052' User='' Successfully spooled mail
Mail1457456279340-e62611b4-ee36-4ec8-bd30-347a8e0e79bb from user1@mydomain.com on swl-stedev-bts4/
for [user2@mydomain.com]
> [...]
> INFO  17:58:12,994 | james.mailetcontext | Storing mail Mail1457456279340-e62611b4-ee36-4ec8-bd30-347a8e0e79bb
in file://var/mail/address-error/
> James also try to find a DSN from postmaster to user1 : this email also fail into address-error.
> Moreover, I have two James server that communicates together. If I send an email from
my second server (that is configured with JPA userrepository), I can receive the DSN failure
with this message : 
> We were unable to deliver the attached message because of an error in the mail server.
> Error message below:
> 550 - Requested action not taken: no such user here
> Is it a configuration problem or is there a real problem with LDAP connector ?

This message was sent by Atlassian JIRA

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

View raw message