Releval uses SMTP to send emails for user invitations, email confirmations, and password resets.
SMTP Settings
| Variable | Default | Description |
|---|---|---|
Smtp__Host | 127.0.0.1 | SMTP server hostname |
Smtp__Port | 25 | SMTP server port |
Smtp__Username | (none) | SMTP authentication username |
Smtp__Password | (none) | SMTP authentication password |
Smtp__SecureSocketOptions | Auto | TLS security mode |
Secure Socket Options
| Value | Description |
|---|---|
Auto | Automatically detect the best security mode |
None | No encryption |
StartTls | Upgrade to TLS after connecting (port 587) |
StartTlsWhenAvailable | Use STARTTLS if the server supports it |
SslOnConnect | Connect with TLS immediately (port 465) |
Example
- Environment Variable
- appsettings.json
environment:
- Smtp__Host=smtp.gmail.com
- Smtp__Port=587
- Smtp__Username=noreply@example.com
- Smtp__Password=your-app-password
- Smtp__SecureSocketOptions=StartTls
{
"Smtp": {
"Host": "smtp.gmail.com",
"Port": 587,
"Username": "noreply@example.com",
"Password": "your-app-password",
"SecureSocketOptions": "StartTls"
}
}
Note
Without a configured SMTP server, email-dependent features (user invitations, password resets, email confirmations)
will not function. Users can still be created via the default admin account when CreateTablesOnStartup=true.