https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-10-08T12:46:20ZRedmineRedmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=211622010-10-08T12:46:20ZSimen Endsjø
<ul></ul><p>I have the exact same problem in 1.0.2<br />Nothing is written to procuction.log either.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=211642010-10-08T13:35:54ZSimen Endsjø
<ul></ul><p>I have ldap enabled, and it seems this might be a problem.<br />If a user registered in ldap sends an email, the user is created as an internal user - not connected to ldap. Any users outside of ldap doesn't get added.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=211702010-10-08T16:08:13ZFelix Schäfer
<ul></ul><p><code>unknown_user=create</code> will create a user based on the incoming email, but the user will only have the <em>non member</em> role, which might not be permission enough to create an issue in whatever project you're trying to throw it in. Add something like <code>no_permission_check=true</code> if you want redmine to not check the permissions of the sender.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=211902010-10-09T12:18:52ZSimen Endsjø
<ul></ul><p>The problem is that unknown_user=create doesn't create a user at all.<br />I've also tried no_permission_check, but still no user is created.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=211912010-10-09T12:49:14ZFelix Schäfer
<ul></ul><p>Do you have any user custom fields that are required? I.e. can a user be created by only entering a first, lastname and mail address?</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212102010-10-11T07:34:37ZSimen Endsjø
<ul></ul><p>The required fields are the default ones: login, firstname, lastname, email and password.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212192010-10-11T10:31:32ZFelix Schäfer
<ul></ul><p>Then I have no idea… Is the system maybe set to require the admin to confirm new registration?</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212212010-10-11T11:15:33ZSimen Endsjø
<ul></ul><p>Nope. I'm pretty sure this has something to do with LDAP authentication.</p>
<p>If an unknown email is picked up AND the email exists in ldap, the user is created.<br />The user is then created as an internal user and not linked to ldap at all.</p>
<p>If an unknown email that doesn't exist in ldap is encountered, no user is created. Anonymous ticket creation still works.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212222010-10-11T11:19:42ZMiloš Kozák
<ul></ul><p>Thank you for your reactions.. But I deal with MySQL, not LDAP. It tried everything described there, but nothing worked.<br />I am afraid It is an internal problem. I even tried to set all permissions to all users..</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212252010-10-11T11:29:29ZSimen Endsjø
<ul></ul><p>Ok, I've only tried with MySQL + ldap. As it work's when the email exists in ldap, I thought it was only related to ldap.</p>
<p>Is there any way I can enable more logging to try to pinpoint the problem a bit better?</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212262010-10-11T11:32:38ZMiloš Kozák
<ul></ul><p>Ok, it is not related to LDAP only :) I try to run it with mysql.. If there was a clean way how to achieve a more verbose logging, would be great, but I do not know it.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212302010-10-11T12:46:20ZFelix Schäfer
<ul></ul><p>Try toggling the boolean values of lines 20 and 21 in <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/trunk/config/environments/production.rb#L20">source:/trunk/config/environments/production.rb#L20</a>, though I'm not sure how much logging is done in the mail-receiving thing.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212322010-10-11T12:55:50ZSimen Endsjø
<ul></ul><p>Not quite sure I understand what you mean..</p>
<p>Change<br /><pre>
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
</pre></p>
<p>To<br /><pre>
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
</pre></p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212352010-10-11T13:27:06ZSimen Endsjø
<ul></ul><p>Ok, I tried<br /><pre>
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
</pre></p>
<p>and restarted the mongrel instance, but it didn't have any impact.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212452010-10-11T17:32:29ZFelix Schäfer
<ul></ul><p>Well, then you're probably in development mode already, and I don't think there's more logging you can get.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=212652010-10-12T06:32:47ZSimen Endsjø
<ul></ul><p>This is a very attractive feature for us as we could use Redmine also for customer support.<br />Do you have any idea what else I might try to make this work or get some error messages?</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=221732010-11-05T16:35:31ZAxel B.
<ul></ul><p>Same here ... we are also using Redmine 1.0.2. Within our Redmine instance user accounts have to be checked manually. But to test the issue mail importer I enabled the option automatic account activation. Unfortunately without positiv results...</p>
<p>I also changed the cron script between imap and pop3 interface, but only with the result, that the pop3 task is not that silent, but still not very informative.</p>
<pre>
Connecting to pop3.server.com...
1 email(s) to process...
--> Message <AANLkTimk6sXuH69OjJ+6KokUAhf1-nJ1xYLrCBaYfGFo@mail.gmail.com> NOT processed and left on the server
</pre>
<p>Switching the "unknown_user" option back to "accept", everything works fine - as already mentioned. Additionally I don't understand why a user has to be created at all, to have a sender/ issue creator. Isn't it possible to use the accept mode with the anonymous user and just use the email sender as issue creator name/ label ... whatever?</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=221792010-11-05T19:29:16ZTerence Mill
<ul></ul><p>Axel B. wrote:</p>
<blockquote>
<p>Additionally I don't understand why a user has to be created at all, to have a sender/ issue creator. Isn't >it possible to use the accept mode with the anonymous user and just use the email sender as issue creator >name/ label ... whatever?</p>
</blockquote>
<p>That is exactly what we would need also!</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=238452011-01-10T11:17:57ZEinārs Broks
<ul></ul><p>Is there any new solution for this problem? Is something changed in Redmine 1.1.0 ?</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=244442011-01-25T13:15:28ZØyvind Sean Kinsey
<ul></ul><p>The reason why 'create' does not work is that the user model has a limitation on 30 characters for the firstname property.<br />When extracting the name from the email address, redmine might use the 'raw' string, and when this is an ISO-8859 encoded string this might look like '=?ISO-8859-1?Q?=D8yvind_Sean_Kinsey?=', and as you can see the encoding takes most of the available characters.</p>
<p>I just replaced the default with 'user.firstname = '-' in app/models/mail_handler.rb:331 and now it works.</p>
<p>But as many others here - no logging whatsoever.</p> Redmine - Defect #6433: IMAP receiving does not create a new userhttps://www.redmine.org/issues/6433?journal_id=244482011-01-25T15:13:56ZEinārs Broks
<ul></ul><p>Just tried this last fix, but it is not working for me :( maybe that is because I have LDAP authentification enabled</p>