Configure Redmine for incomming emails
Added by Vinzenz Fischer over 13 years ago
Hello,
I'm new to the hole redmine thing - I'm a noob :)
I work as an IT professional and have to port a redmine installation from one network to a new one.
I get this case today morning and I'm really proud of me because redmine is allready running - LDAP-Connection works, login works, all the data are there, and the customer can create tickets and redmine sends emails. So far, so good.
But there's one thing I didn't get to my brain: how to configure redmine that it's able to read emails from a postbox and transfer them to a ticket.
There have to be an config file for that, or no? I've read three or four how'tos I found via google, but the "fog" doesn't go away...
Remine is installed in a VMWare Virtual Maschine using Debian Etch.
I couldn't show you the output of RAILS_ENV=production script/about because I get an error message when I try to.
Hope you can give me some ideas how I will fix that last point on my todo-list - for today, of course.
Thank you!
Greetings,
Vinzenz
Replies (3)
RE: Configure Redmine for incomming emails
-
Added by Mischa The Evil over 13 years ago
It's documented at RedmineReceivingEmails.
RE: Configure Redmine for incomming emails
-
Added by Vinzenz Fischer over 13 years ago
OK, new day, new opinions for errors ;)
First of all, thank you for the link, didn't get this one via google.
When I read the article, the "fog" disapears happy - my mistake was to list the crontabs as root - not as redmine user... doh
Now I get what I was searching for:
[code]root rake -f /usr/share/redmine/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" host=MAIL01 port=143 username=projekt password=***[/code]
Got an error, include the switch "--trace", got this output:
root@RIGK-Redmine:~# rake -f /usr/share/redmine/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" host=MAIL01 port=143 username=projekt password=*** --trace- Invoke redmine:email:receive_imap (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:email:receive_imap
rake aborted!
Command received in Invalid state.
/usr/lib/ruby/1.8/net/imap.rb:1005:in `pick_up_tagged_response'
/usr/lib/ruby/1.8/net/imap.rb:996:in `get_tagged_response'
/usr/lib/ruby/1.8/net/imap.rb:1054:in `send_command'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/net/imap.rb:1039:in `send_command'
/usr/lib/ruby/1.8/net/imap.rb:380:in `login'
/usr/share/redmine/lib/redmine/imap.rb:30:in `check'
/usr/share/redmine/lib/tasks/email.rake:133
/usr/lib/ruby/1.8/rake.rb:636:in `call'
/usr/lib/ruby/1.8/rake.rb:636:in `execute'
/usr/lib/ruby/1.8/rake.rb:631:in `each'
/usr/lib/ruby/1.8/rake.rb:631:in `execute'
/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:583:in `invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in `each'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28
Thought of problems with the port, and try to connect via telnet:
[code]telnet mail01 143[/code]
Got this outpout:
root@RIGK-Redmine:~# telnet mail01 143Trying 192.168.100.12...
Connected to mail01.RIGK-DE.local.
Escape character is '^]'.
- OK The Microsoft Exchange IMAP4 service is ready.
So far, so good.
I have checked the postfox, IMAP is enabled.
The IMAP-services are started.
Try to change the username into projekt@foo.bar, didn't change anything.
Access to the mailbox via OWA works, so login credetials are correct.
Any suggestions where the error may be?
Greetings,
Vinzenz
RE: Configure Redmine for incomming emails
-
Added by Vinzenz Fischer over 13 years ago
Hi,
sorry fot the double-post, but I fixed that on my one - Of course IMAP on an Exchange 2007/2010, you have to use SSL or deactivate SSL for IMAP.
So I change the port to 993, and got a new error:
root@RIGK-Redmine:~# rake -f /usr/share/redmine/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" host=MAIL01 port=993 username=projekt password=***
rake aborted!
undefined method `name' for nil:NilClass
Sounds like an "error" in redmine, hu?
Greetings,
Vinz