Email Providers
Dokploy supports two methods for sending email notifications:SMTP Email
Use any SMTP server (Gmail, Office 365, custom mail server, etc.)
Resend API
Use Resend’s modern email API for reliable delivery
SMTP Configuration
Prerequisites
- Access to an SMTP server
- SMTP credentials (username and password)
- Admin access to your Dokploy organization
Common SMTP Settings
- Gmail
- Office 365
- SendGrid
- Mailgun
Gmail requires App Passwords when 2FA is enabled. Generate one at myaccount.google.com/apppasswords
Configuring SMTP in Dokploy
Enter SMTP Configuration
Provide the following details:
- Name: A descriptive name for this notification (e.g., “Production Email Alerts”)
- SMTP Server: Your mail server hostname (e.g.,
smtp.gmail.com) - SMTP Port: Usually 587 (TLS) or 465 (SSL)
- Username: SMTP authentication username
- Password: SMTP authentication password
- From Address: Email address that notifications will be sent from
- To Addresses: Comma-separated list of recipient email addresses
Select Events
Choose which events should trigger email notifications:
- Application Deploy
- Application Build Error
- Database Backup
- Volume Backup
- Dokploy Restart
- Docker Cleanup
- Server Threshold Exceeded
Test Connection
Click Test Connection to send a test email:Subject: Test Email
Body: Hi, From Dokploy 👋Check your inbox to verify the email arrives.
Body: Hi, From Dokploy 👋Check your inbox to verify the email arrives.
SMTP Configuration Schema
Resend Configuration
Resend is a modern email API that offers reliable delivery, detailed analytics, and a developer-friendly experience.Prerequisites
- A Resend account (sign up at resend.com)
- A verified domain in Resend
- A Resend API key
- Admin access to your Dokploy organization
Getting a Resend API Key
Sign Up for Resend
Create an account at resend.com
Verify Your Domain
Add and verify your domain in the Resend dashboard to send emails from your domain
Configuring Resend in Dokploy
Enter Resend Configuration
Provide the following details:
- Name: A descriptive name for this notification (e.g., “Production Alerts”)
- API Key: Your Resend API key (starts with
re_) - From Address: Email address from your verified domain
- To Addresses: Comma-separated list of recipient email addresses
Resend Configuration Schema
Email Format
Dokploy sends HTML-formatted emails with the following structure:- Subject Line: Concise event description
- Body: HTML-formatted content with event details
- Sender: Configured from address
- Recipients: All addresses in the to addresses list
Example Notification Email
Subject: Build Error - my-appBody:
Multiple Recipients
Both SMTP and Resend configurations support multiple recipients:Troubleshooting
SMTP Issues
Authentication failed- Verify username and password are correct
- For Gmail, ensure you’re using an App Password, not your regular password
- Check if your email provider requires special authentication
- Verify the SMTP server address is correct
- Check that the port is correct (587 for TLS, 465 for SSL)
- Ensure your server can reach the SMTP server (check firewall rules)
- Try port 587 (STARTTLS) instead of 465 (SSL)
- Some servers require explicit TLS configuration
- Check if your SMTP provider has specific security requirements
- Verify the from address is allowed by your SMTP provider
- Some providers only allow sending from verified addresses
- Check if your domain has proper SPF/DKIM records
Resend Issues
Invalid API key- Verify you copied the complete API key from Resend
- Check that the API key hasn’t been revoked
- Ensure the API key has send permissions
- Verify your domain in the Resend dashboard
- Add required DNS records (SPF, DKIM, DMARC)
- Wait for DNS propagation (can take up to 48 hours)
- The from address must use a domain you’ve verified in Resend
- You cannot send from arbitrary email addresses
General Issues
Emails going to spam- Configure SPF, DKIM, and DMARC records for your domain
- Use a recognizable from address
- Avoid spam trigger words in subject lines
- Check spam/junk folders
- Verify recipient addresses are correct
- Test with a different recipient address
- Check Dokploy logs for sending errors
Best Practices
Use Dedicated Email Addresses
Create dedicated email addresses or aliases for notifications:- ✅
dokploy-alerts@company.com - ✅
noreply@company.com - ❌ Personal email addresses
Organize Recipients by Severity
Create multiple email notifications with different recipients:Set Up Email Filtering
Use email filters to automatically:- Label Dokploy notifications
- Route critical alerts to priority inbox
- Archive routine backup notifications
SMTP vs Resend
Use SMTP when:- You already have an SMTP server
- You need to use an existing corporate email infrastructure
- You want complete control over email routing
- You want modern, reliable API-based email
- You need detailed delivery analytics
- You want to avoid managing SMTP infrastructure
API Integration
Manage email notifications programmatically using the Dokploy API:Security Considerations
SMTP Password Security
- Passwords are encrypted in the database
- Use app-specific passwords when available
- Rotate credentials periodically
- Limit SMTP account permissions to send-only
API Key Security
- Never commit API keys to version control
- Use API keys with minimal required permissions
- Rotate API keys regularly
- Revoke unused keys immediately
Email Content
- Email notifications may contain sensitive information
- Consider what data is included in notifications
- Use secure email recipients (internal addresses)
- Avoid sending sensitive data via email when possible
Next Steps
Slack Notifications
Set up Slack webhook integration
Discord Notifications
Configure Discord webhooks
Telegram Notifications
Set up Telegram bot notifications
Notification Overview
Learn about all notification options