Email Notifications
Configure email alerts for system events, backups, and security issues.
Supascale can send email notifications for important events, helping you stay informed about your infrastructure.
SMTP Configuration
Before receiving notifications, configure your SMTP settings.
Via Web UI
- Go to Settings > SMTP
- Enter your SMTP server details:
- Host: SMTP server address
- Port: Usually 587 (TLS) or 465 (SSL)
- Username: Your SMTP username
- Password: Your SMTP password
- From Name: Sender display name
- From Email: Sender email address
- Click Test Connection to verify
- Click Save
Via API
curl -X PUT https://supascale.example.com/api/v1/settings/smtp \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"host": "smtp.sendgrid.net",
"port": 587,
"username": "apikey",
"password": "your-api-key",
"fromName": "Supascale",
"fromEmail": "[email protected]"
}'
SMTP Provider Examples
SendGrid
{
"host": "smtp.sendgrid.net",
"port": 587,
"username": "apikey",
"password": "SG.xxxx"
}
Mailgun
{
"host": "smtp.mailgun.org",
"port": 587,
"username": "[email protected]",
"password": "your-mailgun-password"
}
AWS SES
{
"host": "email-smtp.us-east-1.amazonaws.com",
"port": 587,
"username": "your-ses-smtp-username",
"password": "your-ses-smtp-password"
}
Gmail
{
"host": "smtp.gmail.com",
"port": 587,
"username": "[email protected]",
"password": "your-app-password"
}
For Gmail, use an App Password instead of your regular password.
Notification Types
Supascale can notify you about various events:
| Category | Events |
|---|---|
| Security | Failed login attempts, API key usage, security scan findings |
| Backups | Backup completed, backup failed, restore completed |
| Tasks | Scheduled task failed, health check failed |
| System | Updates available, disk space low, SSL certificate expiring |
| Projects | Project errors, container failures |
Configuring Notifications
Via Web UI
- Go to Settings > Notifications
- Enter notification email addresses (comma-separated)
- Select which event types to receive
- Set minimum severity level
- Click Save
Via API
curl -X PUT https://supascale.example.com/api/v1/settings/notifications \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"emails": ["[email protected]", "[email protected]"],
"enabled": {
"security": true,
"backups": true,
"tasks": true,
"system": true,
"projects": true
},
"minSeverity": "warning"
}'
Severity Levels
| Level | Description | Examples |
|---|---|---|
| Critical | Requires immediate attention | Backup failed, disk full, security breach |
| Warning | Should be reviewed soon | SSL expiring, high memory, failed task |
| Info | Informational only | Backup completed, update available |
Security Notifications
Failed Login Alerts
Receive alerts after multiple failed login attempts:
{
"type": "security.login_failed",
"severity": "warning",
"details": {
"attempts": 5,
"ip": "192.168.1.100",
"timestamp": "2026-01-24T12:00:00Z"
}
}
Security Scan Results
Get notified when security scans find issues:
- Go to Settings > Security
- Enable Scheduled Scans
- Enable Email Notifications
- Set Minimum Severity threshold
Backup Notifications
Enable for Scheduled Backups
- Create or edit a scheduled backup task
- Enable Notify on completion
- Enable Notify on failure
Notification Content
Backup notifications include:
- Backup ID and type
- Success or failure status
- Duration and size
- Storage location
- Error details (if failed)
Task Notifications
Health Check Alerts
When health checks fail:
{
"type": "task.health_check_failed",
"severity": "critical",
"details": {
"taskName": "Project Health Check",
"project": "production",
"error": "Database connection refused",
"lastSuccess": "2026-01-24T11:00:00Z"
}
}
Configure Alert Threshold
Set how many failures before alerting:
curl -X PUT https://supascale.example.com/api/v1/tasks/task-123 \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"alertOnFailure": true,
"failureThreshold": 3
}'
System Notifications
SSL Certificate Expiry
Receive alerts before certificates expire:
- 30 days: Info notification
- 14 days: Warning notification
- 7 days: Critical notification
Disk Space Alerts
| Usage | Severity |
|---|---|
| 80% | Info |
| 90% | Warning |
| 95% | Critical |
Update Notifications
Get notified when new Supascale versions are available.
Testing Notifications
Send Test Email
curl -X POST https://supascale.example.com/api/v1/settings/notifications/test \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'
Verify SMTP Configuration
curl -X POST https://supascale.example.com/api/v1/settings/smtp/test \ -H "X-API-Key: your-api-key"
Notification History
View Sent Notifications
curl https://supascale.example.com/api/v1/settings/notifications/history \ -H "X-API-Key: your-api-key"
Response:
{
"notifications": [
{
"id": "notif-123",
"type": "backup.completed",
"severity": "info",
"sentTo": ["[email protected]"],
"sentAt": "2026-01-24T07:00:00Z",
"status": "delivered"
}
]
}
Troubleshooting
Notifications Not Sending
- Verify SMTP credentials are correct
- Test SMTP connection
- Check spam/junk folders
- Verify notification emails are configured
- Check notification types are enabled
Delayed Notifications
- Check SMTP server response times
- Verify queue processing is running
- Check activity logs for send attempts
Email Marked as Spam
- Use a reputable SMTP provider
- Configure SPF and DKIM records
- Use a verified sender domain
- Avoid spam trigger words in subjects
Best Practices
- Use dedicated email addresses for operations alerts
- Set appropriate severity thresholds to avoid alert fatigue
- Configure backup notifications for all production backups
- Enable security notifications for failed logins
- Test notifications regularly to ensure delivery
- Document notification recipients for team awareness