Exim Stuck if email is to domain without MX record

irshad101

Member
Feb 3, 2021
7
0
1
UK
cPanel Access Level
Root Administrator
Hello,

I have standard cPanel installation and server load is normal but

my email Queue stuck for hours before delivery and when I do the manual delivery I see the delivery stuck for email address for domains with no MX records

for example if email is going to @myonlinesafeplace.tech
and I press manually deliver this email it will take long time for manual process to complete but email will be still in queue

this email will be in processing for long time and Exim will stuck there wile other emails will wait.
As you can see above domain don't have valid MX records, how can I make cPanel to bounce that email quickly and move to next one.

I have changed the exim settings
deliver_queue_load_max: 60
deliver_queue_load_max 24
ignore_bounce_errors_after:1h
timeout_frozen_after:8h
RETRYBLOCK
* data_4xx F,4h,2m
* rcpt_4xx F,4h,2m
* timeout F,4h,5m
* refused F,1h,10m
* lost_connection F,1h,2m
* * F,6h,5m

Is there any settings to make exim faster?

Thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,938
609
273
cPanel Access Level
Root Administrator
Hey there! You'd need to restart Exim in order to make changes to the retry section take effect. Until Exim is restarted it will continue to use the old values as that's what is loaded in the configuration. But yes, adjusting those is the correct way to get broken messages to permanently fail faster.
 

irshad101

Member
Feb 3, 2021
7
0
1
UK
cPanel Access Level
Root Administrator
Hello, yes I restart Exim even restart server before posting this.

also why email queue have more then 100 items waiting to deliver for long time?
Thanks
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,938
609
273
cPanel Access Level
Root Administrator
Thanks for the confirmation.

In your example with the settings you provided, a message would take 6 hours to completely fail out of the Exim queue.

The best way to see what the issue may be with individual messages would be to examine one specific message from the logs, and then see if they all have something in common, such as being sent to the same network or coming from the same address. There likely isn't one reason why all the messages would be stuck in the queue.
 

irshad101

Member
Feb 3, 2021
7
0
1
UK
cPanel Access Level
Root Administrator
Thanks for update.
I was reading and there is settings to set queue_run_max
do you think if we increase value of queue_run_max this will make messages deliver fast?
also is there any option in WHM to set this "queue_run_max"

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,938
609
273
cPanel Access Level
Root Administrator
It's possible this could speed up the system as this controls the maximum simultaneous queue runners that Exim uses to handle queued messages. It wouldn't hurt to try and enable that but there isn't an option in WHM to set that up so you'd need to use the Advanced Editor under the Exim Configuration Manager to adjust those settings.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,938
609
273
cPanel Access Level
Root Administrator
cPanel doesn't include a value for this in our Exim configuration by default, so it would be using the general Exim default value of 10 on a new system.

You could start with a conservative value like these to see if that increases the speed of the mail delivery:

Code:
queue_run_max = 15
The best way to add these values would be to use the WHM >> Exim Configuration Manager under the Advanced Editor tab. If you scroll down to the bottom of the CONFIG section you'll see a blue box that says "Add Additional Configuration Setting." I've attached a screenshot showing this:

Screen Shot 2021-02-04 at 2.16.34 PM.png

If you click that box you'll get a new blank line, and if you start typing you'll see that queue_run_max is in the dropdown list. Just add the value, add your number, then scroll to the bottom and click the blue "save" button there to save the changes. These instructions would also apply to other options that aren't listed on the page if you wanted to try additional settings that you don't see.