Content
openproject, 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)
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]]
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
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 :(
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
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.
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 :
- SMTP server at using TLS (GMail)
# - This requires some additional configuration. See the article at:
- http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/
# - production:
- email_delivery_method: “smtp”
- smtp_enable_starttls_auto: true
- smtp_address: “smtp.gmail.com”
- smtp_port: 587
- smtp_domain: “smtp.gmail.com” # ‘your.domain.com’ for GoogleApps
- smtp_authentication: :plain
- smtp_user_name: “your_email@gmail.com”
- smtp_password: “your_password”
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.
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
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?
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]]
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.
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
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
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
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
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.
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]]