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
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • Support Installation & Updates

Content

GMail Configuration

Added by Christian Wetzel about 9 years ago

Hello,

I installed OP3.0 on CentOS 6.5 as in the tutorial, except using a MySQL-Server. It seems everything works fine, except Email notifications.

My configuration.yml is as following

production:
  email_delivery_method: smtp
  smtp_enable_starttls_auto: true
  smtp_authentication: plain
  smtp_address: smtp.gmail.com
  smtp_port: 587
  smtp_domain: smtp.gmail.com
  smtp_user_name: MYMAIL@gmail.com
  smtp_password: MYPASSWORD

The Test-Mail in the Administration Panel returns a “An error occurred while sending mail (execution expired)”-Message but has no meaningful log entry:

Started GET "/admin/test_email" for [MYSERVERNAME] at 2014-03-11 15:33:10 +0100
Processing by AdminController#test_email as HTML
  Rendered user_mailer/test_mail.html.erb within layouts/user_mailer (0.1ms)
  Rendered user_mailer/test_mail.text.erb within layouts/user_mailer (0.0ms)

Sent mail to MYMAIL@gmail.com (30010.0ms)
Redirected to http://[MYSERVERNAME]/settings/edit?tab=notifications
Completed 302 Found in 30033.3ms (ActiveRecord: 2.3ms)
Started GET "/settings/edit?tab=notifications" for [MYSERVERNAME] at 2014-03-11 15:33:40 +0100
Processing by SettingsController#edit as HTML
  Parameters: {"tab"=>"notifications"}
  Rendered settings/_general.html.erb (6.8ms)
  Rendered settings/_display.html.erb (29.5ms)
  Rendered settings/_authentication.html.erb (6.4ms)
  Rendered settings/_users.html.erb (1.3ms)
  Rendered settings/_projects.html.erb (5.4ms)
  Rendered settings/_work_packages.html.erb (17.0ms)
  Rendered settings/_notifications.html.erb (6.2ms)
  Rendered settings/_mail_handler.html.erb (1.7ms)
  Rendered settings/_repositories.html.erb (7.5ms)
  Rendered common/_tabs.html.erb (88.9ms)
  Rendered settings/edit.html.erb within layouts/admin (89.5ms)
  Rendered admin/_menu.html.erb (5.8ms)
  Rendered search/_mini_form.html.erb (0.6ms)
  Rendered layouts/_action_menu.html.erb (0.0ms)
  Rendered layouts/base.html.erb (11.9ms)
Completed 200 OK in 117.5ms (Views: 108.6ms | ActiveRecord: 3.5ms)

Updating an User account with checked send new password gives an internal Server Error:

Started PUT "/users/3" for [MYSERVERNAME] at 2014-03-11 15:26:05 +0100
Processing by UsersController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZP9gs0cFYy6j+P+jXjB+tkk/RRx6pDG6BPYtpVsI4zU=", "user"=>{"login"=>"[MYLOGIN]", "firstname"=>"Christian", "lastname"=>"Wetzel", "mail"=>"[MY_EMAILADDRESS]", "language"=>"en", "admin"=>"0", "assign_random_password"=>"[FILTERED]", "force_password_change"=>"[FILTERED]", "mail_notification"=>"only_my_events"}, "pref"=>{"impaired"=>"0", "hide_mail"=>"1", "time_zone"=>"", "comments_sorting"=>"asc", "warn_on_leaving_unsaved"=>"1", "theme"=>"default"}, "send_information"=>"1", "commit"=>"Save", "id"=>"3"}
  Rendered user_mailer/account_information.html.erb within layouts/user_mailer (3.6ms)
  Rendered user_mailer/account_information.text.erb within layouts/user_mailer (2.4ms)

Sent mail to [MY_EMAILADDRESS] (30009.7ms)
Completed 500 Internal Server Error in 30163.0ms

Net::OpenTimeout (execution expired):
  app/controllers/users_controller.rb:188:in `update'

Has anybody an idea or at least a tip how to get more detailed log-files?


Replies (13)

RE: GMail Configuration - Added by jason southwell about 9 years ago

Here’s my configuration but we’re on google apps. It should work for gmail too.

default:
  # Outgoing emails configuration (see examples above)
  email_delivery_method: "smtp"
  smtp_enable_starttls_auto: true
  smtp_address: "smtp.gmail.com"
  smtp_port: 587
  smtp_domain: "mydomain.com" 
  smtp_authentication: :plain
  smtp_user_name: "noreply@mydomain.com"
  smtp_password: "mypassword"

RE: GMail Configuration - Added by Christian Wetzel about 9 years ago

As far as I can see are in my configuration only the order of statements, the quotations and colon different. That should not make any difference, but I will try it.

I found the config.action_mailer.raise_delivery_errors variable in the production.rb - but it also does not change the log for my problem.

RE: GMail Configuration - Added by jason southwell about 9 years ago

I think your smtp_domain is incorrect too.

RE: GMail Configuration - Added by Christian Wetzel about 9 years ago

The domain without smtp. does not solve the problem. Can anybody confirm that ist works with an normal gmail account?

RE: GMail Configuration - Added by Christian Wetzel about 9 years ago

The configuration is correct as it is. The problem was the infrastructure configuration that blocked mails to gmail.com. With another SMTP server everything works. Thank you for your help.

RE: GMail Configuration - Added by quyen dang about 9 years ago

hi
I config mail,but i can’t use mail, how to config that,please help me :S

development: #main level
email_delivery_method: :smtp #main level, will not work

default: #main level
email_delivery_method: :smtp #setting for default
smtp_address: smtp.gmail.com #setting for default
smtp_port: 587
smtp_domain: smtp.gmail.com
smtp_user_name: celltechproject@gmail.com
smtp_password: xxxx
smtp_enable_starttls_auto: true
smtp_authentication: plain

RE: GMail Configuration - Added by Christian Wetzel about 9 years ago

Is your server configured to communicate to gmail.com? Are there any error messages in the UI or in the log-file?

RE: GMail Configuration - Added by quyen dang about 9 years ago

Dear
the log when I create user then push notify to my gmail quyen89ss@gmail.com
I running Centos on Virtual Box with mode Bridge,connect to internet OK.
View log

Sent mail to quyen89ss@gmal.com (4325.5ms)
Redirected to http://192.168.1.41/users/4
Completed 302 Found in 4747.6ms (ActiveRecord: 123.3ms)
Started GET “/users/4” for 192.168.1.20 at 2014-03-13 21:46:57 –0400
Processing by UsersController#show as HTML
Parameters: {“id”=>“4”}
Rendered layouts/_action_menu_base.html.erb (0.1ms)
Rendered layouts/_action_menu_specific.html.erb (0.4ms)
Rendered users/show.html.erb within layouts/base (10.2ms)
Rendered search/_mini_form.html.erb (0.7ms)
Rendered layouts/_action_menu.html.erb (0.1ms)
Completed 200 OK in 234.6ms (Views: 32.7ms | ActiveRecord: 142.4ms)

RE: GMail Configuration - Added by Christian Wetzel about 9 years ago

Can you test the connection via telnet smtp.gmail.com 587, please?

RE: GMail Configuration - Added by Christian Wetzel about 9 years ago

Can you test the connection via telnet smtp.gmail.com 587, please?

RE: GMail Configuration - Added by quyen dang about 9 years ago

Thanks Christian.I can send mail
regard!

RE: RE: GMail Configuration - Added by Jovanny Vasquez Ortiz about 6 years ago

I just installed my server open the project and would like to know how to change the time with which it sends the notifications by email as it sends mail every 5 minutes and I need them to be sent every minute.

I would greatly appreciate your help.

Greetings Jovanny

RE: RE: GMail Configuration - Added by Jovanny Vasquez Ortiz about 6 years ago

I just installed my server open the project and would like to know how to change the time with which it sends the notifications by email as it sends mail every 5 minutes and I need them to be sent every minute.

I would greatly appreciate your help.

Greetings Jovanny

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