Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Hierarchy leafWiki
You are here:
  • Forums
  • Support Installation & Updates

Content

Issue with Email

Added by Michael Robert about 9 years ago

Hi all - new here to Open Project and I am trying to configure my email. I edited the config.yml page got rid of everything except ( see below ) and I keep getting the same error when I am trying to send a test email.

An error occurred while sending mail (hostname “localhost” does not match the server certificate) any ideas?

  1. default configuration options for all environments
    default:
    # Outgoing emails configuration (see examples above)
    email_delivery_method: :smtp
    smtp_address: smtp.example.net
    smtp_port: 25
    smtp_domain: example.net
    smtp_authentication: :login
    smtp_user_name: “openproject@example.net”
    smtp_password: “my_openproject_password”
  1. specific configuration options for development environment
  2. that overrides the default ones
    development:
    email_delivery_method: :letter_opener
  1. Configuration for the test environment
    test:
    email_delivery_method: :test

Replies (29)

RE: Issue with Email - Added by Michael Robert about 9 years ago

Was actually able to send a test message. However the message is coming from my old email *****gmail.com and I want to change it to ***gmail.com. I do so and then the emails don’t send anymore. Any ideas?

Also, there are some performance issues with Open Project on my machine. I am using Apache2.

RE: Issue with Email - Added by Michael Robert about 9 years ago

Hello, I am also having performance issues running bundle exec rails s

Any help is appreciated!

Happy Holidays!

RE: Issue with Email - Added by Michael Robert about 9 years ago

Anyone available for some help? I am getting another error(ugh) Thanks!

An error occurred while sending mail (Failure in opening uri #<URI::Generic:0xd22664c URL:/home/openproject/openproject/tmp/letter_opener/1388677775_5450340/plain.html> with options {}: Can’t convert URI::Generic into String.)

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Robert,

where did you changed the emission email address, in the admin area under ‘Settings/Email notifications’?

In which context was this error thrown?

Best
Christian

RE: Issue with Email - Added by Michael Robert about 9 years ago

Christian

Yes that is correct. Any suggestions?

Thanks for getting back

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Robert,

if you wanna use a gmail account you have to set additional smtp settings like this:

email_delivery_method: :smtp
smtp_address: smtp.gmail.com
smtp_port: 587
smtp_domain: smtp.gmail.com
smtp_user_name: you@gmail.com
smtp_password: your_gmail_pwd
smtp_enable_starttls_auto: true
smtp_authentication: plain

You can find a list with all smtp options here

Best
Christian

RE: Issue with Email - Added by Michael Robert about 9 years ago

Thank you. Where does that file go?

I am deploying with Unicorn

RE: Issue with Email - Added by Michael Robert about 9 years ago

Actually when I add the files in configuration.yml (it sets Unicorn on a hook and doesn’t work)

RE: Issue with Email - Added by Michael Robert about 9 years ago

Hi Christian… I got a little further. What is the issue with

An error occurred while sending mail (hostname “localhost” does not match the server certificate)

Thanks!@

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Robert,

setting the following option should work:

smtp_openssl_verify_mode: ‘none’

You should include all smpt settings in ‘config/configuration.yml’

Best
Christian

RE: Issue with Email - Added by Luiz Henrique Diniz about 9 years ago

Christian Ratz wrote:

Hi Robert,

setting the following option should work:

smtp_openssl_verify_mode: ‘none’

You should include all smpt settings in ‘config/configuration.yml’

Best
Christian

Hi Christian

I have a problem with sending email also, in my case I have to return this message: An error occurred while sending mail (getaddrinfo: Name or service not known).
I’ve done research and found no solution.

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Luiz,

sounds like the specified smtp server doesn’t exists you should check your smtp settings again.

Best
Christian

RE: Issue with Email - Added by Luiz Henrique Diniz about 9 years ago

Christian Ratz wrote:

Hi Luiz,

sounds like the specified smtp server doesn’t exists you should check your smtp settings again.

Best
Christian

I made all the settings according to my provider.

  1. default configuration options for all environments
    default:
    email_delivery_method: :smtp
    smtp_address: “openproject@arcadian.com.br”
    smtp_port: 80
    enable_starttls_auto: “true”
    smtp_domain: “smtpout.secureserver.net”
    smtp_authentication: “plain”
    smtp_user_name: “openproject@arcadian.com.br”
    smtp_password: “xxxxxx”
    smtp_openssl_verify_mode: “none”

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Luis,

looks like this stackoverflow should fix your problem

Best
Christian

RE: Issue with Email - Added by Luiz Henrique Diniz about 9 years ago

Christian Ratz wrote:

Hi Luis,

looks like this stackoverflow should fix your problem

Best
Christian

It worked, thanks Christian

RE: Issue with Email - Added by Michael Robert about 9 years ago

Hi Christian!

Thanks for your help. I added the line like you said, but still the same. Here is what I have

  1. Outgoing emails configuration (see examples above)
    email_delivery:
    delivery_method: :smtp
    smtp_settings:
    address: smtp.gmail.com
    port: 587
    domain: smtp.gmail.com (what is the domain?)
    authentication: :login
    user_name: “mrw5641@gmail.com”
    password: “”
    smtp_openssl_verify_mode: ‘none’

RE: Issue with Email - Added by Michael Robert about 9 years ago

It seems like no matter what settings I change it reverts back to local host error. (even with all settings removed)

RE: Issue with Email - Added by Michael Robert about 9 years ago

Hi Christian, there is on thing I think you are missing in the installation instructions with the email.

I found that adding config.action_mailer.smtp_settings = { enable_starttls_auto: false } to the application.rb will get rid of the local host problem and that it allows for test emails.

RE: Issue with Email - Added by Michael Robert about 9 years ago

Hi Christian sorry to keep bothering you ;-). I have two servers running open project with the same settings. I got the email working on my test server fine. I am trying to deploy the email on my second server. But I keep getting the error with

Failure in opening uri #<URI::Generic:0xe9a1ee8 URL:/home/openproject/openproject/tmp/letter_opener/1388784738_5a0907d/plain.html

Would it help to delete that file and then regenerate?

here is the full error.

An error occurred while sending mail (Failure in opening uri #<URI::Generic:0xe523754 URL:/home/openproject/openproject/tmp/letter_opener/1388785321_de7db95/plain.html> with options {}: Can’t convert URI::Generic into String.)

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Michael,

your second servers runs in production or in development mode?

Best
Christian

RE: Issue with Email - Added by Michael Robert about 9 years ago

Hi Christian. Well, I was working with 2 servers,I got one to work — I didn’t have that error. I am just trying to resolve the error above. It is running in production.

RE: Issue with Email - Added by Christian Ratz about 9 years ago

Hi Michael,

I thought the second server runs in production which explains this error a bit because ‘letter opener’ ist only available in development mode.
Did you set the following setting for production?

email_delivery_method: :letter_opener

instead of

email_delivery_method: :smtp

Best
Christian

RE: Issue with Email - Added by Michael Robert about 9 years ago

I will check that out. I think right now it is set for smtp.

I will try it

Thank you!

RE: Issue with Email - Added by Michael Robert about 9 years ago

Not sure what else to do. I tried both settings in Development and I still get the same error. It seems no matter what I try the same error keeps popping up.

RE: Issue with Email - Added by Michael Robert about 9 years ago

I managed to get past that error finally. by changing a setting in development.rb from letter_opener to smtp.. Now I am getting this .

An error occurred while sending mail (Connection refused - connect(2))

RE: Issue with Email - Added by Michael Robert about 9 years ago

yay. I got it to work!

Thanks Christian!

RE: Issue with Email - Added by Mandar Pimplapure almost 9 years ago

Hello All,

I successfully configured OpenProject in Ubuntu Environment. Also put email configuration as mentioned in config file. Now, when I am trying to send a test mail then the application shows email sent successfully but I can’t receive email notification. I check log also it will show at the end:
“Completed 302 Found in 353.4ms (ActiveRecord: 32.0ms)”

My Email settings are:

  1. default configuration options for all environments
    default:
    email_delivery_method: :smtp
    openssl_verify_mode: ‘none’
    smtp_address: smtp.example.com
    smtp_port: 25
    smtp_domain: example.com
    smtp_authentication: :login
    smtp_user_name: “openproject@example.com”
    smtp_password: “****”

RE: Issue with Email - Added by Ulises Genchi over 8 years ago

Hello Everyone;

Does anyone knows the settings to send mail using Office 365?…

I get this error when trying to send a test email:

An error occurred while sending mail (504 5.7.4 Unrecognized authentication type )

I’ve tried PLAIN and LOGIN on SMTP_AUTHENTICAITON but get the same error.

This configuration should work, because I already have another service (ServiceDesk Plus) with the same email account… the only thing is that in SDP I don’t have to set that parameter.

Thanks in advanced.

RE: Issue with Email - Added by Daniam Castellanos about 8 years ago

For the main Topic

hostname “localhost” does not match the server certificate)

I fixed it in another way.

In your config folder, in Application.rb, type the following line.

config.action_mailer.smtp_settings ={enable_startssl_auto:false}

I used sendmail, with a no-reply address, but it should work for any other config with that error message.

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