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

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. openproject, probleme in link generator for confirmation with email

openproject, probleme in link generator for confirmation with email

Added by SLIMANE AMIAR about 7 years ago

i am using openproject on myserver on port 7000, but when i send an email invitation for a user, it generates the activation url without the port my server is listening on for openproject,

https://myserver/account/activate?token=..

instead of

https://myserver:7000/account/activate?token=..

the link is generated in app/mailers/user_mailer.rb using url_for function,

, thank you


Replies (17)

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

i found the solution here [[https://stackoverflow.com/questions/48808686/openproject-probleme-in-link-generator-for-confirmation-with-email/48809005#48809005]]

RE: openproject, probleme in link generator for confirmation with email - Added by Oliver Günther about 7 years ago

Please also check your Setting.host_name setting (it can be configured through the UI at Administration > System settings > General).

That value is used for generating links when the request env is not available.

Best,
Oliver

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

Hi SLIMANE AMIAR, i hve problems with email settings, could you help me please? sorry for change your topic :(

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

Hi , yes tell us what is the problem , and we will try to find the solution

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

i have installed openproject, but when i write parameters to send email, it doesn’t work, it shows me an error 500 5.5.3, i want to know if it’s necessary install postfix or other? i have an external smtp server, i hope you can help me thanks.

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

Hi, try to test manually if your SMTP server works if its your own server:

look at this link how to check SMTP server [[https://stackoverflow.com/questions/11988454/how-to-check-if-smtp-is-working-from-commandline-linux]]

, and look the configuration file exemple in /opt/openproject/config/configuration.yml.example , then checks the right configuration to put in configuration.yml file, for example you wil find the configuration to use for gmail as follow :

  1. SMTP server at using TLS (GMail)
    #
  2. This requires some additional configuration. See the article at:
  3. http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/
    #
  4. production:
  5. email_delivery_method: “smtp”
  6. smtp_enable_starttls_auto: true
  7. smtp_address: “smtp.gmail.com”
  8. smtp_port: 587
  9. smtp_domain: “smtp.gmail.com” # ‘your.domain.com’ for GoogleApps
  10. smtp_authentication: :plain
  11. smtp_user_name: “your_email@gmail.com”
  12. smtp_password: “your_password”

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

i opened both files and i got in configuration.yml.example - file uploaded “example.png” and configuration.yml - file uploaded "ori.png
do i have to make some modifications? sorry but i’m a little confused i hope you can help me.

About my server smtp is ok, i have connection and everything is working there (i have other projects sending email by this server), the error is
“An error occurred while sending mail (503 5.5.1 Error: authentication not enabled )”

thanks for your time and patiente.

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

overide configuration.yml

adress, port , domain, authentication, username, password,

by your smpt server information instead of using those in Environement variable

or execute “openproject reconfigure” command in your terminal, skip all steps , but SMTP/auto install, choose smtp then enter the required information

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

i override values but i have the same problem, about to write parameters through openproject reconfigure, i did it but error still appears, maybe you could send me and image about your configurations.yml file or others? did you do it with an external smtp or gmail sendmail?
by other way did you installed another software? like postfix, phpmailer or other?

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

i am using my own smtp server , in the same server of openproject , yes i have installed postfix , following this tutorial [[https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04]]

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

i don’t have problem with the connectivy of my smtp server (i tested it).

i have a doubt, if you have your smtp server in same server where is your openproject, what is postfix for? what does postfix make? because in case you hve installed postfix, that means i’ll have to install it too.
someone told me that i don’t need it because i have my smtp and if i installed postfix i’ll make send email from my virtual machine where is my openproject, so i’m confused.

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

yes you don’t need in the case you use your external smtp serveur,

this should work, go to system settings->email notifications :


set Emission email address
change Email delivery method to SMTP

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

i’ve made all of that, but doesn’t work :(
hell i’m so frustated

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

then use sendmail instead of direct SMTP , then use sendmailconfig commande to configure sendmail for your external SMTP server

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

i didn’t know i could do that, thanks
i’ll investigate about that. thanks

RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo about 7 years ago

do you have a manual please? about how to configure postifix, thanks.

RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 7 years ago

i think , you dont need to use postfix for that, but if you would like to install it , and do basic configuration, see the following tutorial, [[https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04]],
to configure send mail for using external server look at this tutorial [[https://linuxconfig.org/configuring-gmail-as-sendmail-email-relay]]

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