Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
cPanel, WHM and CloudLinux Technical Guide

cPanel Exim Service Is Down: Email Is Not Working and Mail Queue Solution

When Exim service is down or SMTP connections are stuck, emails cannot be sent, the queue grows, and cPanel chkservd generates an alert. This guide diagnoses service, port 25, intense connections, spamming accounts, PHP scripts, spool, DNS, and delivery problems without silencing messages.

Exim service downSMTP 421Mail QueuePort 25Spam Script
root@server:~SSH
The “exim” service appears to be down.
421 Too many concurrent SMTP connections
Message is frozen
Connection timed out: SMTP timeout while connected to remote host
Failed to create spool file: Permission denied
Submission serviceExim SMTP acceptance and delivery processes
Mail queuePending, frozen, and retry messages
Spam sourceAccount, identity information or PHP script
Delivery NetworkPort 25, DNS, PTR and remote server
01
Technical description

What does Exim service is down and mail is not going error mean?

Exim is the default email transfer service on cPanel servers. It accepts incoming SMTP connections, delivers to local mailboxes, and sends to external servers. Chkservd Exim control may send a service closed notification if it cannot respond.

Exim may be really closed; however, when intense simultaneous SMTP connections are rejected or delayed, it may appear as if the service is running but down.

Mail queue growth is not Exim failure alone. Remote server's temporary rejection, DNS issue, port 25 block, incorrect recipients or spam messages can accumulate in retry state.

A spam source is categorized into two main groups: email accounts compromised via SMTP AUTH and PHP scripts on a website generating messages via local sendmail. The authenticated_id, cwd, and U fields in the logs help distinguish the source.

SPF, DKIM, and DMARC affect delivery reliability; however, if the service has not started, the Exim startup, spool, disk, permissions, and configuration layer must be resolved first.

Bulk-deleting the mail queue may temporarily reduce disk and load, but it conceals the spam source, misdirection, or remote delivery issue. Analyze the sender, recipient, error, and production method first.

02
Log messages and their meanings

Exim, SMTP, queue and delivery error messages

Search for the phrase you see in the email, browser, or SSH log. Each card includes meaning, probable cause, and safe initial action.

12 registration
01kritik

The “exim” service appears to be down

Meaning: cPanel Exim service or SMTP health check could not be verified.

Possible cause: Service is closed, high connection, port is not listening, spool/disk issue or configuration error.

restartsrv_exim --status, port 25 and paniclog check.
02kritik

421 Too many concurrent SMTP connections

Meaning: Exim has reached the allowed simultaneous connection limit for the same source or total connections.

Possible cause: Spam bot, compromised account, bulk sending or low link limit.

Find the source IP and authentication information of active connections.
03kritik

Connection timed out port 25

Meaning: The server was unable to complete the TCP 25 connection to the remote SMTP server.

Possible cause: Provider has outbound 25 limit, firewall, route or remote access restrictions.

Specific test nc/curl and traceroute to the remote MX.
04kritik

Connection refused port 25

Meaning: The target SMTP port is actively rejecting the connection.

Possible cause: Remote service is closed, incorrect MX, firewall reject or Exim is not listening locally.

Separate which side you tested the MX record and port on.
05kritik

Failed to create spool file: Permission denied

Meaning: Exim cannot write the queue file to the spool directory.

Possible cause: Incorrect permission/ownership, read-only filesystem, disk or inode issue.

Check spool ownership, mount, and disk status; do not apply chmod 777.
06kritik

No space left on device in Exim spool

Meaning: Exim cannot create a new queue or log file

Possible cause: /var disk space or inode full, excessive queue/spam.

Determine the type of usage using df -h, df -i, and exim -bpc.
07warning

Message is frozen

Meaning: Exim has stopped automatic redelivery of the message and has frozen it.

Possible cause: Permanent delivery error, bounce creation failure, incorrect sender, or long retry period.

Examine the message header and log entry to determine the reason.
08warning

Retry time not reached for any host

Meaning: The next retry time for the remote target has not yet arrived.

Possible cause: Previous temporary delivery error and Exim retry plan.

Read the message log and the previous error response of the remote MX.
09kritik

Exim paniclog has non-zero size

Meaning: Exim has written critical operation or configuration errors to paniclog.

Possible cause: Router/transport error, permission, lookup, spool or custom config issue.

Start from the most recent critical error in Paniclog.
10warning

cwd=/home/USERNAME/public_html

Meaning: This message may have been generated by a web site/PHP process via local sendmail.

Possible cause: Contact form, malicious attachment, harmful PHP file, or spam script.

Follow the cwd, U, and script information for the same message ID.
11kritik

SMTP authentication failed or numerous auth attempts

Meaning: There is failed or suspicious SMTP authentication traffic for an account.

Possible cause: Brute force, leaked password, incorrect device settings, or botnet.

Exim reject/main log and cPHulk records contain IP and user.
12warning

550 rejected, SPF/DKIM/DMARC or reputation

Meaning: The remote server has permanently rejected the message due to policy or reputation.

Possible cause: Missing DNS records, blacklisting, spam content, incorrect PTR/HELO or low reputation.

Read the full 550; don't settle for just adding a general SPF.

No records matching this expression were found.

03
Secure first review

SSH diagnostic commands and what output to look for?

Commands are for root access. Collect only status and logs first; Do not change the permanent setting without seeing the reason.

Exim service status
/usr/local/cpanel/scripts/restartsrv_exim --status
systemctl status exim -l --no-pager

Shows Exim's status as seen by cPanel and systemd

SMTP ports
ss -lntp | grep -E ':(25|465|587)\b'

Shows whether Exim is listening on its SMTP, SMTPS, and submission ports

Queue summary
exim -bpc
exim -bp | exiqsumm | head -n 80

It summarizes total queue count, size, age, and domain distribution.

Inspect a message
exim -Mvh MESSAGE_ID
exim -Mvb MESSAGE_ID
exim -Mvl MESSAGE_ID

Displays the message header, body, and delivery log separately.

Exim logs
tail -n 200 /var/log/exim_mainlog
tail -n 100 /var/log/exim_rejectlog
tail -n 100 /var/log/exim_paniclog

Delivers delivery, return, identity verification, and critical Exim errors.

Active SMTP connections
ss -ntp | grep -E ':(25|465|587)\b' | awk '{print $5}' | sed 's/:[^:]*$//' | sort | uniq -c | sort -nr | head -n 30

Lists remote IP addresses that open the most SMTP connections.

PHP script source submission
grep 'cwd=/home/' /var/log/exim_mainlog | tail -n 200
grep -o 'cwd=/home/[^ ]*' /var/log/exim_mainlog | sort | uniq -c | sort -nr | head -n 30

Finds account and working directories of generated message from web directories.

Remote MX and port 25 test
dig +short MX ALICI_DOMAIN
nc -vz -w 8 MX_HOST 25
traceroute -T -p 25 MX_HOST 2>/dev/null | tail -n 20

Test DNS MX resolution and remote SMTP connection path.

04
Safe solution order

Exim and mail delivery issue safe steps

First, determine whether Exim is listening, then separate the queue reason, spam source, network access, and DNS/reputation layer.

1

Verify the service, port, and disk status

Exim process, 25/465/587 ports, /var area, and inode status are the first control.

/usr/local/cpanel/scripts/restartsrv_exim --status ss -lntp | grep -E ':(25|465|587)\b' df -hT /var df -ih /var
2

Find the first error in Paniclog and mainlog.

Instead of the general error given by the restart script, read the paniclog and mainlog lines simultaneously.

tail -n 150 /var/log/exim_paniclog tail -n 200 /var/log/exim_mainlog
3

Classify why the queue grew

Determine with exiqsumm and example message log which domain, age and error are grouped around.

exim -bp | exiqsumm exim -Mvl MESSAGE_ID
4

Close the spam or compromised account

If SMTP AUTH is enabled, change the related password and check the devices; if it's a PHP script, isolate the account and file and perform a virus scan.

grep 'auth_id=' /var/log/exim_mainlog | tail -n 100 grep 'cwd=/home/' /var/log/exim_mainlog | tail -n 100
5

Verify network and DNS delivery.

Check outbound port 25, recipient MX, PTR, HELO, SPF, DKIM and DMARC records according to full error response.

dig +short MX ALICI_DOMAIN nc -vz -w 8 MX_HOST 25
6

Restart the service and run the controlled queue.

After the root cause is resolved, start Exim with the cPanel script and force the queue to run once. Do not delete the error messages collectively.

/usr/local/cpanel/scripts/restartsrv_exim exim -qff exim -bpc
05
Distinction by symptom

Special scenarios and decision trees

SMTP account compromised

Authenticated_id or auth_id is visible in the log. Password is immediately changed, connected devices are cleaned, active sessions are terminated, and a sending limit is applied.

grep -Ei 'auth_id=|A=dovecot_login:' /var/log/exim_mainlog | tail -n 200
PHP script is sending spam

The cwd=/home/... line and message ID are monitored. The file is quarantined, the web account is scanned, CMS/plugins are updated, and access logs are reviewed.

grep 'cwd=/home/' /var/log/exim_mainlog | tail -n 200
Outbound port 25 engelli

If a connection timeout occurs for multiple independent MXs, the data center outbound 25 block may be the cause. It can be opened by the provider or an authorized smarthost can be used.

for h in gmail-smtp-in.l.google.com mx1.hotmail.com; do nc -vz -w 8 $h 25; done
Binlerce frozen mesaj var

First, identify the common sender, domain, and error cause of frozen messages. Selectively clean invalid bounce or spam messages; do not clear the entire queue.

exiqgrep -z -i | head -n 50
exim -bp | exiqsumm
Gmail or Outlook 550 rejection

Full SMTP response; evaluated for IP reputation, PTR/HELO, SPF/DKIM/DMARC, content or speed limit.

grep ' 550 ' /var/log/exim_mainlog | tail -n 100

Absolutely don't

  • Do not clear the exim queue en masse without identifying the spam source.
  • Do not apply chmod -R 777 to the /var/spool/exim directory.
  • Do not change the Exim main configuration file directly from WHM Exim Configuration Manager.
  • Do not attempt to bypass the outbound port 25 block with random proxy or unauthorized relay.
  • Do not leave hijacked email account with only queue cleaned without changing password.
  • Do not add the +all mechanism that authorizes the entire internet to the SPF record.

Post-solution verification

  • Exim active/running and 25/465/587 ports are listening as expected.
  • exim -bpc queue size is decreasing regularly or at normal levels.
  • Paniclog is not producing new critical lines.
  • Spam sending account/script was stopped and identity was secured.
  • Successful connection to external MX with port 25 and DNS resolution.
  • Test message sent and verified on recipient server with SPF, DKIM and DMARC result.
06
Official technical resources

cPanel and manufacturer documentation

07
Internal SEO content set

Related cPanel and server error solutions

08
Frequently asked questions

Exim Service Is Down Error Curiosities about

What does 'The exim service appears to be down' mean?

Indicates that cPanel's Exim process or SMTP health check could not be verified. The service may be closed or the check may be rejected due to excessive connections.

How do I view the Exim mail queue?

exim -bpc shows total message count, exim -bp shows queue list, and exim -bp | exiqsumm shows age, size, and domain summary.

How to resolve 421 Too many concurrent SMTP connections

Active connections are identified by source IP and authenticated users. Spam, hijacked accounts, or mass submissions are stopped; limits are set only after real traffic is validated.

How do I know if port 25 is blocked?

If multiple reliable remote MXs constantly time out with nc -vz HOST 25 test, there may be an outbound blockage. Firewall and data center policies are checked.

What is a frozen message?

Exim automatic retry message. It can be caused by a permanent error, bounce issue, or long retry process; the message log should be read before deletion.

How do I find the PHP file sending spam?

Exim mainlog records with cwd=/home/... and message ID are tracked. The file path, user, and time access logs are matched.

Is it safe to delete the Exim queue completely?

No. You may lose valid customer messages. First, identify common error and spam sources, and selectively clean only verified unwanted messages.

If mail is going out but ending up in the spam folder, is Exim faulty?

Usually not a service failure; IP reputation, PTR/HELO, SPF, DKIM, DMARC, content, and sending behavior issues. Delivery headers should be examined.

EKA SOFTWARE AND INFORMATION SYSTEMS

Let's fix the error on your server permanently

By analyzing cPanel, WHM, CloudLinux, LiteSpeed, MariaDB, Exim and security layers together, we fix the root cause of the failure instead of just removing the service.

Get Server Support WhatsApp
Top