Skip to content

Email does not work #90

@DominikWA

Description

@DominikWA

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=dataverse@domain.org
mailhost=IP Address
#mailuser=mailuser
no_reply_email=no_reply_email_dataverse@domain.org
#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=dataverse@domain.org 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions