Cannot send or receive mail; frozen in queue

TapanB

Active Member
Nov 29, 2004
40
0
156
Hi,

I have a dedicated server with cpanel and all was fine till today morning. I suddenly started getting complaints from clients that thy are able to send / receive emails.

Upon checking I found this correct, server is accepting emails from both senders / receivers and its not giving them any error either but it is freezing all the email messages.

When I force run the queue I get this:

Code:
---
LOG: MAIN
cwd=/usr/local/cpanel/whostmgr/docroot 5 args: exim -C /etc/exim_outgoing.conf -v -qff
LOG: queue_run MAIN
Start queue run: pid=4910 -qff
delivering 1UFMko-00028l-QF (queue run pid 4910)
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
delivering 1UFMkp-00029D-8a (queue run pid 4910)
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
delivering 1UFPDZ-0005mm-Cx (queue run pid 4910)
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{increment_max_emails_per_hour_if_needed}}" for increment_max_emails_per_hour_if_needed router: Undefined subroutine &main::increment_max_emails_per_hour_if_needed called.

LOG: MAIN
== [email][email protected][/email] R=dkim_lookuphost defer (-1): dkim_lookuphost router failed to expand "${perl{mailtrapheaders}}": Undefined subroutine &main::mailtrapheaders called.\n
LOG: MAIN PANIC
failed to expand condition "${perl{check_mail_permissions}}" for check_mail_permissions router: Undefined subroutine &main::check_mail_permissions called.

LOG: MAIN PANIC
failed to expand condition "${perl{enforce_mail_permissions}}" for enforce_mail_permissions router: Undefined subroutine &main::enforce_mail_permissions called.
---
What is the issue ? How do I fix it ? I tried resetting the exim configuration etc. but to no avail.

Please help me fix it.

Thanks.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,488
35
158
cPanel Access Level
DataCenter Provider
You can rebuild the exim configure with /scripts/buildeximconf

You should also open a ticket using the link in my signature so our techs can determine how your exim.pl.local file became corrupted in order to prevent it from happening again.
 

juba

Active Member
Mar 4, 2004
30
0
156
When I use the:

/scripts/buildeximconf

Script it tells me exim.pl not found, how do I fix this? Thanks.

Juba
 
Last edited:

juba

Active Member
Mar 4, 2004
30
0
156
I have fixed the problem copying a exim.pl from another server I have and the good news it had the same version of WHM, now, the question is how do I protect myself from this not happening again? Thanks.
 

arunsv84

Well-Known Member
Oct 20, 2008
373
1
68
127.0.0.1
cPanel Access Level
Root Administrator
Backup your exim.conf and run the following.

/scripts/eximup --force
Cheers!!!

- - - Updated - - -

Normally this happens if someone has added a chattr flag to any of the exim configuration files, as this will cause exim updates to fail in middle of the update.

Cheers!!!
 
Last edited:

juba

Active Member
Mar 4, 2004
30
0
156
Thanks will have this --force command in mind :D,