-
Notifications
You must be signed in to change notification settings - Fork 51
Email does not work #90
Description
When deploying Dataverse as described in the readme, and with basic email configuration (simple smtp server without authentication) sending emails will not work. While the fist time docker compose starts Dataverse I can verify in the Payara Administration Console on port 4848 that the correct JavaMail Session “mail/notifyMailSession” is created with the values provided via the config files. The strange thing is that the whole JavaMail Session disappears after the deployment is finished.
.env – config
........
system_email=[email protected]
mailhost=IP Address
#mailuser=mailuser
no_reply_email=[email protected]
#smtp_password=smtp_password
smtp_port=25
#socket_port=socket_port
........
docker-compose.yml – config
........
"MAIL_SERVER=IP Address"
........
After the JavaMail Session is disappeard, I can docker exec in to the Dataverse container and recreate it with this asadmin command:
create-javamail-resource --mailhost=IP Address --mailuser=dataversenotify --fromaddress=[email protected] mail/notifyMailSession
The JavaMail Session then persists and I can successfully login with the default credentials and set the admin email address, and successfully send a verification email to it.
Do you have any idea how to proceed?