Some SERIOUS help needed
Added by Jasen Burkett over 10 years ago
I am new enough to redmine that now in the part of getting emails into redmine via email I am having quite a bit of trouble.
I ahve followed the write up on redmine that tells you how to get going via cron job and imap. but it is still not working. I am not getting errors either.. Here is the rake that I am running just in the terminal for now and am getting an error.- Invoke redmine:email:receive_imap (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:email:receive_imap
rake aborted!
SocketError: getaddrinfo: Name or service not known
/usr/lib/ruby/1.9.1/net/imap.rb:1034:in `initialize'
/usr/lib/ruby/1.9.1/net/imap.rb:1034:in `open'
/usr/lib/ruby/1.9.1/net/imap.rb:1034:in `initialize'
/usr/share/redmine/lib/redmine/imap.rb:29:in `new'
/usr/share/redmine/lib/redmine/imap.rb:29:in `check'
/usr/share/redmine/lib/tasks/email.rake:128:in `block (4 levels) in <top (required)>'
/usr/share/redmine/app/models/mailer.rb:367:in `with_synched_deliveries'
/usr/share/redmine/lib/tasks/email.rake:127:in `block (3 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => redmine:email:receive_imap
jburkett@redmine:~$ sudo rake -f /usr/share/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.server.com port=143 username=user@domain.com password=password move_on_success=Inbox move_on_failure=Inbox project=testing allow_override=ATTRS --trace
I have no clue where to go from here.
Can someone please help me?
Replies (4)
RE: Some SERIOUS help needed
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
Hello Jasen,
The error suggests Ruby was not able to solve the DNS name of your server (hear: get the IP address).
To have clues about what's going on, you can try to run something like:
dig imap.server.com
or
nslookup imap.server.com
You can also try to use directly the IP address of the server instead of its DNS name.
Cheers,
RE: Some SERIOUS help needed
-
Added by Jasen Burkett over 10 years ago
I sent you an email on the first response (the other issue I have).
I am following the redmine.org doc. on setting up IMAP... IE this link
http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails
And so I am honestly very confused on what I am doing, and what i am doing wrong.
I was using the imap settings for my outgoing mail that I use on mac mail. So maybe that is where I am going wrong.
In the cron list or line rather...
*/30 * * * * redmineuser rake -f /path/to/redmine/appdir/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar username=redmine@somenet.foo password=xxx
IF I put an acutal 'redmineuser' in that place, I get errors of some sort like cron does not like that. so when I take it out it seems to run.
Am I supposed to use the actual Rakefile in the main redmine directory? or am I supposed to use one in the lib/tasks/ folder?
on the host.... I am using mail.ardemgaz.com I am using my existing email address jburkett@arkansasonline.com and my existing password (not showing that silly)
So that is why I am so confused. I am not sure why this is not working.
Again, help is much appreciated.
RE: Some SERIOUS help needed
-
Added by Jasen Burkett over 10 years ago
I will try what you suggested also, by the way.
Thank you.
RE: Some SERIOUS help needed
-
Added by Jasen Burkett over 10 years ago
Here is the latest....
I tried using pop3 instead of IMAP, with no avail.
here is the rake I used, and here is the error.
rake -f /usr/share/redmine/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" host=pop3.ardemgaz.com port=110 username=jburkett@arkansasonline.com password=XXX --trace
- Invoke redmine:email:receive_pop3 (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute redmine:email:receive_pop3
rake aborted!
SocketError: getaddrinfo: Name or service not known
/usr/lib/ruby/1.9.1/net/pop.rb:545:in `initialize'
/usr/lib/ruby/1.9.1/net/pop.rb:545:in `open'
/usr/lib/ruby/1.9.1/net/pop.rb:545:in `block in do_start'
/usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
/usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
/usr/lib/ruby/1.9.1/net/pop.rb:545:in `do_start'
/usr/lib/ruby/1.9.1/net/pop.rb:532:in `start'
/usr/share/redmine/lib/redmine/pop3.rb:43:in `check'
/usr/share/redmine/lib/tasks/email.rake:159:in `block (4 levels) in <top (required)>'
/usr/share/redmine/app/models/mailer.rb:367:in `with_synched_deliveries'
/usr/share/redmine/lib/tasks/email.rake:158:in `block (3 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => redmine:email:receive_pop3