Project

General

Profile

Redmine mail software not working

Added by daniel kastner over 10 years ago

'm having a huge problem with redmine and I need to solve it in 2 days.

So my prob is, redmine has not an email send recognition thing integrated. Usually every support system has something when I send an email it automatically creates a new ticket, not in redmine. I've been googling and trying things out for the past 3 hours but I just can't seem to find a solution to fix my problem.

My programming skills are horrible. I've read this and tried to make a cron like this:

*/30 * * * * redmineuser rake -f /path/to/redmine/appdir/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar username=redmine@somenet.foo password=xxx 


But it just doesn't work. Could anybody help me guys, I would be so happy to fix this as I really need redmine to be correctly working with mails.
Thanks

Replies (7)

RE: Redmine mail software not working - Added by daniel kastner over 10 years ago

now i've tried this code :

rake -f /var/www/redmine-2.5.1/Rakefile --silent redmine:email:receive_imap \RAILS_ENV="production" host=*** port=993 username=*** password=*** project=myproject tracker=other \allow_override=project,tracker,category,priority

but it just keeps doing

 ** Execute redmine:email:receive_imap

and never stops.

RE: Redmine mail software not working - Added by Anonymous over 10 years ago

Never did this myself. So just some thoughts:

did you check: http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails ?
are outbound firewall ports open ?

any log file information ?

Don't start with a cron-job: write a short shell-script with exactly this command and start it manually. Move it to cron when it works (referencing the shell script).

Alex

RE: Redmine mail software not working - Added by Tony Ordner over 10 years ago

I run on Windows Server 2008, Redmine 2.5.1 and I use the windows scheduler to kick off this batch file:
echo lam on
cd c:\redmine
call rake redmine:email:receive_imap RAILS_ENV="production" host=*** port=143 username=*** password=*** project=*** tracker=Support unknown_user=accept --trace
exit
echo lam off

To see what is happening you should remove the --silent and add --trace. Once you figure out what it is hanging on then you can silent it and cron it.

good luck
tony

RE: Redmine mail software not working - Added by daniel kastner over 10 years ago

hello guys,

so rake is working just fine BUT my problem is.

I have the inbox:

Now only IT related emails get into that inbox. I want redmine to check those mails via imap and then create a new ticket.

it works fine when i send a mail to with subject Project: name* Tracker* name*

But I dont want the general people to enter that because its just too hard for them..I simply want that it fetches all mails from it and puts them as new ticket into the it project, can you help me ?

cheers

RE: Redmine mail software not working - Added by Tony Ordner over 10 years ago

Actually now that I think about this more I did get anonymous to work but I think I had to adjust my security for who can create issues to be anonymous. roles and permissions, anonymous, issue tracking, check add issues. Try that.

Oh and you need the unknown_user flag set on the rake command as well.

You may have to also adjust the same security for the non-member as well I can not remember but I see mine is checked.

RE: Redmine mail software not working - Added by Denis Kuznetsov over 10 years ago

For both anonymous and non-member this checkbox is ticked already.
What if I will change unknown_user=accept to create, will it help?

Here is my rake output:

C:\BitNami\redmine-2.4.2-0\apps\redmine\htdocs>ruby bin\rake --trace redmine:email:receive_imap RAILS_ENV="production" host=**** username=*** password=*** project=raw tracker=bug allow_override=project,tracker,status,priority,category,assigned_to,start_date,due_date unknown_user=create no_permission_check=1
  • Invoke redmine:email:receive_imap (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:email:receive_imap

C:\BitNami\redmine-2.4.2-0\apps\redmine\htdocs>Echo Finish
Finish

    (1-7/7)