Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API email notifications does not work #9

Closed
syphax-bouazzouni opened this issue Oct 21, 2023 · 5 comments
Closed

API email notifications does not work #9

syphax-bouazzouni opened this issue Oct 21, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@syphax-bouazzouni
Copy link
Collaborator

All the notification email sent in the API does not work, including the one to reset the password.

Digging into the logs, we can see the following error message, Net::SMTPAuthenticationError - 530 5.5.1 Authentication Required, which indicates the configurations of the email client are not correct.

So we need to update the config file in /srv/ontoportal/ontologies_api/current/config/environments/appliance.rb, with the correction credentials to the mail server.

then restart, the services sudo oprestart

@syphax-bouazzouni syphax-bouazzouni changed the title the API send email notification does not work API email notifications does not work Oct 21, 2023
@syphax-bouazzouni syphax-bouazzouni added the bug Something isn't working label Oct 21, 2023
@gturrisi-lifewatch
Copy link

The credentials in the file /srv/ontoportal/ontologies_api/current/config/environments/appliance.rb are correct and they are the same set in /srv/ontoportal/virtual_appliance/appliance_config/bioportal_web_ui/config/bioportal_config_appliance.rb

You can try to use the Feedback form https://ecoportal.lifewatch.eu/feedback that works well and send correctly the email to the user. So I think the problem is not related to username, password or smtp parameters.

@syphax-bouazzouni
Copy link
Collaborator Author

syphax-bouazzouni commented Oct 23, 2023

Yes, I have noticed that. But I think it may be that the API domain https://data.ecoportal.lifewatch.eu/, is not accepted by the SMTP server? I'm not really aware of how the SMTP servers work, can you check that?

In the code it does work for us at Agroportal (but we don't use login authentication)

@syphax-bouazzouni
Copy link
Collaborator Author

A temporary solution would be to hide the reset password link, with a message indicating to send an email to support.
@gturrisi-lifewatch can you see if you can disable the authentication?

@gturrisi-lifewatch
Copy link

I cannot find the possibility to disable authentication in the Zoho account settings

Screenshot 2023-10-26 alle 17 37 28

@syphax-bouazzouni
Copy link
Collaborator Author

fixed in #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants