Content
You are here:
openproject, probleme in link generator for confirmation with email
Added by SLIMANE AMIAR almost 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)
i found the solution here [[https://stackoverflow.com/questions/48808686/openproject-probleme-in-link-generator-for-confirmation-with-email/48809005#48809005]]
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
Hi SLIMANE AMIAR, i hve problems with email settings, could you help me please? sorry for change your topic :(
Hi , yes tell us what is the problem , and we will try to find the solution
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.
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 :
#
#
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.
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 informationi 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?
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]]
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.
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
i’ve made all of that, but doesn’t work :(
hell i’m so frustated
then use sendmail instead of direct SMTP , then use
sendmailconfig
commande to configure sendmail for your external SMTP serveri didn’t know i could do that, thanks
i’ll investigate about that. thanks
do you have a manual please? about how to configure postifix, thanks.
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]]