Plesk Mail Stuck in Queue: Amavis Connection Refused Fix (2026)

Priya

Content Writer & Researcher

Last Updated: 4 July 2026
Plesk Mail Stuck in Queue: Amavis Connection Refused Fix (2026)
πŸ–₯️

Mail Queue Backed Up on Your Plesk Server?

A stuck Amavis integration can silently delay email for every domain on the server. Let CloudHouse restore delivery fast and prevent it from happening again.

πŸ–₯️12,400+PCs Fixed
⭐4.9β˜…Google Rating
⚑<15 minAvg. Response
πŸ›‘οΈISO 27001Certified

When mail piles up in the Postfix queue right after installing, updating, or removing Plesk Email Security, the cause is almost always a broken connection to Amavis, the content filter service that scans messages before delivery. You'll see errors like "conversation with 127.0.0.1 timed out while receiving the initial server greeting" or "connect to transport private/smtp-amavis: Connection refused" filling up /var/log/maillog, and every message just sits deferred. Here's exactly what's breaking and how to get mail flowing again.

Why Mail Gets Stuck With Amavis Errors on Plesk

Plesk Email Security wires Postfix to Amavis as a content-filter hop β€” every inbound and outbound message gets routed through 127.0.0.1:10024 for spam/virus scanning before Postfix delivers it. If Amavis isn't running, is overloaded, or was removed without cleanly unwiring the Postfix master.cf transport entries, Postfix keeps trying to hand mail to a filter that never answers β€” and every message queues up as deferred.

The two most common triggers:

  • Amavis service crashed or isn't running β€” often after a package update or a server reboot where the service didn't start automatically
  • Plesk Email Security was removed but Postfix config still references it β€” leaving a dangling smtp-amavis transport entry that has nowhere to route mail

πŸ’‘ None of these worked? Skip the guesswork.

Get Expert Help β†’

Step-by-Step Fix: Restoring the Amavis Connection

1Check whether Amavis is actually running
systemctl status amavis

If it shows inactive or failed, start it and check the logs for the crash reason:

systemctl start amavis
journalctl -u amavis -n 50 --no-pager
2Confirm Amavis is actually listening on port 10024
netstat -tlnp | grep 10024

If nothing is listening on that port even after starting the service, Amavis is likely failing to bind β€” check for a port conflict or a misconfigured amavisd.conf.

3If you removed Plesk Email Security, clean up the leftover Postfix transport

Open /etc/postfix/master.cf and check for a smtp-amavis entry still present after the extension was uninstalled. If Plesk Email Security is gone but this entry remains, Postfix has nowhere to route filtered mail. Remove or comment out the dangling transport block, then reload:

postfix reload
4Re-run the Plesk mail server component repair

From the Plesk CLI, re-apply the mail server configuration to rewrite the Postfix integration cleanly:

plesk repair mail -y

This regenerates the Postfix master.cf and main.cf mail filter hooks to match whatever mail security extensions are currently actually installed.

5Flush the queue once the connection is restored
postqueue -f

This forces Postfix to immediately retry all deferred messages now that Amavis (or the corrected transport) is reachable.

1List queue entries directly
postqueue -p
2Identify and delete the specific stuck message IDs
postsuper -d MESSAGE_ID
3If deletion via postsuper fails, remove the file directly from the queue directory
find /var/spool/postfix/deferred -name "MESSAGE_ID" -delete
postfix reload

Only do this for messages you've confirmed are genuinely stuck β€” not ones simply waiting on a legitimate retry interval.

How to Verify Mail Is Flowing Again

  • Run mailq and confirm the queue count is dropping, not growing
  • Tail /var/log/maillog and watch for successful status=sent lines instead of repeated status=deferred
  • Send a test message through the affected domain and confirm delivery time is normal
  • Re-check netstat -tlnp | grep 10024 periodically over the next hour to confirm Amavis stays up under load

Preventing This on Future Plesk Mail Servers

  • Always run plesk repair mail after installing or removing any mail security extension β€” never assume Postfix config cleaned itself up
  • Set up a monitoring check on port 10024 and the Amavis service so a crash triggers an alert before the queue backs up
  • Review mail queue size on a schedule, not just when customers complain about delayed email
  • Keep Plesk and its mail-related extensions on the same update cadence to avoid version mismatches between Postfix config and the installed content filter

When to Call a Server Expert

A backed-up mail queue on a shared Plesk server can affect every hosted domain at once, and diagnosing whether the root cause is Amavis, a corrupted queue file, or a leftover config reference takes practiced troubleshooting under time pressure. CloudHouse's server management service handles exactly this kind of live mail-server incident response for hosting companies that can't afford delayed customer email.

Frequently Asked Questions

Why does mail get stuck right after installing Plesk Email Security?

Amavis, the content filter Plesk Email Security relies on, may not have started correctly or is still initializing. Check systemctl status amavis and confirm it's listening on port 10024 before troubleshooting further.

Is it safe to run "plesk repair mail" on a live production server?

Yes β€” it rewrites the Postfix mail configuration to match your currently installed extensions without deleting mailboxes or messages already delivered. It's a standard first step for fixing broken mail integrations.

Why won't the "Clear" button in Plesk's Mail Queue remove some messages?

Postfix refuses to operate on corrupted queue files by design, so Plesk's UI clear function can't remove them either. You need to identify and delete those specific message IDs directly via postsuper -d or by removing the file from the queue directory.

What does "connect to transport private/smtp-amavis: Connection refused" mean?

It means Postfix's master.cf still has a transport entry pointing to Amavis, but nothing is actually listening on that socket β€” usually because the Plesk Email Security extension was removed without cleaning up the reference, or the Amavis service has crashed.

How do I know if the mail queue backup is affecting all domains or just one?

Run mailq and review the sender/recipient domains listed. If messages from multiple unrelated domains are stuck, the issue is server-wide (Amavis/Postfix), not specific to one hosted site's mail configuration.

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

Amavis, the content filter Plesk Email Security relies on, may not have started correctly or is still initializing. Check systemctl status amavis and confirm it's listening on port 10024 before troubleshooting further.

Need this done for you?

Server Management Service

Managed Linux and Windows servers: monitoring, patching, security and 24/7 support.

Learn more

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...