Plesk Smarthost Configuration
Authenticated relay host setup with Plesk Mail Server settings
Back to DocumentationWhat does this guide do?
Ensures all emails sent from your Plesk server are delivered through the MXGate smarthost (with authentication). Works on Postfix-based Plesk systems.
Prerequisites
- Plesk admin/root access
- SMTP username and password created from MXGate panel
- Plesk Obsidian 18.x+ or Onyx 17.x+
- Postfix mail server (not QMail)
1 Access Plesk Mail Server Settings
Log in to Plesk admin panel and navigate to Tools & Settings > Mail Server Settings from the left menu.
2 SMTP Relay (Smarthost) Settings
In the Mail Server Settings page, find the SMTP relay section and configure:
Port 587 automatically uses TLS encryption.
3 Save Settings
Click OK or Apply to save settings. Plesk will automatically update Postfix configuration and restart the service.
This process may take 30-60 seconds. Please wait for it to complete without closing the page.
Alternative: Configuration via SSH/CLI
If you prefer command line over GUI, you can use the following commands:
4 Manual Postfix Configuration (Advanced)
If Plesk GUI doesn't work, you can configure manually. Edit the Postfix main.cf file:
Security: sasl_passwd file must be readable only by root (chmod 600).
5 Testing and Verification
Test if the configuration is working. Send an email and check the Postfix logs:
Success! All your outgoing emails are now delivered encrypted and authenticated through MXGate.
Troubleshooting
Check username/password. Make sure you ran postmap command after creating sasl_passwd file.
Firewall (Plesk Firewall or server firewall) may not allow port 587. Check outbound 587 permission.
Ensure your server IP is whitelisted in MXGate panel, or check authentication credentials.
Ensure Plesk "Mail Server" service is running. Check in Tools & Settings > Services.
Plesk Specific Notes
- Smarthost settings in Plesk are global - apply to all domains.
- Separate relay settings per domain are not possible.
- If Plesk's "Outbound Antispam Protection" is active, there may be some conflicts.
- This guide is not valid for older Plesk installations using QMail.