How to Resolve Exim Fails to Send Email by Increasing the Maximum SMTP Line Length in WHM

This article explains how to resolve email delivery failures in Exim by modifying the Maximum line length for SMTP transports setting in WHM.

By Rosh AricalUpdated Nov 18, 2026

Applies To 

  • WHM (Web Host Manager) 

  • cPanel Servers 

  • Exim Mail Server 

 

Symptoms 

Users may experience one or more of the following: 

  • Outgoing emails fail to send. 

  • Exim reports SMTP delivery errors. 

  • Email messages remain in the mail queue or are rejected due to line length limitations. 

 

Resolution 

Step 1: Log in to WHM as the root user. 

image

Step 2: In the WHM search box, type Exim Configuration Manager and select the corresponding option. 

image

 Step 3: Click the MAIL tab.  

 Step 4: Scroll down to the Maximum line length for SMTP transports setting. 

 Step 5: Select the textbox for Maximum line length for SMTP transports. 

 Step 6: Select the second option, enter the required maximum line length value in the textbox, and verify the value. 

 Step 7: Click Save to apply the changes. 

 Verification 

  1. Send a test email from the affected account. 

  1. Confirm that the email is delivered successfully. 

  1. Verify that there are no related errors in the Exim mail log or Mail Queue Manager. 

  1. Ensure the email is no longer stuck in the queue. 

 

 Troubleshooting 

  • Verify that the Exim service is running. 

  • Review the Exim mail logs for detailed error messages. 

  • Check the Mail Queue Manager for any pending or frozen messages. 

  • Confirm that DNS records (SPF, DKIM,and MX) are configured correctly. 

  • Ensure the server IP is not blacklisted. 

  • exim
  • length
  • email
  • WHM
  • cPanel
  • SMTP Line Length

Was this article helpful?