Daniel García
3c377d97dc
Merge pull request #1137 from BlackDex/smtp-multi-auth-mechanism
...
Allow multiple SMTP Auth meganisms.
4 years ago
BlackDex
c877583979
Allow multiple SMTP Auth meganisms.
...
- Allow all SMTP Auth meganisms supported by Lettre.
- The config value order is leading and values can be separated by a
comma ','
- Case doesn't matter, and invalid values are ignored.
- Warning is printed when no valid value is found at all.
4 years ago
BlackDex
844cf70345
Updated lettre (and other crates) and workflow.
...
General:
- Updated several dependancies
Lettre:
- Updateded lettere and the workflow
- Changed encoding to base64
- Convert unix newlines to dos newlines for e-mails.
- Created custom e-mail boundary (auto generated could cause errors)
Tested the e-mails sent using several clients (Linux, Windows, MacOS, Web).
Run msglint (https://tools.ietf.org/tools/msglint/ ) on the generated e-mails until all errors were gone.
Lettre has changed quite some stuff compared between alpha.1 and alpha.2, i haven't noticed any issues sending e-mails during my tests.
4 years ago
Daniel García
668d5c23dc
Removed try_trait and some formatting, particularly around imports
4 years ago
Jeremy Lin
a28ebcb401
Use local time in email notifications for new device logins
...
In this implementation, the `TZ` environment variable must be set
in order for the formatted output to use a more user-friendly
time zone abbreviation (e.g., `UTC`). Otherwise, the output uses
the time zone's UTC offset (e.g., `+00:00`).
4 years ago
Daniel García
596c9b8691
Add option to set name during HELO in email settings
4 years ago
Daniel García
5e802f8aa3
Update lettre to alpha release instead of git commit, and update the rest of dependencies while we are at it
5 years ago
Daniel García
6c5e35ce5c
Change the mails content types to more closely match what we sent before
5 years ago
Daniel García
63cbd9ef9c
Update lettre to latest master
5 years ago
Daniel García
9cca64003a
Remove unused dependency and simple feature, update dependencies and fix some clippy lints
5 years ago
Daniel García
d2d9fb08cc
Revert "Use opportunistic TLS in SMTP connections"
5 years ago
Daniel García
afd9f4e278
Allow the smtp mechanism to be provided without quotes and all lowercase
5 years ago
Samuel Leweke
5d3b765a23
Use opportunistic TLS in SMTP connections
...
If SSL is disabled, the SMTP ClientSecurity of the lettre crate
defaults to None, that is, an insecure connection. This is changed to
Opportunistic, which uses TLS if available. If TLS is not available,
the insecure connection is used (i.e., this change is backward
compatible).
5 years ago
BlackDex
5a974c7b94
Added SMTP test button in the admin gui
...
- Added a test button for checking the e-mail settings.
- Fixed a bug with the _post JavaScript function:
A function was overwriten with a variable and errors were not handled
correctly like a 500 for example.
5 years ago
Daniel García
f5916ec396
Fix backwards indices
5 years ago
Daniel García
def174a517
Convert email domains to punycode
5 years ago
Daniel García
ff7b4a3d38
Update handlebars to 3.0 which included performance improvements.
...
Updated lettre to newer git revision, which should give better error messages now.
5 years ago
Daniel García
a0ece3754b
Formatting
5 years ago
tomuta
bd1e8be328
Implement change-email, email-verification, account-recovery, and welcome notifications
5 years ago
BlackDex
c52adef919
Added configurable smtp timeout.
...
- Added config option for smtp timeout
- Lowered default timeout to 15 seconds instead of default 60.
5 years ago
Daniel García
d29b6bee28
Remove unnecessary clones and other clippy fixes
5 years ago
Daniel García
df8114f8be
Updated client kdf iterations to 100000 and fixed some lints
5 years ago
Daniel García
c07c9995ea
Merge pull request #555 from vverst/email-codes
...
Add Email 2FA login
5 years ago
ViViDboarder
672a245548
Remove unecessary clone
5 years ago
ViViDboarder
2d2745195e
Allow explicitly defined smtp auth mechansim
5 years ago
vpl
0b60f20eb3
Add email message for twofactor email codes
5 years ago
Daniel García
c9c3f07171
Updated dependencies and fixed panic getting icons
5 years ago
vpl
60e39a9dd1
Move retrieve/new device from connData to separate function
5 years ago
vpl
bc6a53b847
Add new device email when user logs in
5 years ago
Nick Fox
2e300da057
Fix #468 - Percent-encode the email address in invite link
5 years ago
Daniel García
874f5c34bd
Formatting
6 years ago
BlackDex
6b686c18f7
Fixed long e-mail message extending 1000 lines.
...
- Added quoted_printable crate to encode the e-mail messages.
- Change the way the e-mail gets build to use custom part headers.
6 years ago
Daniel García
e93538cea9
Add option to use wrapped TLS in email, instead of STARTTLS upgrade
6 years ago
Daniel García
9e1f030a80
Explicitly close SMTP connection in case of error.
6 years ago
Daniel García
04922f6aa0
Some formatting and dependency updates
6 years ago
Daniel García
79fdfd6524
Add missing url parameter
6 years ago
Daniel García
d086a99e5b
Implemented HTML emails with text alternative
6 years ago
Daniel García
8b4a6f2a64
Fixed some clippy lints and changed update_uuid_revision to only use one db query
6 years ago
Daniel García
86ed75bf7c
Config can now be serialized / deserialized
6 years ago
Daniel García
700e084101
Add 2FA icon to admin panel
6 years ago
Daniel García
a1dc47b826
Change config to thread-safe system, needed for a future config panel.
...
Improved some two factor methods.
6 years ago
Daniel García
bfd93e5b13
Show organizations in admin panel, implement reload templates option
6 years ago
Daniel García
97aa407fe4
Move email templates to subfolder
6 years ago
Daniel García
0e4a746eeb
Added SMTP_FROM_NAME
6 years ago
Daniel García
19b6bb0fd6
Initial stab at templates
6 years ago
Daniel García
50eeb4f651
Remove whitespace before processing tokens
6 years ago
Nick Fox
0a74e79cea
Refactor generate_invite_claims, make org_name and org_id optional
6 years ago
Nick Fox
2f5bdc23f6
Fix formatting and add vault link to notification emails
6 years ago
Nick Fox
cec28a85ac
Update admin page to work with new invitation flow
6 years ago
Nick Fox
43eb064351
Replace invite/reinvite email functions with generic send_email
6 years ago