Plesk Smarthost Configuration
Authenticated relay host setup with Plesk Mail Server settings. Works on Postfix-based Plesk systems.
Ensures all emails sent from your Plesk server are delivered through the MXGate smarthost (with authentication). Works on Postfix-based Plesk systems.
- 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)
Step-by-Step Configuration
Access Plesk Mail Server Settings
Log in to Plesk admin panel and navigate to Tools & Settings > Mail Server Settings from the left menu.
SMTP Relay (Smarthost) Settings
In the Mail Server Settings page, find the SMTP relay section and configure:
Save Settings
Click OK or Apply to save settings. Plesk will automatically update Postfix configuration and restart the service.
Alternative: Configuration via SSH/CLI
If you prefer command line over GUI, you can use the following commands:
Manual Postfix Configuration (Advanced)
If Plesk GUI doesn't work, you can configure manually. Edit the Postfix main.cf file:
Testing and Verification
Test if the configuration is working. Send an email and check the Postfix logs:
Common Issues
How do I fix the "SASL authentication failed" error in Plesk?
Check username/password. Make sure you ran the postmap command after creating the sasl_passwd file.
Why does the Plesk smarthost return a "Connection timed out" error?
Firewall (Plesk Firewall or server firewall) may not allow port 587. Check outbound 587 permission.
Why does Plesk throw a "Relay access denied" error?
Ensure your server IP is whitelisted in the MXGate panel, or check authentication credentials.
Why won't my Plesk mail server settings save?
Ensure the Plesk "Mail Server" service is running. Check in Tools & Settings > Services.
- Smarthost settings in Plesk are global - they 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.