cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound e-mail 'user not in contributor group' error

mikkoko
Champ in-the-making
Champ in-the-making
Hi all

I get the following error message when sending e-mail to an Alfresco 3.4.c folder/node: The user 'username' in not in the email contributor group.

I've set the following configuration for Inbound SMTP in Alfresco 3.4.c:

email.inbound.enabled=true
email.inbound.unknownUser=admin
email.server.enabled=true
email.server.port=25
email.server.domain=mydomain.com
I've also added "admin" into the EMAIL_CONTRIBUTORS group.

I thought this should work like this, even if the sending e-mail address is not found in Alfresco, as it states in the Inbound SMTP Email Server Configuration wiki page: "If a matching user is not found, then the current user is set to the "unknownUser" specified by the email.inbound.unknownUser property."

Any ideas?

regards,
Mikko Koivunen

PS: here's a log from the SMTP session

250 Ok
mail from: mikko.koivunen@mydomain.com
250 Ok
rcpt to:3024@hostname.mydomain.com
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: Test2

hello.

.
554 The user 'mikkokoivunen' in not in the email contributor group.
3 REPLIES 3

mikkoko
Champ in-the-making
Champ in-the-making
After further tests I see that when I send e-mail from an outside domain (GMail for example) it does work, the e-mails appear in the Alfresco node.

It does not work when the sender's address is in our company domain.

Somehow the SMTP server tries to guess the user name based on the domain, and in this case the email.inbound.unknownUser setting has no effect?

I tried to work around this by changing the email.server.domain setting to something like "nothing.com" but I still see the same behaviour.

mikkoko
Champ in-the-making
Champ in-the-making
OK I've isolated this a bit further.

The error appears when the e-mail address is found in an existing user in our Active Directory.

Other addresses work, even those containing our local domain.

How can I get this to work? The users that need to send e-mail are mostly those who also have AD accounts and access to Alfresco..

Thanks for any replies.

mpeters
Champ in-the-making
Champ in-the-making
We have the same issue here. As far as I understand Alfresco trys to match the from adress field of the incoming email with the email adresses of the Alfresco user base. If no matching user is found, Alfresco stores the incoming email with the account configured in the email.inbound.unknownUser property, but if Alfresco finds a user with a email adress matching the from adress field of the incoming email, then Alfresco trys to store the email with the account of the matching Alfresco user. So the regarding Alfresco user must have appropriate permissions to store the email within the targeted space.

Thus all user should have at least Contributor permission for the regarding space. So you might try to add the group EVERYONE with the role Contributor to the permission configuration of the regarding space.

In addition the recognized Alfresco user must also belong to the group EMAIL_CONTRIBUTORS .

If you have an idea how to quickly add all (hundreds) Alfresco users to the group EMAIL_CONTRIBUTORS, we would appreciate any hints! Adding the group EMAIL_CONTRIBUTORS to group EVERYONE did not work unfortunately. EDIT: I've recently opened a new thread for this problem here: http://forums.alfresco.com/en/viewtopic.php?f=7&t=37704.

Kind regards,
Markus