-
Notifications
You must be signed in to change notification settings - Fork 213
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
Error in backend while sending an email message #262
Comments
Thanks for your investigation . I will look into the issue as soon as
possible
Edgars ***@***.***> schrieb am Do., 4. Jan. 2024, 15:30:
… I cannot manage to get back-end to send email messages.
I launched Quant-UX using Docker Compose, and below is back-end
container's log when an email message should be sent:
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
15:03:04.709 [vert.x-eventloop-thread-0] ERROR com.qux.util.Config - mergeUser() > QUX_USER_ALLOW_SIGNUP > true
15:03:04.916 [vert.x-eventloop-thread-0] ERROR com.qux.MATC - createMail() > DISABLE MAIL SSL!
******************************************
* Quant-UX-Server 4.5.6 launched at 8080
******************************************
Jan 04, 2024 3:03:05 PM io.vertx.core.Starter
INFO: Succeeded in deploying verticle
Jan 04, 2024 3:04:02 PM io.vertx.ext.mail.impl.SMTPSendMail
WARNING: sender address not accepted: 530 5.7.0 Must issue a STARTTLS command first
15:04:02.764 [vert.x-eventloop-thread-0] ERROR com.qux.bus.MailHandler - handle() > from: ***@***.*** >> to : ***@***.*** >> subject : Password Reset >> txt: Dear Name
you have requested a new password. Please follow the link to set a new password:
https://quant-ux.example.org/#/reset_password3.html?id=reallylongid
Your Quant-UX Team.
15:04:02.765 [vert.x-eventloop-thread-0] ERROR com.qux.bus.MailHandler - handle() > Could not send mail to ***@***.***
15:04:02.765 [vert.x-eventloop-thread-0] ERROR com.qux.bus.MailHandler - handle() > error:
io.vertx.core.impl.NoStackTraceThrowable: sender address not accepted: 530 5.7.0 Must issue a STARTTLS command first
io.vertx.core.impl.NoStackTraceThrowable: sender address not accepted: 530 5.7.0 Must issue a STARTTLS command first
The same outcome is when I set the environment variable QUX_MAIL_PORT
with the value 587 and QUX_MAIL_SSL with the value required (I took a
look at back-end's <https://github.com/KlausSchaefers/qux-java> code and
it seems that these values are used by default).
I added the environment variable QUX_DEBUG with the value true, and there
was no errors in back-end container's log, but email was not received
anyway.
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
15:23:49.824 [vert.x-eventloop-thread-0] ERROR com.qux.util.Config - mergeDebug() > QUX_DEBUG > true
15:23:49.832 [vert.x-eventloop-thread-0] ERROR com.qux.util.Config - mergeUser() > QUX_USER_ALLOW_SIGNUP > true
******************************************
* Quant-UX-Server 4.5.6 launched at 8080
******************************************
Jan 04, 2024 3:23:50 PM io.vertx.core.Starter
INFO: Succeeded in deploying verticle
15:25:55.729 [vert.x-eventloop-thread-0] ERROR com.qux.rest.UserREST - error() > *ATTENTION* Wrong login for ***@***.***
Everything is working fine with the same email server with Penpot with the
following environment variables:
services:
...
backend:
...
environment:
...
PENPOT_SMTP_DEFAULT_FROM: ***@***.***
PENPOT_SMTP_DEFAULT_REPLY_TO: ***@***.***
PENPOT_SMTP_HOST: mail.example.org
PENPOT_SMTP_PORT: 587
PENPOT_SMTP_USERNAME: ***@***.***
PENPOT_SMTP_PASSWORD: strongpassword
PENPOT_SMTP_TLS: 'true'
PENPOT_SMTP_SSL: 'false'
...
...
...
, so the issue does not seem to be related to the email server.
Out of curiosity I tried to change the value of QUX_MAIL_PORT to 465, and
this time the error was different:
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
15:14:46.331 [vert.x-eventloop-thread-0] ERROR com.qux.util.Config - mergeUser() > QUX_USER_ALLOW_SIGNUP > true
15:14:46.483 [vert.x-eventloop-thread-0] ERROR com.qux.MATC - createMail() > DISABLE MAIL SSL!
******************************************
* Quant-UX-Server 4.5.6 launched at 8080
******************************************
Jan 04, 2024 3:14:46 PM io.vertx.core.Starter
INFO: Succeeded in deploying verticle
15:15:08.791 [vert.x-eventloop-thread-0] ERROR com.qux.rest.UserREST - error() > *ATTENTION* Wrong login for ***@***.***
15:20:00.701 [vert.x-eventloop-thread-0] ERROR com.qux.bus.MailHandler - handle() > from: ***@***.*** >> to : ***@***.*** >> subject : Password Reset >> txt: Dear Name
you have requested a new password. Please follow the link to set a new password:
https://quant-ux.example.org/#/reset_password3.html?id=anotherreallylongid
You Quant-UX Team.
15:20:00.701 [vert.x-eventloop-thread-0] ERROR com.qux.bus.MailHandler - handle() > Could not send mail to ***@***.***
15:20:00.701 [vert.x-eventloop-thread-0] ERROR com.qux.bus.MailHandler - handle() > error:
io.vertx.core.impl.NoStackTraceThrowable: connection has been closed by the server
io.vertx.core.impl.NoStackTraceThrowable: connection has been closed by the server
Am I missing something?
—
Reply to this email directly, view it on GitHub
<#262>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWHOQBDNSU4XYRUDGVQAZ3YM3DK5AVCNFSM6AAAAABBNDMBNKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DKOBWGQ2DKOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It looks like SSL is disbaled, but expect by the server:
Can you share your config? By default SSL should be enabled. |
You mean backend service from Docker Compose file? If so, here it is: services:
...
backend:
restart: unless-stopped
image: klausenschaefersinho/quant-ux-backend
volumes:
- data:/app-data
environment:
QUX_HTTP_HOST: https://quant-ux.example.org # this is the URL included in the mails, e.g. password resets
QUX_HTTP_PORT: 8080 # This is the port the backend will use
QUX_MONGO_DB_NAME: quantux # the database / collection name in mongodb
QUX_MONGO_TABLE_PREFIX: quantux # table / document prefix in mongodb
QUX_MONGO_CONNECTION_STRING: mongodb://database:27017
QUX_MAIL_USER: [email protected]
QUX_MAIL_PASSWORD: '1passwordwith,and;'
QUX_MAIL_HOST: mail.example.org
QUX_MAIL_PORT: 587
QUX_MAIL_SSL: required
QUX_JWT_PASSWORD: quxjwtpassword # you should change this to a real JWT secret
QUX_IMAGE_FOLDER_USER: /app-data/qux-images
QUX_IMAGE_FOLDER_APPS: /app-data/qux-image-apps
TZ: Europe/Riga
QUX_AUTH_SERVICE: qux
QUX_KEYCLOAK_SERVER: # just the keycloak host & port
QUX_KEYCLOAK_REALM:
QUX_USER_ALLOW_SIGNUP: 'true'
QUX_USER_ALLOWED_DOMAINS: '*' # comma separated list of domains, e.g. 'my-server.com' or '*' for all
#QUX_DEBUG: 'true'
depends_on:
- database
...
...
I also updated issue's description with full content of Docker Compose file that reproduces having error
I am aware of that and as I wrote in the issue description, I tried to set the environment variable
When I attach to the backned container with the aforementioned backend service definition from Docker Compose file and execute According to code in back-end, the message if (Config.isMailSSLOptional(config)) {
logger.error("createMail() > DISABLE MAIL SSL!");
mailConfig.setStarttls(StartTLSOptions.OPTIONAL);
} else if (Config.isMailSSLDisabled(config)) {
logger.error("createMail() > DISABLE MAIL SSL!");
mailConfig.setStarttls(StartTLSOptions.DISABLED);
} When I change |
Hi, sorry for the late reply. Could you try pulling the latest docker image or remove the Thanks, Klaus |
Hi Klaus, I pulled the latest container image and left the environment variable When I commented out
, but, as I understand, setting the environment variable |
I cannot manage to get back-end to send email messages.
I launched Quant-UX using Docker Compose:
, and below is back-end container's log when an email message should be sent:
The same outcome is when I set the environment variable
QUX_MAIL_PORT
with the value587
andQUX_MAIL_SSL
with the valuerequired
(I took a look at back-end's code and it seems that these values are used by default).I added the environment variable
QUX_DEBUG
with the valuetrue
, and there was no errors in back-end container's log, but email was not received anyway.Everything is working fine with the same email server with Penpot with the following environment variables:
, so the issue does not seem to be related to the email server.
Out of curiosity I tried to change the value of
QUX_MAIL_PORT
to465
, and this time the error was different:Am I missing something?
The text was updated successfully, but these errors were encountered: