Skip to content

Commit

Permalink
roles/dspace: Update SMTP settings for Office 365
Browse files Browse the repository at this point in the history
Since late 2018 emails have stopped working on CGSpace because our
SMTP settings were outdated. We need to use port 587 with STARTTLS
and authentication. We also want to be able to disable mail on dev
environments.
  • Loading branch information
alanorth committed Feb 13, 2019
1 parent eea860b commit ab5fe4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions roles/dspace/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ dspace_statistics_api_dir: /opt/ilri/dspace-statistics-api

dspace_explorer_server: prod.ares.codeobia.com

# default mail server (development hosts should override this to blank in host_vars)
dspace_mail_server: smtp.serv.cgnet.com
dspace_mail_server: smtp.office365.com
dspace_ldap_server: ldaps://azcgneroot2.cgiarad.org:636/
# development hosts should override this to true in host_vars
dspace_mail_disabled: false

# CMYK/RGB iccprofiles for DSpace 5.6+ PDF thumbnails
Expand Down
6 changes: 3 additions & 3 deletions roles/dspace/templates/build.properties.j2
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ db.poolname = dspacepool
mail.server = {{ dspace_mail_server }}

# SMTP mail server authentication username and password (if required)
mail.server.username =
mail.server.password =
mail.server.username = {{ dspace_support_email }}
mail.server.password = {{ dspace_support_pass }}

# SMTP mail server alternate port (defaults to 25)
mail.server.port = 25
mail.server.port = 587

# From address for mail
mail.from.address = {{ dspace_support_email }}
Expand Down

0 comments on commit ab5fe4d

Please sign in to comment.