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. SOLVED - Mail Setup - SSL SMTP Ubuntu

SOLVED - Mail Setup - SSL SMTP Ubuntu

Added by Samuele Facco over 10 years ago

Hi all,
I just installed OpenProject on a new Ubuntu server. Everything seems to work fine, but I cannot send email: I have to configure SSL on SMTP but I cannot find anything in documentation. Could you please tell me where can I find a list of options to use and how to set them?

Thanks for your help,
Sam


Replies (4)

RE: Mail Setup - SSL SMTP Ubuntu - Added by Samuele Facco over 10 years ago

I also tried creating a gmail test mailbox, because i found more documentation about it, and this is mine

ADMIN_EMAIL=mymail@gmail.com
APP_ADDONS=
APP_GROUP=openproject
APP_HOME=/opt/openproject
APP_NAME=openproject
APP_RUNNER_CLI=initctl
APP_RUNNER_TYPE=upstart
APP_SAFE_NAME=openproject
APP_USER=openproject
APP_WIZARDS=legacy-installer,mysql,apache2,svn-dav,smtp,memcached,openproject
ATTACHMENTS_STORAGE_PATH=/var/db/openproject/files
DATABASE_URL=mysql2://openproject:lWTuPFoirj0dy9tgWmXhtJRERkWq7IXu@127.0.0.1:3306/openproject
EMAIL_DELIVERY_METHOD=smtp
ENABLE_STARTTLS_AUTO=True
GEM_PATH=/opt/openproject/vendor/bundle/ruby/2.1.0:
HOME=/home/openproject
LANG=en_US.UTF-8
OLDPWD=/
ORIGINAL_PWD=/home/ubuntu
PATH=/opt/openproject/bin:/opt/openproject/vendor/bundle/bin:/opt/openproject/vendor/bundle/ruby/2.1.0/bin:/opt/openproject/vendor/node/bin:/opt/openproject/bin:/opt/openproject/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.:/usr/sbin
PORT=6000
PWD=/opt/openproject
RACK_ENV=production
RAILS_ENV=production
ROOT_PATH=/
SECRET_TOKEN=59671b961e6d0aa60bb4f37fb86280128a56ea0795799abfb3f8a2be54ddcacd38e16fac3a719db08036bae9ec7230bb1c59b305b3bd81b142a8f49a06d1e8d3
SERVER_HOSTNAME=mine.com
SERVER_PROTOCOL=http
SERVER_USER=www-data
SHLVL=0
SMTP_AUTHENTICATION=PLAIN
SMTP_DOMAIN=smtp.gmail.com
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_HOST=smtp.gmail.com
SMTP_PASSWORD=mypass
SMTP_PORT=587
SMTP_SSL=True
SMTP_URL=smtp://mymail%40gmail.com:mypass%21@smtp.gmail.com:465/mine.com
SMTP_USERNAME=mymail@gmail.com
SVN_REPOSITORIES=/var/db/openproject/svn
SYS_API_KEY=FzlWAxR9GdLv695RMjt4pPvvF4ZbnVSg
WEB_CONCURRENCY=2
WEB_TIMEOUT=15

and now I got this error:

An error occurred while sending mail (534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsTA )

Have you got some suggestion for me? :-)

PS: I already unlocked “unsafe” application in gmail security

RE: Mail Setup - SSL SMTP Ubuntu - Added by Samuele Facco over 10 years ago

If I change port to 465 I got this error in firefox ….

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /admin/test_email.

Reason: Error reading from remote server

Apache/2.4.7 (Ubuntu) Server at xx.xxx.xx.xxx Port 80

Running out of ideas…

RE: Mail Setup - SSL SMTP Ubuntu - Added by Karsten Gallinowski over 10 years ago

Hi,

I think you should try changing the authentication mode to login.

this — SMTP_AUTHENTICATION=PLAIN
to SMTP_AUTHENTICATION=login

You can do it be using this commad:

openproject config:set SMTP_AUTHENTICATION=login

And do not forget to restart the app server by:

service openproject restart

Hopefully that fixes your problem.

Cheers
Karsten

RE: Mail Setup - SSL SMTP Ubuntu - Added by Samuele Facco over 10 years ago

Thankfully I found the solution yesterday … I simply had to use low-case characters for values in environment variables, so ‘plain’ instead of PLAIN … damn case-sensitive-os :-)

Thanks anyway for the support.

Sam

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