How to Fix Plesk Mail Errors — Email Not Sending or Receiving
In this tutorial, you'll learn about How to Fix Plesk Mail Errors. We cover key concepts, practical examples, and best practices.
The Problem
Email is not working:
SMTP: Authentication failed.
or:
Mail queue is stuck.
Quick Fix
Step 1: Check mail service status
systemctl status postfix
systemctl status dovecot
Step 2: Flush the mail queue
# Postfix queue:
postqueue -p
postsuper -d ALL # Delete all queued messages
postfix flush
Step 3: Fix SMTP authentication
Plesk > Domains > example.com > Mail Settings
Ensure "SMTP authentication" is enabled.
Step 4: Check mail logs
tail -100 /var/log/maillog
Step 5: Configure SPF and DKIM
Plesk > Domains > example.com > Mail Settings > Add SPF/DKIM record
Step 6: Fix recipient rate limits
Plesk > Tools & Settings > Mail > Mail Settings
Increase the outgoing message rate limit if needed.
Prevention
- Enable SPF, DKIM, and DMARC for all domains.
- Monitor the mail queue daily.
- Keep Postfix and Dovecot updated.
Common Mistakes with mail error
- Using
foldlinstead offoldl'causing stack overflow on large lists - Forgetting
deriving (Show, Eq)on custom data types needed for debugging - Placing the wildcard pattern first in case expressions, making all subsequent patterns unreachable
These mistakes appear frequently in real-world PLESK code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.
Practice Exercise
Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.
This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.
FAQ
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro