Fetching e-mails into Redmine via IMAP
I'm trying to fetch e-mails into Redmine via IMAP.
The e-mails I'm generating look like this:
FooBar Ltd 123456 http://example.com/Foobar-Ltd-123456.html Project: backend Tracker: Dataerror Beschreibung: This is the description =========================== CLIENT_IP: 192.168.1.215 HTTP_USER_AGENT: mozilla/asdfjköl I try to fetch them into Redmine via this command: rake -f /var/www/projects/redmine/Rakefile redmine:email:receive_imap \ RAILS_ENV="production" host=example.com port=993 ssl=true username=redmine \ password=1234 project=myproject tracker=other \ allow_override=project,tracker,category,priority \ move_on_success=read move_on_failure=failed
But the e-mails get moved into the failed folder.
I had this setup running some time ago with a different e-mail generator but pretty much the same template, and I can't figure out why it's not working. The permissions seem to be OK too.
In order to further debug this issue, I need some logfiles. Are there any logfiles written by this command? Or are there any other suggestions to solve this issue?
danilo@jabba:/var/www/projects/redmine$ RAILS_ENV=production script/about About your application's environment Ruby version 1.8.7 (i486-linux) RubyGems version 1.3.5 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Application root /var/www/projects/redmine Environment production Database adapter mysql Database schema version 20100819172912
RE: Fetching e-mails into Redmine via IMAP - Added by D B over 9 years ago
Today I did a fresh redmine install (Git version, Tag v1.1.2) and migrated the data over to it, hoping this would solve the issue. But it didn't.
I created a question with a bounty over at Superuser.com, but nobody there could help me. http://superuser.com/questions/265288/fetching-e-mails-into-redmine-via-imap
There has to be some solution. Can someone help me?
RE: Fetching e-mails into Redmine via IMAP - Added by Deoren Moor about 9 years ago
I too am facing the same issue. I have Redmine 1.2.1 installed as of this writing and getting odd results. Some emails are placed in the rejected_emails to begin with, but once I manually move the email back into the Inbox and mark it as unread, it'll be processed on the next try. Very odd.
cd /opt/redmine RAILS_ENV=production script/about
About your application's environment Ruby version 1.8.7 (i686-linux) RubyGems version 1.3.7 Rack version 1.1 Rails version 2.3.11 Active Record version 2.3.11 Active Resource version 2.3.11 Action Mailer version 2.3.11 Active Support version 2.3.11 Application root /opt/redmine Environment production Database adapter mysql Database schema version 20110511000000
Here is the shell script which runs every 5 minutes:
# Purpose: Fetch emails and import into Redmine # References: # * http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails cd /opt/redmine sudo -u www-data rake -f /opt/redmine/Rakefile redmine:email:receive_imap \ RAILS_ENV="production" \ host=host.example.com firstname.lastname@example.org password=example \ move_on_success=accepted_emails move_on_failure=rejected_emails \ project=unassigned category=unassigned tracker=support \ no_permission_check=1 unknown_user=accept port=993 ssl=1 \ allow_override=tracker,priority,project,status,category > /dev/null 2>&1