Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. E-Mail Download and Task Creation not working "Anonymous users"

E-Mail Download and Task Creation not working "Anonymous users"

Added by Markus König over 2 years ago

dear community,

i have installed and configured my openproject system (community edition). all working fine.

when i send mail to the supportticket@mydomain.com, then the ticket will be created perfectly.

but when i am now sending from an extenral email address (anonymous) and add a attachment,

i get this error message:

root@opsrv:/scripts# openproject run bundle exec rake redmine:email:receive_pop3 host='192.168.201.133' username='***' password='***' port=110 no_permission_check='1' unknown_user='accept' type='bug' project='project' priority='High' --trace
** Invoke redmine:email:receive_pop3 (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_pop3
I, [2022-08-29T19:35:23.349665 #98088]  INFO -- : [ActiveJob] Enqueued Notifications::JournalCompletedJob (Job ID: 0ffd0ca4-0891-4337-9e8f-9ca3830b2ccf) to DelayedJob(default) at 2022-08-29 17:40:23 UTC
rake aborted!
NameError: undefined local variable or method `sender_email' for #<MailHandler:0x000000000390f8>
Did you mean?  send_at
/opt/openproject/app/models/mail_handler.rb:280:in `block in create_attachment'
/opt/openproject/app/services/service_result.rb:147:in `tap'
/opt/openproject/app/services/service_result.rb:142:in `on_failure'
/opt/openproject/app/models/mail_handler.rb:279:in `create_attachment'
/opt/openproject/app/models/mail_handler.rb:263:in `block in add_attachments'
/opt/openproject/app/models/mail_handler.rb:263:in `map'
/opt/openproject/app/models/mail_handler.rb:263:in `add_attachments'
/opt/openproject/app/models/mail_handler.rb:532:in `create_work_package'
/opt/openproject/app/models/mail_handler.rb:191:in `receive_work_package'
/opt/openproject/app/models/mail_handler.rb:170:in `dispatch_to_default'
/opt/openproject/app/models/mail_handler.rb:151:in `dispatch'
/opt/openproject/app/models/mail_handler.rb:116:in `receive'
/opt/openproject/app/models/mail_handler.rb:50:in `block in receive'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/notifications.rb:205:in `instrument'
/opt/openproject/app/models/mail_handler.rb:47:in `receive'
/opt/openproject/lib/redmine/pop3.rb:52:in `block (2 levels) in check'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/net/pop.rb:667:in `each'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/net/pop.rb:667:in `each_mail'
/opt/openproject/lib/redmine/pop3.rb:49:in `block in check'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/net/pop.rb:532:in `start'
/opt/openproject/lib/redmine/pop3.rb:44:in `check'
/opt/openproject/lib/tasks/email.rake:179:in `block (3 levels) in <top (required)>'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `synchronize'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:83:in `block in run'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.7.0/bin/rake:23:in `load'
/opt/openproject/vendor/bundle/ruby/2.7.0/bin/rake:23:in `<top (required)>'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/opt/openproject/vendor/ruby-2.7.4/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
bin/bundle:110:in `load'
bin/bundle:110:in `<main>'
Tasks: TOP => redmine:email:receive_pop3

and the mail will be set as "read" in my email server.

how i can handle that? when i do no attachment to the mail it works very well.

thank you so much

can anybody helps me? when i do the same with my "account email" from openproject, all working fine.

many greets iceget


Loading...