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. Sendmail does not work "An SMTP From address is required..."

Sendmail does not work "An SMTP From address is required..."

Added by John Doe almost 11 years ago

I’m using 3.0.8 (stable) and want to use OpenProject with sendmail.

This is my config:

default:
  email_delivery_method: :sendmail
  sendmail_location: "/usr/bin/sendmail"
  attachments_storage_path: /path/to/my/storage/location
  rails_cache_store: :memcache
  session_store: :cookie_store
  database_cipher_key: 123451234512345123451234512345

development:
  email_delivery_method: :letter_opener

test:
  email_delivery_method: :test

production:
  session_store: :cache_store
  email_delivery_method: :sendmail
  sendmail_location: "/usr/bin/sendmail"

My nginx is running as user http. So if I try to use sendmail as user http it just works (sendmail v receiver@domain.tld [enter], type text, ctrl+d finished). But if I want to sent an email to a new user with his account information I get the following production log:

Sent mail to root@mylocaldomain.TLD (5.1ms)
Completed 500 Internal Server Error in 159.9ms

ArgumentError (An SMTP From address is required to send a message. Set the message smtp_envelope_from, return_path, sender, or from address.):
  app/controllers/users_controller.rb:188:in `update'

It’s driving me nuts. Even tried to send via smtp to localhost - no luck. I’m evaluating this to use it for my faculty at university, so any help appreciated to get this working.

Thanks in advance
John


Replies (1)

RE: Sendmail does not work "An SMTP From address is required..." - Added by John Doe almost 11 years ago

Well, no problem here anymore. To solve it sometimes you need to write down what your problem is.
So excuse me for my stupidness.

As the log says: I need to set a from address.
Well, I looked in the config file and tried every combination I could think of. So I looked in the code and set the from myself - that whas the easy part :stuck_out_tongue_winking_eye:.
So that seems to work. Strange, maybe somebody forgot something in the configuration to parse?

Yes, right. A project that has already existed for many years forgets something to parse, right john, go jump in a lake!

Magically as I remembered yesterday, there has been a option somewhere in the configuration where it said “from address”…
Maybe… no! That’s a lot to thin.

So 12 hours later, setting the option in the webfrontend, sendmail begins to work :smile_cat::gun:

Sorry again and thanks to all the contributors who make OpenProject possible.

  • (1 - 1/1)
Loading...