Cloud House Technologies Logo
CloudHouse Technologies
HomeServicesProjectsBlogAbout UsCareersContact UsLogin
    Cloud House Technologies Logo
    CloudHouse Technologies
    HomeServicesProjectsBlogAbout UsCareersContact UsLogin

    Plesk Mail Queue Stuck? Fix Deferred Emails on Postfix (2026)

    Priya

    Content Writer & Researcher

    Last Updated: 28 June 2026
    Plesk Mail Queue Stuck? Fix Deferred Emails on Postfix (2026)
    🖥️

    Are Deferred Emails Damaging Your Clients' Trust Right Now?

    A stuck Plesk mail queue means client emails aren't reaching their customers — every hour it stays broken is a client at risk of churning. CloudHouse's server management team resolves Plesk mail delivery issues same-day and sets up proactive queue monitoring to catch future failures before your clients notice.

    🔧 Book Free DiagnosisCall NowWhatsApp
    🖥️12,400+PCs Fixed
    ⭐4.9★Google Rating
    ⚡<15 minAvg. Response
    🛡️ISO 27001Certified

    Your Plesk server is running, Postfix appears to be up, but emails are sitting in the mail queue for hours — status: deferred. No delivery errors, no bounce messages, just silence. This is one of the most frustrating email issues on a Plesk server because everything looks fine until you actually check the queue.

    In this guide, we'll walk through every cause of a stuck Plesk mail queue and exactly how to diagnose and fix each one.

    💡 None of these worked? Skip the guesswork.

    Get Expert Help →

    Step 1: Check the Current Mail Queue Status

    Before fixing anything, you need to see how many messages are stuck and what errors they're generating.

    1. Check queue via Plesk UI: Go to Tools & Settings > Mail Server Settings > Mail Queue. This shows the current queue count and lets you view individual message headers.

    2. Check queue via command line (more detailed):

    # Count total queued messages
    mailq | grep -c "^[A-F0-9]"
    
    # View full queue with status
    mailq | head -50
    
    # Or use postqueue directly
    postqueue -p | head -50

    3. View detailed error for stuck messages:

    # Get queue ID from mailq output, then:
    postcat -q QUEUE_ID
    
    # See why a specific message is deferred:
    grep "QUEUE_ID" /var/log/maillog | tail -20

    Common error patterns to look for in the logs:

    • Connection timed out — destination mail server unreachable
    • Connection refused (port 25) — outbound port 25 blocked by ISP or firewall
    • connect to 127.0.0.1[127.0.0.1]:10024: Connection refused — Amavis/SpamAssassin down
    • conversation with 127.0.0.1 timed out — Plesk Email Security (Amavis) timeout
    • mail transport unavailable — Postfix misconfiguration

    Step 2: Fix "Connection Timed Out" — Port 25 Blocked

    The most common cause of deferred emails on Plesk is outbound port 25 being blocked by your server's upstream provider or firewall.

    1. Test if outbound port 25 is reachable:

    telnet gmail-smtp-in.l.google.com 25
    # Should show: 220 mx.google.com ESMTP
    # "Connection refused" or timeout = port 25 blocked

    2. If your VPS provider blocks port 25 (common on AWS, GCP, Azure, Linode, and some budget VPS providers), you'll need to either:

    • Request port 25 unblocking from your provider (submit a support ticket)
    • Use a smart relay host (SendGrid, Mailgun, Amazon SES) to route outgoing mail through port 587

    3. Configure a relay host in Plesk: Go to Tools & Settings > Mail Server Settings. In the Relay Options section, enable Use the following relayhost and enter your SMTP relay credentials.

    4. Or configure Postfix relay directly via command line:

    # Add to /etc/postfix/main.cf:
    relayhost = [smtp.sendgrid.net]:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_tls_security_level = encrypt
    
    # Create credentials file:
    echo "[smtp.sendgrid.net]:587 apikey:YOUR_API_KEY" > /etc/postfix/sasl_passwd
    postmap /etc/postfix/sasl_passwd
    postfix reload

    Step 3: Fix Amavis/SpamAssassin Causing Queue Stall

    If you have Plesk Email Security installed, emails pass through Amavis for spam and virus scanning before delivery. If Amavis is down or overloaded, every outgoing email gets stuck with a connection refused error.

    1. Check Amavis status:

    service amavis status
    # or:
    systemctl status amavis

    2. Restart Amavis if it's stopped:

    service amavis restart
    service postfix restart

    3. Check Amavis is listening on port 10024:

    netstat -tlnp | grep 10024
    # Should show amavis listening on 127.0.0.1:10024

    4. If Amavis keeps crashing, check its logs:

    tail -100 /var/log/amavis.log
    grep -i "error\|panic\|fatal" /var/log/amavis.log | tail -20

    5. If Plesk Email Security was recently removed but Postfix still tries to route through Amavis, run the Plesk repair utility:

    plesk repair mail -y

    This reconfigures Postfix to remove the Amavis transport references and restore direct delivery.

    Step 4: Use "plesk repair mail" to Fix Misconfiguration

    The Plesk repair utility is the fastest way to fix mail queue issues caused by Postfix misconfiguration after a Plesk update or extension change.

    1. Run in interactive mode (prompts you before making changes):

    plesk repair mail

    2. Run in automatic mode (applies all fixes without prompting):

    plesk repair mail -y

    3. Check the repair output — it will report which Postfix settings were corrected and whether services were restarted.

    4. Restart mail services after repair:

    service postfix restart
    service dovecot restart

    Step 5: Flush the Stuck Queue and Force Retry

    Once the underlying cause is fixed, the deferred messages won't automatically retry immediately. Force a retry on all deferred messages.

    1. Force retry on all deferred messages:

    postqueue -f
    # or equivalently:
    postsuper -r ALL deferred

    2. Monitor whether messages clear:

    watch -n 5 "mailq | tail -5"

    3. If specific messages should not be retried (spam, broken accounts), delete them:

    # Delete a specific message by queue ID:
    postsuper -d QUEUE_ID
    
    # Delete ALL deferred messages (use with caution):
    postsuper -d ALL deferred

    4. Delete messages from a specific sender:

    mailq | grep "^[A-F0-9]" | grep "sender@domain.com" | awk '{print $1}' | xargs postsuper -d

    Step 6: Check for IP Blacklisting

    If your server IP was blacklisted, destination mail servers will refuse connections and Postfix will defer the messages indefinitely.

    1. Check your server IP against major blacklists: Use MXToolbox Blacklist Check (mxtoolbox.com/blacklists.aspx) or run:

    dig +short YOUR_SERVER_IP.zen.spamhaus.org
    # Empty response = not listed, any IP returned = listed

    2. Check what's causing the blacklisting: Usually a compromised mailbox sending spam. Check for outgoing spam:

    grep "status=sent" /var/log/maillog | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

    3. If a Plesk mailbox is compromised: change its password immediately in Plesk, then check the outgoing mail limits under Tools & Settings > Server-wide Mail Settings > Outgoing Messages Limits.

    4. Request delisting: Each blacklist has its own delisting process. Spamhaus has an automated lookup-and-delist form at spamhaus.org/lookup/.

    Step 7: Adjust Queue Lifetime and Retry Intervals

    By default, Postfix retries deferred messages for 5 days. If you want faster failure notifications or shorter retry windows, adjust these in /etc/postfix/main.cf:

    # How long to keep trying (default 5 days):
    maximal_queue_lifetime = 1d
    
    # How long to keep bounces in queue:
    bounce_queue_lifetime = 1d
    
    # Minimum time between retries (default 5 minutes):
    minimal_backoff_time = 300s
    
    # Maximum time between retries (default 4000s):
    maximal_backoff_time = 3600s
    
    # Apply changes:
    postfix reload

    Shorter retry windows mean failed deliveries generate bounce notifications sooner, giving users visibility into delivery failures rather than silent deferrals. Proactive monitoring of your Plesk mail queue and server health is part of CloudHouse's managed server management service — our team catches and resolves mail delivery issues before your clients notice them.

    FAQs

    Get the Free Linux Server Admin Cheatsheet (PDF)

    Essential commands for server management, networking, and troubleshooting — all on one printable page.

    Running Linux servers? Let us manage them for you.

    Our Managed Linux Server plans cover updates, security hardening, monitoring, and 24/7 incident response — so your servers stay up and your team stays focused.

    • Proactive OS patching and security updates
    • 24×7 monitoring with instant alerting
    • Backup configuration and disaster recovery
    • Dedicated Linux engineers on call
    See Pricing Plans →

    What our customers say

    “Our production server went down at 2 AM. CloudHouse had it back online in under 20 minutes. Incredible response time.”

    Arun S.

    CTO, SaaS Startup

    “They migrated our entire infrastructure from Ubuntu 18 to 22 with zero downtime. Couldn't have asked for better.”

    Deepak N.

    DevOps Lead

    Frequently Asked Questions

    Deferred means Postfix tried to deliver the email but failed temporarily and will retry later. The most common causes are: outbound port 25 blocked by your hosting provider, Amavis/SpamAssassin not running (causing connection refused on port 10024), your server IP being blacklisted, or a Postfix misconfiguration after a Plesk update. Run mailq to see the queue and grep /var/log/maillog for the queue ID to find the specific error.

    Book your free 15-minute diagnosis

    A certified technician will call you back within 15 minutes during business hours.

    Share this article

    Leave a Comment

    Comments (0)

    Loading comments...

    Need Help Fixing a Stuck Plesk Mail Queue?

    When Plesk emails are stuck as 'deferred' and clients are complaining, you need a fix fast. CloudHouse's Plesk specialists diagnose mail delivery failures, clear stuck queues, fix Amavis/Postfix misconfigurations, and handle IP delisting — typically resolving mail queue issues within the same business day.

    Call Now — FreeWhatsApp Us

    Why CloudHouse?

    • ISO 27001:2022 certified
    • 12,400+ devices supported
    • 4.9★ on Google
    • Sub-15-minute response

    CloudHouse Technologies

    Innovative cloud solutions for modern businesses. We deliver cutting-edge technology with exceptional service.

    Contact Us

    CloudHouse Technologies Pvt.Ltd
    Special Economic Zone(SEZ),
    Infopark Thirissur,4B-15,
    Indeevaram,Nalukettu Road,
    Koratty, Kerala, India-680308
    0480-27327360
    info@cloudhousetechnologies.com

    Quick Links

    • Our Services
    • Gold Loan Software
    • About Us
    • Contact
    • Terms and Conditions
    • Privacy Policy
    ISO27001:2022
    Certified

    © 2026 CloudHouse Technologies Pvt.Ltd. All rights reserved.

    Back to top