Webinoly integrates Postfix SMTP relay to enable reliable email delivery from your server. This is essential for WordPress transactional emails, contact forms, and system notifications.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/QROkes/webinoly/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
SMTP functionality requires:- Postfix mail server (installed with PHP stack)
- SMTP service credentials (Gmail, SendGrid, Mailgun, etc.)
- A valid domain name configured on your server
Install Postfix
Postfix is included in the full PHP stack:Configure SMTP
Interactive Setup
Configure SMTP with the interactive wizard:- SMTP Host: Your email provider’s SMTP server (e.g.,
smtp.gmail.com) - User: SMTP username or email address
- Password: SMTP password or app-specific password
- Main Hostname/Domain: Your primary domain for sending emails
Non-Interactive Setup
Provide all credentials in one command:[host,username,password,hostname]
SMTP Provider Examples
Gmail
- Enable 2-factor authentication on your Google account
- Generate an app-specific password: https://myaccount.google.com/apppasswords
- Configure Webinoly:
SendGrid
- Create a SendGrid account and API key
- Configure:
Mailgun
- Create Mailgun account and obtain SMTP credentials
- Configure:
Amazon SES
- Create SMTP credentials in AWS SES console
- Configure:
Postmark
Brevo (Sendinblue)
Configuration Files
SMTP settings are stored in: Main Config:/etc/postfix/main.cf
/etc/postfix/sasl_passwd
/etc/mailname
Main Hostname
The main hostname/domain serves as:- The FROM domain for system emails
- Server’s mail identity
- Default origin for outgoing mail
- Must be a valid domain configured on your server
- Should match a site in
/etc/nginx/sites-available/ - Recommended: Configure SPF and DKIM records for this domain
Test Email Delivery
Verify SMTP is working:Monitor Email Logs
View email delivery logs:status=sent- Email sent successfullystatus=deferred- Temporary failure, will retrystatus=bounced- Permanent failure
WordPress Integration
Configure wp-mail-smtp Plugin
For better WordPress email management:- Install WP Mail SMTP plugin
- Configure with “Other SMTP” option:
- SMTP Host:
localhost - SMTP Port:
25 - Encryption: None
- Authentication: Off
- SMTP Host:
Alternative: Direct SMTP in WordPress
Configure WordPress to use external SMTP directly:- Install WP Mail SMTP plugin
- Enter your SMTP provider credentials
- This bypasses Postfix (not recommended - use Webinoly SMTP instead)
Troubleshooting
Emails Not Sending
-
Check Postfix status:
-
Test SMTP credentials:
-
Verify SMTP host is reachable:
-
Check mail queue:
-
View detailed logs:
Authentication Failures
If you seeauthentication failed errors:
- Verify credentials are correct
- Check if app-specific password is needed (Gmail)
- Ensure SMTP user has sending permissions
- Regenerate SMTP password/API key
DNS/SPF Issues
Emails marked as spam:-
Add SPF record to main hostname domain:
(Adjust based on SMTP provider)
- Configure DKIM if supported by provider
-
Set up DMARC policy:
Firewall Blocking Port 587
If connection times out:Queue Not Processing
Flush stuck mail queue:Backup SMTP Configuration
SMTP configuration is included in: Full Server Backup:/var/www/webinoly_backup_smtp
Manual Backup:
Disable SMTP
Restore default Postfix configuration:Security Best Practices
- Use App-Specific Passwords: Don’t use main account passwords
- Rotate Credentials: Change SMTP passwords regularly
- Monitor Logs: Watch for unauthorized sending attempts
- Rate Limiting: Most providers limit sending rates
- SPF/DKIM/DMARC: Configure email authentication
- Restrict Access: Keep
sasl_passwdfile secure (already 0600)