Top Menu

Jump to content
  • OpenProject
    • View all projects
Home
    • Work packages
    • News
    • Getting started
    • Introduction video
    • Welcome to OpenProject

      Get an overview

      Get a quick overview of project management and team collaboration with OpenProject.

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Create a new account
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • You are here:Forums
You are here:
  • Forums
  • General discussion

Content

Gravataropenproject, probleme in link generator for confirmation with email

Added by SLIMANE AMIAR about 1 year 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)

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR about 1 year ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by Oliver Günther about 1 year 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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months 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.

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months 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”

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months 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.

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months 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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months 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?

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months 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]]

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months 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.

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months 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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by victor del castillo 11 months ago

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

Gravatar RE: openproject, probleme in link generator for confirmation with email - Added by SLIMANE AMIAR 11 months 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...