Email Verification Leading to Internal Server Error 500
Description
Hi - This is Ahson Shaikh from Easypanel Team. We are trying to onboard your project on our platform to make it accessible to even larger market.
We are having issues while setting it up and would like to request your assistance.
We are using docker image solidtime/solidtime:0.8.0 and postgres database for the setup and facing issues while registering the account for a user. Can you please help us? We have not setup the mailer, it is localhost and null other properties. Do you believe this could be the reason for it? There are no logs in the console.
Steps To Reproduce
...
Self-hosted or Cloud?
None
Version of solidtime: (for self-hosted)
No response
solidtime self-hosting guide: (for self-hosted)
No response
@Ahson-Shaikh Please send the logs. Where there are depends on the log provider that you configured. If you used one of the guide the logs are in the logs folder.
It is possible that the incorrectly configured email provider is the problem but hard to say without any logs.
You can try to set the email driver to log temporarily like it is suggested in the self-hosting guide to test if that is the issue. (Link to docs)
If you set the mailer to localhost with all other properties empty and no mail server running on localhost, you will get an internal server error since it's trying to access an undefined server that doesn't exist. As korridor said though, we can only be sure what exactly the cause is after checking the logs.
Do you have a mail server running or are you trying to disable the mailer? I don't understand how you would use email verification then, though...
@korridor I am Getting a certificate verification error when using locally hosted mailcow instance which is on same docker network as solidtime app while registering a new user. I do not see an environment variable to disable and bypass the mail certificate verification
@fractals-one You're using STARTTLS, so it's checking for certificates. Either you specify the domain name of the mail server (if you have one) so it resolves externally, which is the easiest way, or you enable unencrypted mail delivery over SMTP port 25 for mailcow in the postfix config (see this thread). I tried doing this as well when I set up solidtime, but it's quite complicated and can be insecure if your setup is not perfect. If you have a proper email server setup the easiest way is to just use the domain the mail server is running on (something like imap.example.org or mail.example.org depending on your setup).
@Eiernase I have configured encryption as null, the app is using STARTTLS by default
As per https://symfony.com/doc/current/mailer.html#tls-peer-verification I see that SMTP uses TLS verification by default, there is an option to disable the TLS verification as per symfony docs. Does solidtime app support this config?