-
Notifications
You must be signed in to change notification settings - Fork 535
Enable mail MTA/SMTP configuration using MicroProfile Config #9939
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
Merged
Merged
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
d6c0600
feat(mail): add MTA settings for mail to JvmSettings #7424
poikilotherm de759c1
feat(mail): add minimal implementation of a mail session factory #7424
poikilotherm 72cdde9
feat(mail): add sane defaults for mail jvm settings at app level #7424
poikilotherm 02f1c3d
feat(mail): inject mail session via CDI from factory in MailServiceBe…
poikilotherm 1f79f57
fix(mail): make error logs about missing mapping file go away #7424
poikilotherm 03b11bf
feat(ct,mail): no longer configure mail in containers manually #7424
poikilotherm ee88cfd
doc(ct): remove mail env vars from app image docs #7424
poikilotherm 600d209
build(test): enable using GenericContainer without JUnit4 around
poikilotherm 6f6a9b7
fix(mail): correct typo in mail.smtp prefix string #7424
poikilotherm c23ccde
chore(build,test): upgrade to Testcontainers v1.19.0
poikilotherm eb1664f
feat(mail): add explicit injection constructor to MailServiceBean #7424
poikilotherm 086f766
test(mail): add integration test for mail session configuration and u…
poikilotherm 51af5e1
build(mail): exclude geronimo javamail spec from dependencies
poikilotherm 36d78fd
feat(mail): enable backward compat for javamail resource from app ser…
poikilotherm b612e1a
doc(mail): add initial release note for deprecated mail config #7424
poikilotherm bc55587
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm c367e09
test(mail): refactor IT for mail sessions to use @JvmSettings
poikilotherm 4c64051
test(mail): include in regular IT test suite
poikilotherm 2178c83
test(mail): add test scenario including necessary SMTP authentication…
poikilotherm 17aa5ad
feat(mail): make system email address configurable via MPCONFIG #7424
poikilotherm fd41607
refactor(mail): make MailServiceBean use new lookup API for system ad…
poikilotherm 2bff977
feat(mail): provide lookup function for support mail address #7424
poikilotherm de2f423
refactor(mail): replace manual parsing with mail service lookups #7424
poikilotherm 81da403
style(mail): deprecate db setting for system email #7424
poikilotherm 59b09cb
test(mail): use InternetAddress parsing directly, no need for MailUtil
poikilotherm 7fc613f
refactor(mail): remove unused MailUtil.parseSystemAddress #7424
poikilotherm 5b418c0
test(mail): refactor IT with new system email JVM option #7424
poikilotherm 2c3e054
test(mail): restructure and add test for mail address lookups working…
poikilotherm 8fac0f6
test,fix(branding): make mock adding methods lenient to avoid unneces…
poikilotherm 9c7d9b5
refactor(mail): simplify MailServiceBean.sendSystemEmail #7424
poikilotherm b970eb5
feat(mail): enable UTF-8 mail address following RFC 6530 #7424
poikilotherm 05870d1
fix(mail): lookup UTF-8 support config in static method to pick up ch…
poikilotherm e9abfd2
fix(mail): add missing mock in MailServiceBeanTest
poikilotherm 7d1ba87
fix(mail): make mail configuration entirely optional #7424
poikilotherm df53751
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm 7a23d1a
chore(build): update to Testcontainers 1.19.1
poikilotherm 4bfda6c
chore(build): update to SmallRye Config 3.4.1
poikilotherm b74d60f
chore(build): update Mockito to v5.6.0
poikilotherm 078d6d7
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm b194263
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm 9397cc3
fix(mail): lookup legacy mail session programmatically #7424
poikilotherm d650725
build(mail): add .map files to be included in resources #7424
poikilotherm 11826d9
feat(mail): add startup checks for mail configuration #7424
poikilotherm 4efef85
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm 213b025
test(mail): add more tests for mail session producer with invalid config
poikilotherm 7ff1e17
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm 084fa32
chore(test): remove leftover JUnit 4 rules
poikilotherm 4d3904f
test(mail): verify SMTP over SSL/TLS works
poikilotherm 53e964a
style(mail): update deprecation tags for DV v6.2
poikilotherm abcb131
style(settings): ignore SonarCube rule S115 for DB settings
poikilotherm b0d268d
doc(settings): add section on secure password storage in security sec…
poikilotherm f690c47
feat(installer): make installer use new way to apply mail MTA config
poikilotherm 9824425
doc(mail): add mail config paragraphs #7424
poikilotherm 5dcaba9
doc(mail): rewrite install docs to match new way of mail config #7424
poikilotherm a48e860
fix(ct): migrate compose and configbaker to use new way of mail config
poikilotherm 6f5cc9f
style(mail): update mail config release note
poikilotherm 930fc1b
style(mail): update mail config release note about source of from add…
poikilotherm d82cff4
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm e11a623
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm af7171e
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm 6b15b12
Merge branch 'develop' into 7424-maildefinition-ng
poikilotherm db9cd86
docs(mail): apply suggestions from code review
poikilotherm 83d29b1
feat(ct): add MTA config to demo compose #7424
poikilotherm ff3b1a1
Merge remote-tracking branch 'origin/7424-maildefinition-ng' into 742…
poikilotherm ac74b23
removed outdated "problems sending email" section #9939
pdurbin f263a4e
update docs and release note #7424
pdurbin caf5682
link higher up in the guides #7424
pdurbin 362b87e
fix(mail): remove duplicate JvmSettings.MAIL_MTA_HOST
poikilotherm b8ca4a7
fix(mail): do not add a default for SMPT host in ct profile
poikilotherm d8198b5
style(mail): enable more debug output from session producer
poikilotherm 2a73426
fix(mail): do not fail to deploy when debugging is not configured
poikilotherm 21aa73d
style(mail): applying better fix for default value of mail debugging
poikilotherm 3619371
fix dot to dash
pdurbin c498ceb
doc(mail): add ssl.enable setting to shortlist
poikilotherm 5d7a863
Merge remote-tracking branch 'origin/7424-maildefinition-ng' into 742…
poikilotherm 3e9d992
doc(mail): add newly added settings to release note
poikilotherm 785dfc5
chore(build): update Maven and test framework dependencies
poikilotherm 6b8b907
chore(build): downgrade DMP to 0.43.4
poikilotherm df48382
simply smtp config docs #7424
pdurbin cb14423
doc(mail): fix some typos, add hint about support in new SMTP config …
poikilotherm e784eb3
point release note at new SMTP section #7424
pdurbin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| ## Simplified SMTP configuration | ||
|
|
||
| With this release, we deprecate the usage of `asadmin create-javamail-resource` to configure Dataverse to send mail using your SMTP server and provide a simplified, standard alternative using JVM options or MicroProfile Config. | ||
|
|
||
| At this point, no action is required if you want to keep your current configuration. | ||
| Warnings will show in your server logs to inform and remind you about the deprecation. | ||
| A future major release of Dataverse may remove this way of configuration. | ||
|
|
||
| Please do take the opportunity to update your SMTP configuration. Details can be found in section of the Installation Guide starting with the [SMTP/Email Configuration](https://guides.dataverse.org/en/6.2/installation/config.html#smtp-email-configuration) section of the Installation Guide. | ||
|
|
||
| Once reconfiguration is complete, you should remove legacy, unused config. First, run `asadmin delete-javamail-resource mail/notifyMailSession` as described in the [6.1 guides](https://guides.dataverse.org/en/6.1/installation/installation-main.html#mail-host-configuration-authentication). Then run `curl -X DELETE http://localhost:8080/api/admin/settings/:SystemEmail` as this database setting has been replace with `dataverse.mail.system-email` as described below. | ||
|
|
||
| Please note: as there have been problems with email delivered to SPAM folders when the "From" within mail envelope and the mail session configuration didn't match (#4210), as of this version the sole source for the "From" address is the setting `dataverse.mail.system-email` once you migrate to the new way of configuration. | ||
|
|
||
| List of options added: | ||
| - dataverse.mail.system-email | ||
| - dataverse.mail.mta.host | ||
| - dataverse.mail.mta.port | ||
| - dataverse.mail.mta.ssl.enable | ||
| - dataverse.mail.mta.auth | ||
| - dataverse.mail.mta.user | ||
| - dataverse.mail.mta.password | ||
| - dataverse.mail.mta.allow-utf8-addresses | ||
| - Plus many more for advanced usage and special provider requirements. See [configuration guide for a full list](https://guides.dataverse.org/en/6.2/installation/config.html#dataverse-mail-mta). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.