diff --git a/content/posts/2019-02.md b/content/posts/2019-02.md index 33047d5b9..391eb9309 100644 --- a/content/posts/2019-02.md +++ b/content/posts/2019-02.md @@ -563,4 +563,43 @@ $ identify -verbose alc_contrastes_desafios.pdf.jpg - I will read the PDFBox thumbnailer documentation to see if I can change the size and quality +## 2019-02-13 + +- ILRI ICT reset the password for the CGSpace mail account, but I still can't get it to send mail from DSpace's `test-email` utility +- I even added extra mail properties to `dspace.cfg` as suggested by someone on the dspace-tech mailing list: + +``` +mail.extraproperties = mail.smtp.starttls.required = true, mail.smtp.auth=true +``` + +- But the result is still: + +``` +Error sending email: + - Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [AM6PR06CA0001.eurprd06.prod.outlook.com] +``` + +- I tried to log into the Outlook 365 web mail and it doesn't work so I've emailed ILRI ICT again +- After reading the [common mistakes in the JavaMail FAQ](https://javaee.github.io/javamail/FAQ#commonmistakes) I reconfigured the extra properties in DSpace's mail configuration to be simply: + +``` +mail.extraproperties = mail.smtp.starttls.enable=true +``` + +- ... and then I was able to send a mail using my personal account where I know the credentials work +- The CGSpace account still gets this error message: + +``` +Error sending email: + - Error: javax.mail.AuthenticationFailedException +``` + +- I updated the [DSpace SMTP settings in `dspace.cfg`](https://github.com/ilri/DSpace/pull/410) as well as the [variables in the DSpace role of the Ansible infrastructure scripts](https://github.com/ilri/rmg-ansible-public/commit/ab5fe4d10e16413cd04ffb1bc3179dc970d6d47c) +- Thierry from CTA is having issues with his account on DSpace Test, and there is no admin password reset function on DSpace (only via email, which is disabled on DSpace Test), so I have to delete and re-create his account: + +``` +$ dspace user --delete --email blah@cta.int +$ dspace user --add --givenname Thierry --surname Lewyllie --email blah@cta.int --password 'blah' +``` + diff --git a/docs/2019-02/index.html b/docs/2019-02/index.html index bb8f92e5d..542d5e24c 100644 --- a/docs/2019-02/index.html +++ b/docs/2019-02/index.html @@ -42,7 +42,7 @@ sys 0m1.979s - + @@ -89,9 +89,9 @@ sys 0m1.979s "@type": "BlogPosting", "headline": "February, 2019", "url": "https://alanorth.github.io/cgspace-notes/2019-02/", - "wordCount": "3049", + "wordCount": "3280", "datePublished": "2019-02-01T21:37:30+02:00", - "dateModified": "2019-02-12T09:24:28+02:00", + "dateModified": "2019-02-12T20:12:43+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -798,6 +798,50 @@ dspacestatistics=# SELECT * FROM items WHERE downloads > 0 ORDER BY downloads
  • I will read the PDFBox thumbnailer documentation to see if I can change the size and quality
  • +

    2019-02-13

    + + + +
    mail.extraproperties = mail.smtp.starttls.required = true, mail.smtp.auth=true
    +
    + + + +
    Error sending email:
    + - Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [AM6PR06CA0001.eurprd06.prod.outlook.com]
    +
    + + + +
    mail.extraproperties = mail.smtp.starttls.enable=true
    +
    + + + +
    Error sending email:
    + - Error: javax.mail.AuthenticationFailedException
    +
    + + + +
    $ dspace user --delete --email blah@cta.int
    +$ dspace user --add --givenname Thierry --surname Lewyllie --email blah@cta.int --password 'blah'
    +
    + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 96ee0948b..46a968b0b 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2019-02/ - 2019-02-12T09:24:28+02:00 + 2019-02-12T20:12:43+02:00 @@ -209,7 +209,7 @@ https://alanorth.github.io/cgspace-notes/ - 2019-02-12T09:24:28+02:00 + 2019-02-12T20:12:43+02:00 0 @@ -220,7 +220,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2019-02-12T09:24:28+02:00 + 2019-02-12T20:12:43+02:00 0 @@ -232,13 +232,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2019-02-12T09:24:28+02:00 + 2019-02-12T20:12:43+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2019-02-12T09:24:28+02:00 + 2019-02-12T20:12:43+02:00 0